:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #132036;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --rose-500: #f43f5e;
  --green-500: #22c55e;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-200);
  border-radius: 12px;
  transition: all 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.mobile-link.active {
  color: white;
  background: var(--amber-500);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 10px 16px 16px;
  background: var(--slate-900);
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
}

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

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.2)), radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.28), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72vh;
  padding: 110px 22px 86px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--amber-300);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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

.hero-meta,
.detail-meta,
.movie-meta-line,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-meta a,
.detail-meta a {
  border-radius: 999px;
  padding: 7px 12px;
  color: white;
  background: var(--amber-500);
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.section-more,
.category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.36);
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

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

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

.main-shell,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
}

.section-heading,
.page-title-row,
.detail-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-title-row h1 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p,
.page-title-row p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-more,
.category-link {
  color: var(--amber-700, #b45309);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: rgba(251, 191, 36, 0.94);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
  justify-content: space-between;
}

.movie-meta-line a {
  color: var(--amber-600);
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--amber-600);
}

.movie-card p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-list span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 12px;
}

.feature-strip {
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.category-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: white;
  box-shadow: var(--shadow-card);
}

.feature-card strong,
.category-card h2 {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 20px;
}

.feature-card p,
.category-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -55px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
}

.category-card h2 {
  position: relative;
  z-index: 1;
}

.category-card p,
.category-card .category-link {
  position: relative;
  z-index: 1;
}

.category-link {
  margin-top: 18px;
}

.search-panel {
  margin-bottom: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 22px;
  background: white;
  box-shadow: var(--shadow-card);
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 14px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--slate-50);
  color: var(--slate-900);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-empty {
  display: none;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  color: var(--slate-600);
  background: white;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 86px 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.rank-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-900);
}

.rank-cover img {
  height: 100%;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--slate-600);
  line-height: 1.7;
}

.detail-hero {
  color: white;
  background: radial-gradient(circle at 75% 10%, rgba(245, 158, 11, 0.2), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-shell {
  padding-top: 36px;
  padding-bottom: 56px;
}

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

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

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

.detail-title h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-title p {
  margin: 0 0 22px;
  color: var(--slate-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-900);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.36);
}

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

.player-section {
  max-width: 1280px;
  margin: -18px auto 0;
  padding: 0 22px 44px;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.video-frame {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  z-index: 2;
}

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

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-size: 34px;
  box-shadow: 0 22px 48px rgba(245, 158, 11, 0.36);
}

.play-overlay strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.article-panel,
.side-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: white;
  box-shadow: var(--shadow-card);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 20px;
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 16px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 12px;
}

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

.info-list dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 800;
  text-align: right;
}

.related-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 60px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.8;
}

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

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 20px 22px 28px;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel,
  .hero-content {
    min-height: 68vh;
  }

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

  .section-heading,
  .page-title-row,
  .detail-topline {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 56px 96px minmax(0, 1fr);
  }

  .rank-row .btn-primary {
    grid-column: 2 / 4;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 14px;
  }

  .brand-text {
    font-size: 19px;
  }

  .main-shell,
  .page-shell,
  .detail-shell,
  .player-section,
  .content-grid,
  .related-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card-grid,
  .card-grid.compact,
  .category-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .rank-row .btn-primary {
    grid-column: 1 / 3;
  }

  .movie-card p {
    min-height: auto;
  }
}
