:root {
  --color-amber: #f59e0b;
  --color-amber-dark: #d97706;
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-gray-950: #111827;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-100: #f3f4f6;
  --color-cream: #fffbeb;
  --color-white: #ffffff;
  --shadow-soft: 0 20px 55px rgba(120, 53, 15, 0.16);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-gray-950);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffbeb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(146, 64, 14, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.brand-text {
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-amber-dark), var(--color-orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: var(--color-gray-700);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-amber-dark);
}

.header-search,
.mobile-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search input,
.category-tools input {
  width: 240px;
  border: 2px solid #fde68a;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  outline: none;
  color: var(--color-gray-800);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.category-tools input:focus {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search button,
.mobile-search button,
.page-search button,
.primary-button {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--color-white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.38);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  margin-left: auto;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-gray-800);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fde68a;
  padding: 18px 16px 22px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: var(--color-gray-950);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.15) brightness(0.58);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.38), rgba(245, 158, 11, 0.16)),
    radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.44), transparent 20rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  min-height: 660px;
  padding: 76px 0;
}

.hero-copy {
  max-width: 720px;
  color: var(--color-white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-amber);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-movie-title {
  margin-top: 14px !important;
  color: #fef3c7;
}

.hero-summary,
.page-hero p,
.lead-text {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-card .tag-row span,
.detail-tags span {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

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

.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.ghost-button.dark,
.text-button {
  color: var(--color-amber-dark);
  border-color: #fcd34d;
  background: #fffbeb;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--color-amber);
}

.section {
  padding: 72px 0;
}

.soft-section {
  background: rgba(255, 251, 235, 0.72);
}

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

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--color-gray-950);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

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

.category-pill {
  position: relative;
  min-height: 134px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-gray-950);
  box-shadow: var(--shadow-card);
}

.category-pill img {
  width: 100%;
  height: 100%;
  min-height: 134px;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease;
}

.category-pill:hover img {
  transform: scale(1.08);
}

.category-pill span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.48);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: var(--color-amber);
  box-shadow: var(--shadow-card);
}

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

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

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

.poster-overlay {
  position: absolute;
  inset: auto 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--color-white);
  font-weight: 900;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.34);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-gray-950);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--color-amber-dark);
}

.movie-meta {
  margin-top: 8px;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  font-weight: 700;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--color-gray-700);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card .movie-card-body p {
  -webkit-line-clamp: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 54px;
  border-radius: 36px;
  color: var(--color-white);
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.16), transparent 16rem),
    linear-gradient(135deg, #92400e, #f59e0b 48%, #ea580c);
  box-shadow: var(--shadow-soft);
}

.split-layout h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.split-layout p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--color-gray-800);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

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

.rank-line span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 0.86rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-line em {
  color: var(--color-gray-600);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  padding: 92px 0;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(146, 64, 14, 0.78)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.46), transparent 22rem);
}

.page-hero.slim-hero {
  padding: 76px 0;
}

.category-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.category-tools input {
  width: min(520px, 100%);
}

.category-overview {
  display: grid;
  gap: 22px;
}

.category-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid rgba(252, 211, 77, 0.54);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.1);
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.category-card p:not(.eyebrow) {
  color: var(--color-gray-700);
  line-height: 1.75;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-sample-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: #92400e;
  font-weight: 800;
  background: #fef3c7;
}

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

.ranking-column {
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.ranking-column h2 {
  margin: 0 0 18px;
}

.full-rank-list .rank-line {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--color-gray-700);
  font-size: 1.05rem;
  font-weight: 800;
}

.detail-hero {
  padding: 54px 0;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(120, 53, 15, 0.76)),
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.4), transparent 22rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 14px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.09);
}

.detail-meta-grid strong {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.34);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 20px 55px rgba(245, 158, 11, 0.42);
  transition: transform 0.25s ease, background 0.25s ease;
}

.play-circle::after {
  content: "";
  margin-left: 7px;
  border-left: 24px solid var(--color-white);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.play-cover:hover .play-circle {
  transform: scale(1.08);
  background: var(--color-orange);
}

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

.story-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.1);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.story-card p:not(.eyebrow) {
  color: var(--color-gray-700);
  font-size: 1.03rem;
  line-height: 1.9;
}

.accent-card {
  color: var(--color-white);
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.accent-card .eyebrow,
.accent-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  padding: 34px 0;
  color: #fef3c7;
  background: #111827;
}

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

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover,
.footer-brand:hover {
  color: var(--color-amber);
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

  .hero-content,
  .split-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .category-row,
  .movie-grid,
  .movie-grid.small-grid,
  .rankings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .menu-button {
    display: block;
  }

  .mobile-search input {
    width: 100%;
  }

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

  .hero-content {
    gap: 28px;
    padding: 48px 0 92px;
  }

  .hero-summary,
  .page-hero p,
  .lead-text {
    font-size: 1rem;
  }

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

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

  .category-row,
  .movie-grid,
  .movie-grid.small-grid,
  .rankings-layout,
  .category-card {
    grid-template-columns: 1fr;
  }

  .split-layout {
    padding: 28px;
  }

  .category-cover img {
    max-height: 260px;
  }

  .detail-layout {
    gap: 28px;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .brand-text {
    font-size: 1.2rem;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.45rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .page-search,
  .category-tools {
    display: grid;
  }

  .page-search input,
  .page-search button,
  .category-tools input {
    width: 100%;
  }
}
