* {
  box-sizing: border-box;
}

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-rose: #ef4444;
  --color-pink: #ec4899;
  --color-gold: #f59e0b;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f8fafc;
  color: var(--color-text);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.container,
.nav-wrap,
.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

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

.brand-name {
  font-size: 20px;
  color: #111827;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #374151;
  font-weight: 600;
}

.nav-link {
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-rose));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary-dark);
  margin: 5px 0;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  padding: 88px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(8px);
}

.hero-bg-orb-a {
  width: 240px;
  height: 240px;
  right: 8%;
  top: 10%;
}

.hero-bg-orb-b {
  width: 160px;
  height: 160px;
  left: 5%;
  bottom: -30px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--color-primary-dark);
  background: #fff7ed;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  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: #f97316;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-channels a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-stage {
  position: relative;
  min-height: 580px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(88, 28, 135, 0.35);
  background: rgba(17, 24, 39, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  z-index: 3;
}

.hero-slide-content span,
.poster-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-size: 12px;
  font-weight: 800;
}

.hero-slide-content h2 {
  margin: 14px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-slide-content a {
  display: inline-flex;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.section {
  padding: 72px 0;
  background: #fff;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 126px;
  overflow: hidden;
  background: #fee2e2;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-info {
  padding: 20px;
}

.category-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-info p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.featured-grid .movie-card-wide:first-child {
  grid-column: span 2;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.poster-link img,
.wide-cover img,
.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

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

.movie-card h3,
.ranking-body h3,
.wide-body h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-body h3 a:hover,
.wide-body h3 a:hover {
  color: var(--color-primary-dark);
}

.movie-card p,
.wide-body p,
.ranking-body p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.tag-row-large span {
  padding: 7px 11px;
  font-size: 13px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: minmax(190px, 42%) minmax(0, 1fr);
}

.wide-cover {
  min-height: 282px;
  overflow: hidden;
  background: #f3f4f6;
}

.wide-body {
  padding: 24px;
}

.wide-body h3 {
  font-size: 24px;
}

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

.ranking-list-page {
  gap: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 132px 70px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-cover {
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
}

.ranking-index {
  color: transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ranking-body h3 {
  font-size: 20px;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 15px;
  padding: 0 14px;
  color: #111827;
  background: #fff7ed;
  outline: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
}

.no-result {
  padding: 24px;
  border-radius: 18px;
  color: #6b7280;
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: linear-gradient(120deg, #f97316 0%, #ef4444 55%, #ec4899 100%);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.22), transparent 32%);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  align-items: center;
}

.channel-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.channel-preview a {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.channel-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  grid-template-columns: 280px minmax(0, 1fr);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-one-line {
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.player-section {
  background: #111827;
}

.player-section .section-heading,
.player-section .section-heading a {
  color: #fff;
}

.player-section .section-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.86));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-rose));
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.34);
  font-size: 28px;
  text-indent: 4px;
}

.play-title {
  font-size: 20px;
  font-weight: 900;
}

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

.prose-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 16px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-card div {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
}

.side-card dt {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 800;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-wrap {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.site-footer a {
  color: #d1d5db;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 520px;
  }

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

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

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

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

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
  }

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

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #fff7ed;
  }

  .hero,
  .page-hero,
  .detail-hero {
    padding: 56px 0;
  }

  .hero-stage {
    min-height: 450px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .section {
    padding: 54px 0;
  }

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

  .category-grid,
  .category-grid-large,
  .featured-grid,
  .movie-grid,
  .compact-grid,
  .library-grid,
  .footer-grid,
  .content-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-wide,
  .featured-grid .movie-card-wide:first-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ranking-index {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 26px;
  }

  .ranking-item {
    position: relative;
  }

  .ranking-body {
    padding-right: 42px;
  }

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

@media (max-width: 520px) {
  .container,
  .nav-wrap,
  .footer-wrap {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .compact-grid,
  .library-grid {
    gap: 12px;
  }

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

  .movie-card h3 {
    font-size: 14px;
  }

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

  .hero-stage {
    min-height: 390px;
  }

  .hero-slide-content {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
