:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --red-500: #ef4444;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  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(135deg, var(--slate-50), var(--slate-100));
  color: var(--slate-800);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.24);
}

.nav-wrap {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
  font-size: 15px;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: var(--orange-400);
  opacity: 1;
}

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

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.03);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(249, 115, 22, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.92));
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  min-height: 600px;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 30px;
}

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

.hero-links {
  margin-top: 24px;
}

.hero-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-links a:hover {
  transform: translateY(-2px);
  background: var(--orange-500);
}

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

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

.btn.primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.btn.primary:hover {
  background: var(--orange-600);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-feature a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-feature img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-feature-text {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.hero-feature-text em,
.movie-meta,
.footer-bottom {
  color: var(--slate-500);
  font-style: normal;
  font-size: 14px;
}

.hero-feature-text em {
  color: var(--orange-400);
}

.hero-feature-text strong {
  color: var(--white);
  font-size: 24px;
}

.hero-feature-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px;
}

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

.section-head span {
  display: block;
  color: var(--orange-500);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-head h2 {
  margin: 4px 0 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head a {
  color: var(--orange-600);
  font-weight: 800;
}

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

.category-band {
  padding: 76px max(20px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

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

.category-tile {
  min-height: 210px;
  padding: 32px 24px;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: center;
  border-radius: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  background: var(--orange-500);
}

.category-tile span {
  font-size: 42px;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 14px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red-500);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--orange-500);
}

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

.movie-card h3 {
  min-height: 52px;
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--orange-600);
}

.movie-desc {
  min-height: 52px;
  color: var(--slate-600);
  font-size: 14px;
  margin: 10px 0 14px;
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--orange-600);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
}

.ranking-panel {
  padding-top: 32px;
}

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

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mini-card img {
  width: 78px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card span {
  display: grid;
  gap: 4px;
}

.mini-card strong {
  color: var(--slate-800);
  line-height: 1.35;
}

.mini-card em {
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 20px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.35), transparent 32%),
    linear-gradient(90deg, var(--slate-800), var(--slate-900));
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 58px);
}

.category-overview-list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  gap: 30px;
}

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: stretch;
  padding: 22px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-overview-cover {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.82)),
    var(--tile-image) center / cover;
}

.category-overview-cover span {
  font-size: 64px;
}

.category-overview-body {
  display: grid;
  align-content: center;
  gap: 14px;
}

.category-overview-body h2 {
  margin: 0;
  font-size: 30px;
}

.category-overview-body p {
  margin: 0;
  color: var(--slate-600);
}

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

.small-card .movie-cover {
  height: 150px;
}

.small-card .movie-card-body {
  padding: 14px;
}

.small-card h3 {
  min-height: auto;
  font-size: 15px;
}

.small-card .movie-desc,
.small-card .tag-row {
  display: none;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-box,
.select-box {
  display: grid;
  gap: 7px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--slate-800);
  background: var(--white);
  font: inherit;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.view-buttons {
  display: flex;
  gap: 8px;
}

.view-buttons button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  color: var(--slate-600);
  background: var(--slate-100);
  cursor: pointer;
}

.view-buttons button.active {
  color: var(--white);
  background: var(--orange-500);
}

.catalog-grid.list-mode {
  grid-template-columns: 1fr;
}

.catalog-grid.list-mode .movie-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.catalog-grid.list-mode .movie-cover {
  height: 100%;
  min-height: 180px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  transform: scale(1.04);
}

.detail-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 20px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  height: 460px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-400);
}

.breadcrumb em {
  color: var(--white);
  font-style: normal;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

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

.player-section {
  padding-top: 64px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-cover span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange-500);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
  font-size: 26px;
}

.play-cover strong {
  font-size: 20px;
}

.play-cover.hidden {
  display: none;
}

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

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

.story-card h2,
.side-recommend h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 26px;
}

.story-card p {
  margin: 0 0 18px;
  color: var(--slate-600);
  font-size: 16px;
}

.site-footer {
  color: #d1d5db;
  background: var(--slate-900);
  padding: 56px 20px 24px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

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

.footer-grid p {
  margin: 14px 0 0;
  color: #cbd5e1;
}

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

.footer-links a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-feature img {
    height: 280px;
  }

  .detail-poster img {
    height: 420px;
  }

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

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

  .catalog-grid.list-mode .movie-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

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

  .logo strong {
    font-size: 17px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner,
  .section-wrap,
  .page-hero,
  .category-band,
  .category-overview-list,
  .detail-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .movie-grid,
  .feature-grid,
  .compact-grid,
  .ranking-list,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover {
    height: 220px;
  }

  .catalog-grid.list-mode .movie-card {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    height: 360px;
  }
}
