* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --amber: #d97706;
  --amber-dark: #92400e;
  --amber-soft: #fef3c7;
  --card: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 80px rgba(146, 64, 14, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.32), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.25), transparent 28rem),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 251, 235, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--amber-dark);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.32);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

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

.site-nav a:hover {
  color: #fff;
  background: var(--amber-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--amber-dark);
  border-radius: 999px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 56px 0 88px;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.55;
  animation: floatOrb 7s ease-in-out infinite alternate;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: rgba(251, 191, 36, 0.55);
  left: 6%;
  top: 16%;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: rgba(146, 64, 14, 0.2);
  right: 5%;
  bottom: 5%;
  animation-delay: 1.2s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: #451a03;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 16px 36px rgba(180, 83, 9, 0.32);
}

.btn-ghost {
  color: #78350f;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.btn-ghost.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(146, 64, 14, 0.92), rgba(217, 119, 6, 0.72)),
    radial-gradient(circle at 25% 20%, rgba(254, 243, 199, 0.75), transparent 38%);
  box-shadow: 0 22px 62px rgba(120, 53, 15, 0.26);
  isolation: isolate;
}

.poster-large {
  min-height: 460px;
  border-radius: 34px;
}

.poster-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.poster-frame:hover .poster-image {
  transform: scale(1.05);
}

.poster-image.is-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 3;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(69, 26, 3, 0.84), transparent 58%);
}

.poster-glow {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  z-index: 4;
  pointer-events: none;
}

.hero-switcher {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.16);
  backdrop-filter: blur(18px);
}

.hero-switcher button {
  border: 0;
  color: #78350f;
  background: transparent;
  font-weight: 900;
}

.hero-switcher > button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--amber-soft);
  font-size: 22px;
  line-height: 1;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.28);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--amber-dark);
}

section.container {
  margin-top: 72px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side-card h2 {
  margin: 0;
  color: #451a03;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
}

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

.section-heading.with-link > a,
.text-link {
  color: var(--amber-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 50px rgba(120, 53, 15, 0.08);
  backdrop-filter: blur(14px);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(180, 83, 9, 0.15);
}

.search-box span {
  color: #78350f;
  font-weight: 900;
}

.search-box input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  color: #451a03;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  min-width: 132px;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(180, 83, 9, 0.15);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card .poster-frame {
  border-radius: 24px 24px 8px 8px;
  min-height: auto;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #d97706;
}

.movie-card h3 {
  min-height: 54px;
  margin: 0;
  color: #451a03;
  font-size: 18px;
  line-height: 1.5;
}

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

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

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.large-tags span {
  font-size: 13px;
}

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

.category-tile,
.category-overview-card,
.detail-side-card,
.detail-article {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.1);
  backdrop-filter: blur(18px);
}

.category-tile {
  padding: 24px;
}

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #451a03;
  font-size: 24px;
  font-weight: 900;
}

.category-main-link strong {
  min-width: 52px;
  padding: 8px 10px;
  text-align: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  font-size: 16px;
}

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

.category-samples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(254, 243, 199, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(253, 230, 138, 0.86);
  transform: translateX(3px);
}

.compact-card strong {
  color: #451a03;
}

.compact-card em,
.compact-year {
  color: #92400e;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 44px rgba(120, 53, 15, 0.1);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  font-size: 20px;
  font-weight: 900;
}

.rank-info h3 {
  margin: 0;
  color: #451a03;
  font-size: 18px;
}

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

.rank-info span {
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 26, 3, 0.9), rgba(146, 64, 14, 0.84)),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.56), transparent 26rem);
}

.compact-page-hero {
  padding: 82px 0 64px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #fde68a;
  line-height: 1.85;
}

.page-hero .section-kicker {
  color: #fcd34d;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.detail-copy .breadcrumb {
  color: #92400e;
}

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

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

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #451a03;
  font-size: 28px;
}

.category-overview-poster .poster-frame {
  min-height: 220px;
  border-radius: 22px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 72px;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 15%, rgba(251, 191, 36, 0.42), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-copy {
  padding: 34px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 20px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.player-section {
  scroll-margin-top: 90px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.34);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background:
    linear-gradient(135deg, rgba(69, 26, 3, 0.78), rgba(17, 24, 39, 0.48)),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.3), transparent 35%);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  font-size: 34px;
}

.play-overlay strong {
  font-size: clamp(22px, 4vw, 40px);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.4);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-article,
.detail-side-card {
  padding: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.detail-side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-side-card dt {
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.detail-side-card dd {
  margin: 0;
  color: #451a03;
  font-weight: 800;
}

.site-footer {
  margin-top: 90px;
  padding: 42px 0;
  color: #fde68a;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #fef3c7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.searchable-card.is-hidden {
  display: none;
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

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

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

@media (max-width: 860px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 251, 235, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-shell {
    min-height: 760px;
    padding-top: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    align-content: center;
  }

  .hero-copy {
    padding: 28px;
  }

  .poster-large {
    min-height: 360px;
  }

  .filter-panel,
  .page-hero-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-controls {
    width: 100%;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-dense,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .brand-text {
    font-size: 17px;
  }

  .hero-shell {
    min-height: 720px;
  }

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

  .movie-grid,
  .movie-grid-dense,
  .rank-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}
