:root {
  --bg: #080b12;
  --panel: rgba(16, 21, 32, 0.86);
  --panel-strong: #111827;
  --line: rgba(255, 255, 255, 0.10);
  --muted: #9ca3af;
  --text: #f8fafc;
  --soft: #d1d5db;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --accent-3: #fde68a;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 8%, rgba(249, 115, 22, 0.12), transparent 28rem),
    linear-gradient(180deg, #080b12 0%, #101827 48%, #070a12 100%);
  font-family: Inter, PingFang SC, Microsoft YaHei, Arial, sans-serif;
  line-height: 1.68;
}

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

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--soft);
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.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;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.94) 0%, rgba(8, 11, 18, 0.78) 36%, rgba(8, 11, 18, 0.26) 70%, rgba(8, 11, 18, 0.72) 100%),
    linear-gradient(180deg, rgba(8, 11, 18, 0.18), #080b12 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 56px;
  padding: 96px 0 72px;
}

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

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #fff, #fde68a 45%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  margin: 0 0 24px;
  max-width: 720px;
  color: #d1d5db;
  font-size: 18px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(16, 21, 32, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: #111827;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #111827;
  background: var(--accent-3);
  font-weight: 900;
}

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

.hero-dot {
  width: 38px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent);
}

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

.section {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-3);
  background: rgba(255, 255, 255, 0.05);
}

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

.category-tile {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile span,
.category-tile p {
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.20);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(20, 27, 42, 0.95);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.75));
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #111827;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin-bottom: 6px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 74px 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.rank-no {
  color: transparent;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 34px;
  font-weight: 1000;
  text-align: center;
}

.rank-card img {
  width: 116px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.page-hero {
  padding: 82px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
}

.search-panel input {
  width: min(560px, 100%);
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-panel input:focus {
  border-color: rgba(245, 158, 11, 0.7);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.filter-row button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.filter-row button.is-active {
  color: #111827;
  border-color: transparent;
  background: var(--accent);
}

.detail-hero {
  padding: 64px 0 40px;
}

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

.detail-poster {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.detail-line {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 19px;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.info-pills span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.player-box {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.32);
  font-size: 28px;
  font-weight: 1000;
  cursor: pointer;
}

.copy-block {
  display: grid;
  gap: 20px;
}

.copy-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
}

.copy-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.copy-card p {
  margin: 0;
  color: var(--soft);
  white-space: pre-line;
}

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

.site-footer {
  margin-top: 82px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  color: var(--muted);
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px 18px;
}

.footer-links a {
  color: #d1d5db;
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 11, 18, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-panel {
    max-width: 360px;
  }

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

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

  .detail-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

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

  .hero,
  .hero-content {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-desc,
  .page-hero p,
  .detail-line {
    font-size: 16px;
  }

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

  .movie-grid,
  .category-grid,
  .wide-list,
  .related-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 54px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-no {
    font-size: 28px;
  }

  .rank-card img {
    width: 88px;
  }

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

  .detail-poster {
    position: relative;
    top: auto;
    max-width: 320px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .movie-grid,
  .category-grid,
  .wide-list,
  .related-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }
}
