:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --primary: #f97316;
  --primary-dark: #c2410c;
  --amber: #d97706;
  --shadow: 0 18px 55px rgba(124, 45, 18, .16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(124, 45, 18, .1);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  box-shadow: 0 10px 26px rgba(249, 115, 22, .34);
  transition: transform .3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(90deg, var(--primary-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-menu a:hover {
  color: #9a3412;
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #9a3412;
  background: #ffedd5;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #1c1917;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity .8s ease, transform 1.2s ease;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 170px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: .95;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .86);
}

.hero-tags,
.movie-tags,
.detail-meta,
.page-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.hero-content .hero-tags span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 237, 213, .2);
  border: 1px solid rgba(255, 255, 255, .16);
}

.hero-actions {
  margin-top: 34px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  box-shadow: 0 16px 30px rgba(249, 115, 22, .28);
}

.btn-light {
  color: #9a3412;
  background: #fff7ed;
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .72);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(22px);
}

.hero-search input,
.filter-bar input {
  width: 100%;
  height: 48px;
  border: 2px solid transparent;
  outline: none;
  border-radius: 16px;
  padding: 0 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(124, 45, 18, .08);
}

.hero-search input:focus,
.filter-bar input:focus {
  border-color: #fb923c;
}

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

.hero-categories a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 750;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

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

.soft-bg {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, .42);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #ea580c;
  font-weight: 800;
}

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

.movie-grid-tight {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(124, 45, 18, .1);
  transition: transform .28s ease, box-shadow .28s ease;
}

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

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.movie-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

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

.movie-card figure b,
.movie-card figure em {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  font-size: 12px;
  font-style: normal;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.movie-card figure em {
  left: auto;
  right: 10px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  transition: color .25s ease;
}

.movie-card:hover h3 {
  color: #ea580c;
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-line {
  margin-top: 8px;
  min-height: 40px;
}

.movie-tags {
  margin-top: 12px;
}

.movie-card-compact {
  flex-direction: row;
}

.movie-card-compact figure {
  width: 118px;
  flex: 0 0 118px;
  aspect-ratio: 2 / 3;
}

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

.category-tile,
.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-6px);
}

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile span,
.category-card p {
  color: rgba(255, 255, 255, .88);
  line-height: 1.7;
}

.category-card {
  color: var(--text);
  background: #fff;
}

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

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

.category-thumbs img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.page-hero {
  padding: 92px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 237, 213, .22), transparent 32%), linear-gradient(120deg, #9a3412, #f97316 48%, #d97706);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 19px;
  line-height: 1.8;
}

.page-actions {
  margin-top: 30px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(124, 45, 18, .08);
}

.filter-bar span {
  color: #ea580c;
  font-weight: 800;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 102px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(124, 45, 18, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

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

.rank-row img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.rank-info strong,
.rank-info small {
  display: block;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info small {
  margin-top: 6px;
  color: var(--muted);
}

.rank-type {
  color: #9a3412;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 72px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  background: radial-gradient(circle at 18% 18%, rgba(251, 146, 60, .45), transparent 30%), linear-gradient(120deg, #1c1917, #7c2d12 58%, #d97706);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: #fdba74;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .72);
}

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

.detail-copy h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 22px;
}

.player-section {
  padding-top: 64px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .66));
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, .32);
  font-size: 32px;
  transition: transform .25s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

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

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(124, 45, 18, .08);
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.site-footer {
  padding: 36px 16px;
  color: #fed7aa;
  background: #1c1917;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-inner strong {
  color: #fff;
}

[data-card][hidden] {
  display: none !important;
}

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

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

@media (max-width: 780px) {
  .nav-wrap {
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .hero-content {
    padding: 104px 0 250px;
  }

  .hero-summary,
  .detail-line {
    font-size: 17px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    justify-content: center;
  }

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

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

  .movie-card-compact {
    flex-direction: column;
  }

  .movie-card-compact figure {
    width: auto;
    flex-basis: auto;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 76px;
  }

  .rank-type {
    display: none;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid-tight,
  .movie-grid-rank,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
