:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --slate-950: #1f1308;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.13);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 55px rgba(120, 53, 15, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 34%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #78350f;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

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

.site-nav a {
  padding: 10px 16px;
  color: #78350f;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: clamp(560px, 78vh, 720px);
  overflow: hidden;
  background: #78350f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: clamp(32px, 8vw, 92px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 18%, rgba(252, 211, 77, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(146, 64, 14, 0.76) 55%, rgba(251, 146, 60, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-600);
}

.hero-content h1,
.hero-content h2,
.subpage-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h1 {
  max-width: 920px;
  font-size: clamp(42px, 8vw, 82px);
}

.hero-content h2 {
  margin-top: 18px;
  font-size: clamp(32px, 6vw, 58px);
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.ghost-button.dark {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(255, 251, 235, 0.9);
}

.hero-control-row {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 4vw, 56px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(69, 26, 3, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-300);
  opacity: 1;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 82px) 0;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading a {
  color: #92400e;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line span,
.detail-meta span,
.detail-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  background: #fff7ed;
  border-radius: 999px;
}

.detail-meta strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.compact-card .movie-card-body {
  padding: 13px;
}

.compact-card h3 {
  font-size: 16px;
}

.warm-band {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.86), rgba(255, 237, 213, 0.72));
  border-block: 1px solid var(--line);
}

.band-inner {
  padding-top: 62px;
  padding-bottom: 62px;
}

.category-strip,
.category-grid {
  display: grid;
  gap: 18px;
}

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

.category-strip a,
.category-card {
  display: block;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-strip a:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-strip strong {
  display: block;
  color: #78350f;
  font-size: 19px;
  margin-bottom: 8px;
}

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

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.07);
}

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

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.rank-item strong {
  color: #92400e;
  font-size: 18px;
}

.full-rank .rank-item {
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 96px) clamp(18px, 7vw, 84px);
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(252, 211, 77, 0.35), transparent 32%),
    linear-gradient(115deg, #451a03, #92400e 58%, #f97316);
}

.subpage-hero h1 {
  max-width: 920px;
  font-size: clamp(36px, 7vw, 68px);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 11px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-weight: 900;
}

.category-card h2 {
  margin: 0 0 12px;
  color: #111827;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview span {
  padding: 6px 9px;
  color: #92400e;
  background: #fff7ed;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px;
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: #92400e;
  font-weight: 900;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #111827;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip-row button {
  border: 0;
  padding: 8px 13px;
  color: #92400e;
  background: #fff7ed;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.chip-row button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(36px, 6vw, 76px) clamp(18px, 7vw, 84px);
  background:
    radial-gradient(circle at 16% 12%, rgba(252, 211, 77, 0.28), transparent 30%),
    linear-gradient(120deg, #fffbeb, #fff7ed 62%, #fed7aa);
}

.detail-poster-wrap {
  position: relative;
}

.detail-poster-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: var(--radius-xl);
  opacity: 0.28;
}

.detail-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 800;
}

.detail-info h1 {
  color: #111827;
  font-size: clamp(36px, 6vw, 66px);
}

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

.detail-lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.78), rgba(234, 88, 12, 0.46));
  border: 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.large-play {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: #92400e;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  color: #ffedd5;
  font-weight: 800;
}

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

.text-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.text-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 56px);
  color: #78350f;
  background: #fffbeb;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer a {
  font-weight: 900;
}

.is-filtered-out {
  display: none !important;
}

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

  .two-column-layout,
  .detail-text {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

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

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 251, 235, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .hero-section {
    min-height: 660px;
  }

  .hero-slide {
    padding: 96px 20px 90px;
  }

  .hero-control-row {
    right: 20px;
    left: 20px;
    justify-content: space-between;
  }

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

  .featured-grid,
  .side-grid,
  .all-movies-grid,
  .category-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item,
  .full-rank .rank-item {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-item strong {
    grid-column: 3;
  }

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

  .detail-poster-wrap {
    max-width: 320px;
  }
}
