:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #142033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --blue-500: #3b82f6;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  color: var(--slate-900);
}

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

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

button,
input {
  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));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.brand-name {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #cbd5e1;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--cyan-400);
}

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

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--slate-800);
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.03);
}

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

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--cyan-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04;
  font-weight: 900;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-tags span:first-child {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

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

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

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

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

.home-search {
  max-width: 1280px;
  margin: -46px auto 0;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.home-search h2,
.section-head h2,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 900;
  color: var(--slate-900);
}

.home-search h2 {
  font-size: 30px;
}

.home-search p {
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.home-search-form {
  display: flex;
  padding: 6px;
  border-radius: 15px;
  background: #e2e8f0;
}

.home-search-form input,
.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}

.home-search-form input {
  padding: 0 14px;
}

.home-search-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head a {
  color: #0891b2;
  font-weight: 800;
}

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), #164e63);
}

.card-cover img,
.rank-cover img,
.category-tile img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-cover::after,
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.card-badge,
.card-meta {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(6, 182, 212, 0.9);
}

.card-meta {
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 18px;
}

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

.card-body h3 a:hover {
  color: #0891b2;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--slate-600);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row span {
  color: var(--slate-500);
  background: #f1f5f9;
}

.dark-feature {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
}

.dark-feature .section-head h2,
.dark-feature .section-head a {
  color: var(--white);
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 120px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dark-feature .rank-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.rank-cover {
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-900);
}

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 850;
}

.dark-feature .rank-title,
.dark-feature .rank-line,
.dark-feature .rank-info p {
  color: var(--white);
}

.rank-line {
  margin-bottom: 6px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.rank-info p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.62;
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 18px;
}

.category-tile span {
  padding-top: 94px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.sub-hero {
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 28%), linear-gradient(135deg, var(--slate-900), #164e63, var(--slate-900));
}

.sub-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px;
}

.sub-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 58px);
}

.sub-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #d1d5db;
  line-height: 1.8;
  font-size: 17px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.crumbs a:hover {
  color: var(--cyan-400);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: #f1f5f9;
}

.search-box span {
  color: #0891b2;
  font-weight: 900;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--slate-600);
  font-weight: 750;
  background: #f1f5f9;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-section-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.category-section-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-section-head p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.category-section-head a {
  flex: 0 0 auto;
  color: #0891b2;
  font-weight: 850;
}

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

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  color: var(--white);
}

.detail-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  background: #0f172a;
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 820px;
  margin: 18px 0 20px;
  color: #d1d5db;
  line-height: 1.85;
  font-size: 17px;
}

.detail-meta span {
  color: #cffafe;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.36);
}

.detail-tags {
  margin-top: 16px;
  margin-bottom: 26px;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-card,
.article-card,
.side-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card,
.article-card {
  padding: 26px;
}

.player-card h2,
.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25), rgba(0, 0, 0, 0.45));
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.42);
}

.play-overlay.is-hidden {
  display: none;
}

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

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 650;
}

.side-card a {
  color: #0891b2;
}

.related-wrap {
  padding-top: 0;
}

.empty-state {
  padding: 48px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--slate-600);
  background: var(--white);
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-900);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
  text-align: center;
}

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

  .rank-list.small,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding: 0 22px;
  }

  .hero-control {
    display: none;
  }

  .home-search,
  .filter-panel,
  .footer-grid,
  .rank-card {
    grid-template-columns: 1fr;
  }

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

  .home-search {
    margin: 24px 18px 0;
  }

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

  .rank-card {
    align-items: start;
  }

  .rank-cover {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero-carousel {
    height: 620px;
  }

  .hero-content h1,
  .detail-copy h1,
  .sub-hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .home-search-form {
    flex-direction: column;
  }

  .home-search-form {
    padding: 10px;
    gap: 10px;
  }

  .home-search-form input {
    min-height: 44px;
  }

  .home-search-form button {
    min-height: 44px;
  }

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

  .section-wrap,
  .sub-hero > div,
  .detail-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-card,
  .article-card,
  .side-card,
  .category-section-card {
    padding: 18px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
