:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --rose-500: #f43f5e;
  --orange-500: #f97316;
  --white: #ffffff;
  --page: #f8fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.main-shell {
  min-height: 100vh;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-300), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--slate-200);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.30);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 72vh;
  color: var(--white);
  background: var(--slate-900);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s ease;
  background-color: var(--slate-900);
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

hero-slide:first-child {
  opacity: 1;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
  min-height: 72vh;
  padding: 72px 0 60px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--amber-400);
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 900;
}

.hero h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 850;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

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

.meta-pills span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 13px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--amber-600);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.45);
}

.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-light {
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 24px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: var(--white);
  color: var(--slate-900);
  font-size: 15px;
}

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

.hero-dot {
  width: 28px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.hero-side {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 76px;
  z-index: 4;
  display: grid;
  width: 320px;
  gap: 12px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-mini-poster,
.card-poster,
.detail-poster,
.related-poster {
  background-color: var(--slate-800);
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(245, 158, 11, 0.12)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.hero-mini-poster {
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.hero-mini-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.hero-mini-meta {
  margin: 0;
  color: var(--slate-300);
  font-size: 13px;
}

.page-head {
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.25), transparent 34%), linear-gradient(120deg, var(--slate-900), var(--slate-800));
  padding: 58px 0;
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.page-head p {
  max-width: 780px;
  margin: 0;
  color: var(--slate-200);
  font-size: 17px;
  line-height: 1.8;
}

.section {
  padding: 48px 0;
}

.section-tight {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 850;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.45);
}

.movie-card a {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  background: rgba(244, 63, 94, 0.92);
}

.card-score {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  color: #fef3c7;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.horizontal-card .card-poster {
  aspect-ratio: 4 / 5;
}

.category-card {
  display: block;
  padding: 24px;
  min-height: 170px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -42px;
  top: -42px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 23px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: var(--slate-200);
  line-height: 1.7;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.empty-message {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.empty-message.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  color: var(--white);
  background-color: var(--slate-900);
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.36)), var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 56px 0 44px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
}

.detail-info p {
  max-width: 760px;
  color: var(--slate-200);
  font-size: 17px;
  line-height: 1.8;
}

.player-section {
  padding: 42px 0 20px;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #050816;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.35);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050816;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050816;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background-color: rgba(2, 6, 23, 0.78);
  background-image: linear-gradient(120deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.38)), var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.play-text {
  font-size: 20px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.content-card,
.side-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2,
.side-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
}

.content-card p,
.side-card p {
  color: #334155;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  color: #334155;
}

.info-row dt {
  color: var(--slate-500);
}

.info-row dd {
  margin: 0;
  font-weight: 700;
}

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

.related-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.related-poster {
  aspect-ratio: 3 / 4;
}

.related-card h3 {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 132px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-weight: 900;
}

.rank-poster {
  width: 112px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background-color: var(--slate-800);
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(245, 158, 11, 0.12)), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.rank-main h2,
.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score-box {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--slate-600);
  font-size: 13px;
}

.rank-score-box strong {
  color: var(--amber-600);
  font-size: 22px;
}

.site-footer {
  margin-top: 48px;
  color: var(--slate-300);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: var(--slate-300);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.10);
  color: var(--slate-500);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-side {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--slate-900);
    border-top: 1px solid rgba(226, 232, 240, 0.12);
  }

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

  .nav-link {
    justify-content: center;
  }

  .hero-content {
    min-height: 66vh;
    padding: 56px 0 56px;
  }

  .hero {
    min-height: 66vh;
  }

  .hero-slide {
    background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.76)), var(--hero-image);
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    max-width: 220px;
  }

  .rank-item {
    grid-template-columns: 42px 96px 1fr;
  }

  .rank-score-box {
    grid-column: 3;
    justify-items: start;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 19px;
  }

  .hero-desc,
  .detail-info p {
    font-size: 15px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 112px 1fr;
  }

  .card-body {
    padding: 14px;
  }

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

  .rank-item {
    grid-template-columns: 36px 78px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 34px;
    height: 34px;
  }

  .rank-poster {
    width: 78px;
  }

  .rank-main h2,
  .rank-main h3 {
    font-size: 16px;
  }
}
