:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-300: #fcd34d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), #eef2ff);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-950));
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.hero-site-title {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100% - 1280px) / 2));
  top: 56px;
  max-width: 720px;
  color: var(--white);
}

.hero-site-title h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-site-title p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.6;
}

.hero-track,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 32px));
  margin: 168px auto 54px;
  max-width: 780px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h2 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.mini-tags,
.genre-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.hero-tags a,
.mini-tags span,
.genre-links a,
.footer-tags a,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--slate-700);
  background: var(--slate-100);
}

.hero-tags span,
.detail-tags a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button {
  min-height: 48px;
  padding: 0 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.30);
}

.primary-button:hover,
.quick-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.text-link {
  color: var(--orange-600);
  font-weight: 800;
}

.text-link:hover {
  transform: translateX(3px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange-500);
}

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 8px 0 0;
  color: var(--slate-800);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.compact-head {
  align-items: center;
  margin-bottom: 20px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

.poster-link img,
.detail-poster img,
.category-cover-row img,
.rank-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-score {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-body h2 {
  margin: 10px 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--orange-600);
}

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

.mini-tags {
  margin-bottom: 14px;
}

.mini-tags span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.card-score {
  justify-content: space-between;
  color: var(--slate-600);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.wide-panel,
.rank-panel,
.search-banner,
.category-overview-card,
.content-panel,
.info-panel,
.player-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.wide-panel,
.rank-panel,
.search-banner {
  padding: 28px;
}

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

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

.category-card,
.category-overview-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-overview-card h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 22px;
}

.category-card p,
.category-overview-card p,
.search-banner p,
.page-hero p {
  color: var(--slate-600);
  line-height: 1.75;
}

.category-samples,
.category-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a,
.category-link-row a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

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

.rank-item img {
  width: 64px;
  height: 46px;
  border-radius: 10px;
}

.rank-title {
  overflow: hidden;
  color: var(--slate-800);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--orange-600);
  font-weight: 900;
}

.search-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.search-banner h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.quick-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: var(--white);
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.genre-links {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.genre-links a {
  color: var(--slate-800);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.genre-links a:hover {
  color: var(--white);
  background: var(--orange-500);
}

.page-hero {
  position: relative;
  padding: 72px max(24px, calc((100% - 1280px) / 2));
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 34%), linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
  max-width: 900px;
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

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

.catalog-wrap {
  padding-top: 42px;
}

.filter-bar {
  margin-bottom: 28px;
}

.filter-bar select {
  max-width: 180px;
}

.search-tools {
  padding-top: 42px;
}

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

.category-overview-card {
  padding: 26px;
}

.category-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-top a {
  color: var(--orange-600);
  font-weight: 900;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.category-cover-row img {
  height: 112px;
  border-radius: 16px;
}

.detail-hero {
  min-height: 540px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
}

.detail-copy h1 {
  margin: 16px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-tags {
  margin: 22px 0 28px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

.detail-main {
  padding-top: 42px;
}

.player-panel,
.content-panel,
.info-panel {
  padding: 28px;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0.74));
}

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

.big-play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  font-weight: 900;
}

.play-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--white);
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: 28px;
}

.content-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 26px;
}

.content-panel h2:not(:first-child) {
  margin-top: 28px;
}

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

.info-panel dl {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}

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

.info-panel dd {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.6;
}

.block-button {
  width: 100%;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer p {
  line-height: 1.8;
}

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

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

.footer-tags a {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

.is-hidden-card {
  display: none !important;
}

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

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

  .movie-grid,
  .latest-grid,
  .catalog-grid,
  .ranking-grid,
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(320px, 100%);
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

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

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 720px;
  }

  .hero-site-title {
    top: 34px;
    left: 16px;
    right: 16px;
  }

  .hero-content {
    margin-top: 250px;
  }

  .hero-actions,
  .quick-search,
  .filter-bar {
    flex-direction: column;
  }

  .movie-grid,
  .latest-grid,
  .catalog-grid,
  .ranking-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .search-banner {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding: 48px 0;
  }

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

  .category-cover-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-hero-inner {
    padding: 44px 0;
  }

  .detail-poster {
    display: none;
  }

  .player-panel,
  .content-panel,
  .info-panel,
  .wide-panel,
  .rank-panel,
  .search-banner {
    padding: 20px;
  }

  .info-panel dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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