* {
  box-sizing: border-box;
}

:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --yellow: #eab308;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --panel: #ffffff;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--amber), var(--yellow), var(--orange));
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.28);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #b45309, #f97316, #facc15);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(254, 240, 138, 0.6), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(251, 146, 60, 0.55), transparent 32%),
    linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(234, 88, 12, 0.78), rgba(250, 204, 21, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  max-width: 860px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: #ffedd5;
  font-size: clamp(24px, 4vw, 42px);
}

.hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.chip-line,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.chip-line span,
.detail-meta span,
.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

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

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

.btn-primary {
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.btn-ghost-dark {
  color: var(--amber-dark);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.58;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, #fff7ed, transparent);
}

.stat-panel {
  position: relative;
  z-index: 8;
  margin-top: -42px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.stat-panel div {
  text-align: center;
}

.stat-panel strong {
  display: block;
  color: var(--amber-dark);
  font-size: 32px;
}

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

.section-block {
  padding: 64px 0;
}

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

.section-head .eyebrow,
.page-hero .eyebrow,
.category-info .eyebrow {
  color: var(--amber-dark);
}

.section-head h2,
.page-hero h1,
.detail-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--amber-dark);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(120, 53, 15, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 64px rgba(120, 53, 15, 0.22);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.poster-wrap img,
.movie-card-row img,
.category-tile img,
.category-thumbs img,
.side-card > img,
.rank-row > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.duration {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3,
.rank-row h3,
.side-card h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p,
.rank-row p,
.side-card p,
.content-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chip-line {
  margin-top: 14px;
}

.chip-line span {
  color: var(--amber-dark);
  background: #ffedd5;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.movie-card-row {
  min-height: 158px;
  display: grid;
  grid-template-columns: 120px 1fr;
  scroll-snap-align: start;
}

.movie-card-row img {
  min-height: 100%;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 28px;
  background: linear-gradient(135deg, #92400e, #f97316);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.category-tile div {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.category-tile h3,
.category-card-large h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.page-hero {
  min-height: 320px;
  padding: 80px 0;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 12% 22%, rgba(254, 240, 138, 0.65), transparent 24%),
    linear-gradient(135deg, #fff7ed, #ffedd5 56%, #fde68a);
}

.page-hero > div {
  width: min(880px, calc(100% - 32px));
}

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

.category-card-large {
  min-height: 300px;
  display: grid;
  grid-template-columns: 45% 1fr;
  color: var(--ink);
  background: #ffffff;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
}

.category-thumbs img {
  border-radius: 18px;
  background: #fed7aa;
}

.category-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-info p,
.category-info span {
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.empty-state {
  margin: 24px 0;
  padding: 24px;
  text-align: center;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
}

.watch-page {
  padding: 38px 0 70px;
}

.breadcrumb {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-dark);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.28);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--amber);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  font-size: 32px;
}

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

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-panel,
.content-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(120, 53, 15, 0.1);
}

.detail-meta span {
  color: var(--amber-dark);
  background: #ffedd5;
}

.detail-panel h1 {
  margin-top: 20px;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.content-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.review-card {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

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

.info-list div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.tag-cloud a {
  color: var(--amber-dark);
  background: #ffedd5;
}

.watch-side {
  display: grid;
  gap: 20px;
}

.side-card {
  margin-top: 0;
}

.side-card > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: #fed7aa;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-list .movie-card-row {
  grid-template-columns: 92px 1fr;
}

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

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

.side-list .movie-card p {
  display: none;
}

.related-block {
  padding-bottom: 0;
}

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

.rank-row {
  min-height: 130px;
  padding: 14px;
  display: grid;
  grid-template-columns: 60px 92px 1fr;
  gap: 16px;
  align-items: center;
}

.rank-row:hover {
  transform: translateY(-3px);
}

.rank-no {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-row > img {
  width: 92px;
  height: 112px;
  border-radius: 16px;
  background: #fed7aa;
}

.site-footer {
  margin-top: 30px;
  padding: 58px 0 28px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

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

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

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .sticky-card {
    position: static;
  }
}

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

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 0 14px;
  }

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

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

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

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

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

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

@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }

  .hero-content {
    padding: 30px 0 80px;
  }

  .hero-actions,
  .detail-actions,
  .footer-bottom {
    flex-direction: column;
  }

  .stat-panel,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .library-grid,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 74px 1fr;
    gap: 10px;
  }

  .rank-row > img {
    width: 74px;
    height: 92px;
  }

  .section-head {
    display: block;
  }
}
