@import url("./source.css");

:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.88);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #f8fafc;
  --soft: #cbd5e1;
  --amber: #fbbf24;
  --amber-strong: #f59e0b;
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.18);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 85, 247, 0.24), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(251, 191, 36, 0.16), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(22px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #1e1b4b;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--purple));
  box-shadow: 0 16px 42px rgba(168, 85, 247, 0.3);
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link {
  color: var(--soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-carousel {
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(to top, #0f172a, transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  align-items: center;
  gap: 56px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p,
.inner-hero p,
.lead-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.22);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #1e1b4b;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.24);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--amber);
}

.section-block {
  padding: 76px 0;
}

.accent-section {
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.14), rgba(15, 23, 42, 0));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--amber);
}

.category-grid,
.overview-grid,
.movie-grid,
.rank-grid,
.article-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.overview-card,
.movie-card,
.rank-item,
.text-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.category-card {
  padding: 22px;
  overflow: hidden;
}

.category-card a:first-child {
  display: grid;
  gap: 10px;
}

.category-card span {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  min-height: 58px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.category-links,
.overview-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.category-links a,
.overview-list a {
  color: var(--soft);
  font-size: 13px;
}

.category-links a:hover,
.overview-list a:hover {
  color: var(--amber);
}

.movie-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(15, 23, 42, 0.8);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1e1b4b;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-info h3,
.rank-copy h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-info p,
.rank-copy p,
.text-panel p,
.overview-card p {
  color: var(--soft);
  line-height: 1.72;
}

.movie-info p {
  min-height: 80px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  min-height: 28px;
  margin-bottom: 14px;
}

.filter-panel {
  display: block;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 18px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.search-box span {
  color: var(--amber);
  font-size: 24px;
}

.search-box input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-selects select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
}

.empty-result {
  display: none;
  margin: 18px 0;
  padding: 18px;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  color: var(--amber);
  text-align: center;
}

.empty-result.show {
  display: block;
}

.rank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-number {
  color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--purple));
  background-clip: text;
  font-size: 34px;
  font-weight: 950;
}

.rank-copy p {
  margin: 0 0 12px;
  font-size: 14px;
}

.inner-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 54px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.16), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(168, 85, 247, 0.22), transparent 34%),
    rgba(15, 23, 42, 0.76);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
  padding: 20px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.overview-thumbs img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overview-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.detail-meta {
  margin-top: 22px;
}

.detail-tags {
  margin-top: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.78));
  transition: opacity 0.24s ease;
}

.play-overlay strong {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
}

.play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1e1b4b;
  background: linear-gradient(135deg, var(--amber), var(--purple));
  font-size: 34px;
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.36);
}

.player-box.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-panel {
  padding: 28px;
}

.text-panel h2 {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 28px;
}

.text-panel p {
  margin: 0;
  text-align: justify;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--amber);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-grid,
  .detail-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

  .hero-control {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1400px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand em {
    display: none;
  }

  .hero-section,
  .hero-grid {
    min-height: 640px;
  }

  .hero-grid {
    gap: 28px;
    align-content: center;
  }

  .hero-copy h1,
  .inner-hero h1 {
    font-size: 40px;
  }

  .section-block {
    padding: 54px 0;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 74px 42px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    font-size: 26px;
  }

  .detail-hero,
  .inner-hero {
    padding-top: 54px;
  }
}
