:root {
  --bg: #fffaf1;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.86);
  --text: #2b2118;
  --muted: #74685c;
  --border: rgba(217, 119, 6, 0.18);
  --accent: #d97706;
  --accent-2: #ea580c;
  --accent-3: #fbbf24;
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.25), transparent 35rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf1 42%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 35px rgba(120, 53, 15, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #5f5146;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff3df;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--accent);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  padding-bottom: 42px;
}

.hero-slider {
  position: relative;
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.97), rgba(255, 247, 237, 0.82) 45%, rgba(255, 247, 237, 0.44)),
    radial-gradient(circle at 80% 16%, rgba(234, 88, 12, 0.28), transparent 30rem);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  align-items: center;
  gap: 56px;
  min-height: 720px;
  padding-top: 64px;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0;
  color: #5b4c3f;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.genre-row,
.tag-cloud,
.tag-filter-row,
.detail-meta-row,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.genre-row span,
.tag-cloud a,
.tag-filter-row button,
.hero-category-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #7c4a03;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.quick-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.26);
}

.secondary-button {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
}

.primary-button:hover,
.secondary-button:hover,
.quick-search button:hover,
.movie-card:hover,
.category-tile:hover,
.compact-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
}

.hero-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}

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

.hero-controls button {
  border: 0;
  color: #fff;
  background: rgba(217, 119, 6, 0.88);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
}

.hero-dots .hero-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  padding: 0;
  background: #f3c67f;
}

.hero-dots .hero-dot.active {
  width: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-search-panel {
  position: relative;
  z-index: 5;
  margin-top: -92px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-search input,
.inline-search input {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 999px;
  background: #fff;
  padding: 14px 18px;
  color: var(--text);
}

.section {
  padding: 74px 0;
}

.warm-section {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.72));
}

.light-section {
  background: rgba(255, 251, 235, 0.72);
}

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

.section-head h2,
.rank-panel h2,
.watch-card h2,
.detail-text h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.05em;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.10);
  transition: 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #feeacf;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.card-body h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-body p {
  min-height: 64px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-row span {
  padding: 6px 10px;
  font-size: 12px;
}

.rank-panel,
.watch-card,
.table-wrap,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rank-head a {
  color: var(--accent);
  font-weight: 900;
}

.rank-panel ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff8ec;
}

.rank-num,
.table-rank {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.rank-panel em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

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

.category-tile {
  display: block;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 7rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.10);
  transition: 0.22s ease;
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition: 0.2s ease;
}

.compact-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.sub-hero {
  position: relative;
  padding: 96px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.22), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #fffbeb);
}

.sub-hero h1 {
  font-size: clamp(42px, 7vw, 74px);
}

.sub-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #7c4a03;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--accent);
}

.tag-filter-row {
  margin-top: 24px;
}

.tag-filter-row button {
  cursor: pointer;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-cover img {
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
}

.category-overview-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff5df;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  padding: 12px;
}

.rank-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.rank-table th {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.rank-table small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 80px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.12);
  transform: scale(1.08);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.98), rgba(255, 247, 237, 0.82) 62%, rgba(255, 247, 237, 0.55));
}

.detail-hero-inner {
  position: relative;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 80px);
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0;
  color: #574a3d;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  color: #7c4a03;
  font-weight: 800;
}

.genre-row {
  margin-top: 16px;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #1b130d;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.16));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
  font-size: 28px;
}

.play-overlay strong {
  font-size: 18px;
}

.player-shell.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.watch-card {
  padding: 24px;
}

.watch-card p,
.detail-text p {
  color: var(--muted);
  line-height: 1.85;
}

.tag-cloud {
  margin-top: 18px;
}

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

.text-grid article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.site-footer {
  padding: 62px 0 26px;
  background: #2d1d12;
  color: #f8ead9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  color: #decbb8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: #f4d9bc;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfb79e;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .hero-content,
  .split-layout,
  .player-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 360px;
    justify-self: center;
  }

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 820px;
  }

  .hero-content {
    gap: 26px;
    padding-top: 36px;
  }

  .hero-summary,
  .sub-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 150px;
  }

  .quick-search,
  .section-head,
  .footer-grid,
  .text-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-grid,
  .feature-grid,
  .compact-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 52px 0;
  }
}

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

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

  .hero-search-panel {
    margin-top: -62px;
    padding: 16px;
  }

  .detail-layout {
    gap: 24px;
  }
}
