:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

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

.brand-text {
  font-size: 1.22rem;
  background: linear-gradient(90deg, #fde68a, var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.62) 52%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 330px;
  align-items: end;
  gap: 46px;
  padding: 0 0 72px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
}

.eyebrow.dark {
  color: var(--amber-600);
  background: rgba(245, 158, 11, 0.12);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.hero-copy h3 {
  margin: 0 0 14px;
  color: var(--amber-300);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin: 22px 0 24px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.86rem;
}

.hero-actions,
.section-head,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn,
.quick-search button,
.section-more,
.channel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
}

.btn.primary,
.quick-search button,
.channel-more {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn:hover,
.quick-search button:hover,
.section-more:hover,
.channel-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(8px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2rem;
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

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

.quick-panel,
.section-shell,
.rank-section,
.category-preview-shell,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  margin-top: -46px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
}

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

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: #fef3c7;
  font-size: 0.92rem;
  font-weight: 700;
}

.section-shell,
.rank-section,
.category-preview-shell {
  margin-top: 58px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head.small {
  margin-bottom: 16px;
}

.section-head h2,
.rank-copy-box h2,
.page-hero h1,
.detail-intro h1,
.story-card h2,
.rank-aside h2 {
  margin: 0;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head h2,
.rank-copy-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-more {
  min-height: 42px;
  padding: 0 14px;
  color: var(--amber-700, #b45309);
  background: #fffbeb;
  border: 1px solid #fde68a;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 10px;
  left: 10px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--amber-400);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  color: var(--slate-900);
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--amber-600);
}

.card-line {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 9px 0 13px;
  overflow: hidden;
  color: var(--slate-600);
  line-height: 1.7;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.movie-card.compact .card-body {
  padding: 12px;
}

.movie-card.compact .card-line {
  display: none;
}

.rank-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: var(--shadow);
}

.rank-copy-box p {
  color: var(--slate-600);
  line-height: 1.8;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-link:hover {
  transform: translateX(3px);
  background: #fffbeb;
}

.rank-no {
  color: var(--amber-600);
  font-weight: 900;
  font-size: 1.18rem;
  text-align: center;
}

.rank-link img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  overflow: hidden;
  color: var(--slate-500);
  font-style: normal;
  font-size: 0.84rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-preview-shell {
  display: grid;
  gap: 38px;
  padding-bottom: 60px;
}

.category-preview {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.page-main {
  padding: 28px 0 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 54px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.42), transparent 36%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: 44px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e2e8f0;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--slate-600);
  font-size: 0.92rem;
}

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

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

.channel-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.channel-title {
  color: var(--slate-900);
  font-size: 1.5rem;
  font-weight: 900;
}

.channel-card p {
  color: var(--slate-600);
  line-height: 1.8;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.channel-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 0.88rem;
}

.channel-more {
  min-height: 42px;
  padding: 0 14px;
}

.filter-bar {
  position: sticky;
  top: 82px;
  z-index: 9;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-bar input {
  flex: 1 1 280px;
}

.filter-bar select {
  flex: 0 1 170px;
}

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

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
}

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

.rank-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rank-feature,
.rank-aside {
  min-width: 0;
}

.rank-aside {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-aside h2 {
  margin-bottom: 16px;
}

.detail-main {
  padding: 28px 0 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

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

.detail-intro h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.detail-line {
  color: var(--slate-600);
  font-size: 1.06rem;
  line-height: 1.9;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span,
.tag-cloud span {
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid #fde68a;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  background: var(--slate-950);
  box-shadow: 0 25px 70px rgba(2, 6, 23, 0.24);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.28));
  cursor: pointer;
  text-align: center;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-button {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--amber-400);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.35);
  font-size: 2rem;
}

.player-overlay strong {
  max-width: 86%;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  margin-top: 28px;
}

.story-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.story-card p {
  margin: 14px 0 0;
  color: var(--slate-700);
  line-height: 2;
}

.detail-related {
  width: 100%;
  margin-top: 40px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-logo .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.92rem;
}

[data-card].is-hidden {
  display: none;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

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

  .rank-aside {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-slider {
    height: auto;
    min-height: 660px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 88px 0 70px;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    top: auto;
    bottom: 72px;
  }

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

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

  .rank-section,
  .detail-hero,
  .detail-content,
  .footer-shell,
  .channel-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .quick-panel,
  .section-shell,
  .rank-section,
  .category-preview-shell,
  .page-main,
  .detail-main,
  .footer-shell,
  .footer-bottom {
    width: min(100% - 20px, 1180px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 78px;
  }

  .hero-copy p {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-grid,
  .movie-grid.compact-grid,
  .page-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-line {
    display: none;
  }

  .page-hero,
  .page-hero.slim,
  .detail-hero,
  .story-card,
  .category-preview {
    padding: 20px;
    border-radius: 22px;
  }

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