:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #ea580c;
  --deep: #451a03;
  --shadow: 0 20px 60px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.32), transparent 36rem),
    radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
}

body.player-page {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.2), transparent 30rem),
    linear-gradient(180deg, #1c1208 0%, #fff7ed 34%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-logo {
  font-size: 22px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  color: #374151;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-dark);
  background: rgba(251, 191, 36, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.hero-section {
  padding: 28px 0 64px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #1c1208;
  box-shadow: 0 40px 90px rgba(69, 26, 3, 0.28);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(4px) saturate(1.08);
  opacity: 0.52;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 18, 8, 0.94) 0%, rgba(69, 26, 3, 0.76) 46%, rgba(69, 26, 3, 0.25) 100%),
    radial-gradient(circle at 72% 25%, rgba(251, 191, 36, 0.34), transparent 24rem);
}

.hero-grid {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 64px;
}

.hero-copy {
  color: #ffffff;
}

.hero-eyebrow,
.section-kicker,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #fde68a;
  font-size: 20px;
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-list span,
.detail-tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

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

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

.btn-soft {
  color: #78350f;
  background: #fef3c7;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  color: #78350f;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

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

.content-section {
  padding: 54px 0;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--amber-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  background: #451a03;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.35s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(69, 26, 3, 0.92) 100%);
}

.category-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.category-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.category-copy em {
  display: block;
  color: #fde68a;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(120, 53, 15, 0.2);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  top: 12px;
  left: 12px;
  color: #78350f;
  background: #fef3c7;
}

.poster-type {
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.82);
  backdrop-filter: blur(8px);
}

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

.movie-meta-line,
.detail-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after,
.detail-mini-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #f59e0b;
}

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

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

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

.rank-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 30px;
  background: #451a03;
  box-shadow: var(--shadow);
}

.rank-feature img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: 0.58;
}

.rank-feature-copy {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: #ffffff;
}

.rank-feature-copy h3 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.rank-feature-copy p {
  max-width: 720px;
  color: #fde68a;
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-glass);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffffff;
}

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

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  margin-bottom: 6px;
  color: #111827;
}

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

.page-hero {
  padding: 48px 0 24px;
}

.page-heading {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.no-results {
  display: none;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--amber-dark);
  background: #fef3c7;
  font-weight: 800;
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #fde68a;
  font-size: 14px;
}

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

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
  color: #ffffff;
}

.detail-title-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(69, 26, 3, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.detail-title-card h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-title-card p {
  margin: 0;
  color: #fde68a;
  font-size: 18px;
  line-height: 1.85;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #451a03;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.player-wrap {
  overflow: hidden;
  margin-bottom: 34px;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.08);
}

.play-symbol {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 48px rgba(234, 88, 12, 0.4);
  font-size: 38px;
  padding-left: 6px;
}

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

.detail-copy,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: 34px;
}

.detail-copy h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
}

.detail-copy p {
  margin: 0 0 26px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.detail-side-card {
  padding: 24px;
}

.detail-side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 22px;
}

.detail-data {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-data div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.detail-data dt {
  color: var(--amber-dark);
  font-weight: 900;
}

.detail-data dd {
  margin: 0;
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.08);
}

.related-card img {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  object-fit: cover;
}

.related-card strong {
  display: block;
  padding: 12px;
  color: #111827;
  line-height: 1.4;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.pagination-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--amber-dark);
  background: #ffffff;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #fde68a;
  background: linear-gradient(135deg, #451a03, #78350f 55%, #92400e);
}

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

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(253, 230, 138, 0.2);
  color: #fde68a;
  font-size: 14px;
}

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

  .hero-grid,
  .detail-head,
  .detail-main-grid,
  .rank-board {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    max-width: 340px;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero-shell,
  .hero-grid {
    min-height: 760px;
  }

  .hero-grid {
    padding: 32px 24px 88px;
    gap: 26px;
  }

  .hero-controls {
    left: 24px;
    right: 24px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .section-heading,
  .page-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
    display: inline-flex;
  }

  .category-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .detail-title-card,
  .detail-copy,
  .page-heading {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .mobile-nav,
  .main-content,
  .page-main,
  .detail-layout,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero-shell {
    width: min(100% - 22px, 1180px);
    border-radius: 24px;
  }

  .hero-grid {
    padding: 28px 18px 86px;
  }

  .hero-poster {
    max-width: 260px;
  }

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

  .rank-item {
    grid-template-columns: 38px 54px minmax(0, 1fr);
  }

  .rank-item img {
    width: 54px;
    height: 70px;
  }
}
