:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --amber: #d97706;
  --soft: #fff7ed;
  --dark: #0f172a;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 600;
  white-space: nowrap;
}

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

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

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  color: var(--orange);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  display: none;
  min-height: 80vh;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(120%);
  transform: scale(1.06);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.35)), linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent 42%);
}

.hero-content {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 54px;
  padding: 92px 0 116px;
}

.hero-copy {
  color: #ffffff;
}

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-row span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  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: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

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

.btn.soft {
  color: var(--orange);
  background: var(--soft);
}

.hero-cover {
  position: relative;
  justify-self: center;
  width: min(390px, 100%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-cover span,
.movie-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
  background: var(--orange);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.intro-strip a {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.intro-strip strong {
  font-size: 18px;
}

.intro-strip span {
  color: var(--muted);
  font-size: 14px;
}

section.container {
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.section-link {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.08));
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
}

.search-panel {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.search-line {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #f9fafb;
}

.search-line span {
  color: var(--orange);
  font-weight: 900;
}

.search-line input {
  flex: 1;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #9a3412;
  background: var(--soft);
  cursor: pointer;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-play {
  opacity: 0;
  width: 52px;
  height: 52px;
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
}

.movie-card h3 {
  min-height: 46px;
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #f3f4f6;
  padding: 3px 8px;
  font-size: 12px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.rank-num {
  color: var(--orange);
  font-weight: 900;
  font-size: 20px;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  display: grid;
  min-width: 0;
}

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

.rank-text em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.score {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 900;
}

.channel-panel {
  position: sticky;
  top: 98px;
  padding: 28px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #3b260a);
  box-shadow: var(--shadow);
}

.channel-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.channel-panel div {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.channel-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 74px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #3b260a);
  isolation: isolate;
}

.simple-hero p,
.category-hero p {
  max-width: 760px;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.highlight-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  padding-top: 0 !important;
}

.highlight-links a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.highlight-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.category-cover-stack {
  position: relative;
  min-height: 210px;
}

.category-cover-stack img {
  position: absolute;
  width: 118px;
  height: 164px;
  border: 5px solid #ffffff;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.category-cover-stack img:nth-child(1) {
  left: 0;
  top: 20px;
  transform: rotate(-8deg);
}

.category-cover-stack img:nth-child(2) {
  left: 52px;
  top: 0;
  z-index: 2;
}

.category-cover-stack img:nth-child(3) {
  right: 0;
  top: 30px;
  transform: rotate(7deg);
}

.category-cover-stack img:nth-child(4) {
  left: 40px;
  bottom: 0;
  z-index: 3;
  transform: rotate(2deg);
}

.category-overview-card h2 {
  margin: 8px 0;
}

.category-overview-card p {
  color: var(--muted);
}

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

.mini-links a {
  border-radius: 999px;
  padding: 5px 10px;
  color: #9a3412;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  isolation: isolate;
}

.detail-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 800;
}

.player-section {
  padding-top: 44px !important;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.video-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.24));
  cursor: pointer;
  z-index: 2;
}

.video-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.35);
  font-size: 34px;
}

.video-layer strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  color: #374151;
  font-size: 17px;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-content dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.35);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

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

  .hero-cover {
    display: none;
  }

  .intro-strip,
  .ranking-list.wide {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .channel-panel {
    position: static;
  }

  .detail-cover {
    max-width: 240px;
  }
}

@media (max-width: 620px) {
  .brand-text em {
    display: none;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 70vh;
  }

  .hero-content,
  .detail-hero-grid {
    padding: 54px 0 86px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy .lead {
    font-size: 16px;
  }

  .intro-strip,
  .category-grid,
  .highlight-links,
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    display: block;
  }

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

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

  .movie-card p {
    display: none;
  }

  .rank-item {
    grid-template-columns: 34px 50px 1fr;
  }

  .rank-item .score {
    display: none;
  }

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

  .category-cover-stack {
    display: none;
  }

  .detail-content dl {
    grid-template-columns: 64px 1fr;
  }
}
