:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --orange: #fb923c;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.16), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(251, 146, 60, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--gold-light), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 15px;
  color: #020617;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.36);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #e2e8f0;
  font-weight: 700;
}

.desktop-nav a,
.dropdown > button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 10px 0;
}

.desktop-nav a:hover,
.dropdown:hover > button {
  color: var(--gold-light);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px;
  width: 330px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
}

.dropdown-menu a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-light);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}

.nav-search input,
.panel-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.nav-search input {
  padding: 11px 86px 11px 18px;
}

.nav-search button,
.panel-search button {
  border: 0;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.nav-search button {
  position: absolute;
  right: 5px;
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 11px 12px;
  border-radius: 12px;
  color: #dbeafe;
}

.mobile-menu a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-light);
}

.main-wrap {
  min-height: 60vh;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(2, 6, 23, 0.70) 46%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 700px;
  padding-top: 30px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-weight: 800;
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 660px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  inset: auto 0 34px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 42px;
  background: var(--gold-light);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.section {
  padding: 72px 0;
}

.section-dark {
  background: rgba(15, 23, 42, 0.62);
}

.section-warm {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(30, 41, 59, 0.72));
}

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

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--gold-light);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.cover-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.cover-badge {
  left: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.score-badge {
  right: 12px;
  color: #fff7ed;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.movie-title a:hover {
  color: var(--gold-light);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  transition: 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  transform: translateY(-4px);
}

.feature-poster {
  position: relative;
  min-height: 220px;
}

.feature-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 20px 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 170px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(30, 41, 59, 0.84)),
    rgba(15, 23, 42, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 24px;
}

.category-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.page-hero {
  padding: 82px 0 52px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.84)),
    radial-gradient(circle at 80% 0%, rgba(251, 146, 60, 0.18), transparent 30%);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--gold-light);
}

.page-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.panel-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 26px 0 0;
}

.panel-search input {
  padding: 14px 18px;
}

.panel-search button {
  padding: 0 24px;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 60px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-no {
  color: var(--gold-light);
  font-size: 28px;
  font-weight: 950;
}

.ranking-thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-title {
  margin: 0;
  font-size: 19px;
}

.ranking-title a:hover {
  color: var(--gold-light);
}

.ranking-desc {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-score {
  color: #111827;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  box-shadow: 0 22px 54px rgba(245, 158, 11, 0.44);
  font-size: 34px;
  transform: translateX(3px);
}

.player-meta {
  padding: 22px;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.side-card h2 {
  margin-top: 0;
}

.detail-card p {
  color: #dbeafe;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.95);
}

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

.side-card {
  padding: 20px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
}

.side-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.side-item h3:hover {
  color: var(--gold-light);
}

.side-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
  color: #94a3b8;
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-brand {
  color: var(--text);
  font-weight: 950;
  font-size: 22px;
}

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

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

.hidden-card {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    min-height: 620px;
    align-items: flex-end;
    padding-bottom: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-title {
    font-size: 44px;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-desc {
    display: none;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 110px 1fr;
  }

  .feature-poster {
    min-height: 170px;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 64px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    justify-self: start;
    margin-top: 8px;
  }

  .panel-search {
    flex-direction: column;
  }

  .panel-search button {
    padding: 14px 20px;
  }

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

@media (max-width: 460px) {
  .header-inner {
    min-height: 66px;
  }

  .logo {
    font-size: 22px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero-title {
    font-size: 38px;
  }
}
