:root {
  --bg: #fffbeb;
  --bg-soft: #fff7ed;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.16);
  --brand: #d97706;
  --brand-deep: #b45309;
  --brand-soft: #fef3c7;
  --shadow: 0 20px 60px rgba(120, 53, 15, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 52%, var(--bg) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(120, 53, 15, 0.08);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.32);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #78350f;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #92400e);
}

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

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

.hero-bg,
.hero-bg img,
.detail-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img,
.detail-bg img {
  object-fit: cover;
  opacity: 0.72;
}

.image-hidden {
  opacity: 0 !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.24), transparent 25rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: min(1200px, calc(100% - 32px));
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 20px;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-kicker {
  color: var(--brand-deep);
  background: #fef3c7;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.hero-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.card-meta {
  margin: 0 0 10px;
}

.card-meta span {
  color: #92400e;
  background: #fffbeb;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 14px 32px rgba(194, 65, 12, 0.34);
}

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

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.secondary-button.light,
.outline-button {
  color: var(--brand-deep);
  border: 1px solid var(--line);
  background: #ffffff;
}

.ghost-button {
  color: #78350f;
  background: var(--brand-soft);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.intro-strip {
  margin-top: -44px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip h2,
.section-heading h2,
.content-card h2,
.rank-info h2,
.movie-card h3,
.category-overview-card h2 {
  margin: 0;
  color: #431407;
  line-height: 1.2;
}

.intro-strip p,
.page-hero p,
.content-card p,
.movie-card p,
.category-overview-card p,
.rank-info p {
  color: var(--muted);
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.text-link {
  color: var(--brand-deep);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.24), transparent 10rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
  transition: 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover,
.movie-card:hover,
.mini-card:hover,
.rank-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-card small {
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 900;
}

.category-tile strong {
  color: #431407;
  font-size: 0.95rem;
}

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

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.45fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 6px;
  color: #78350f;
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 14px;
  padding: 0 14px;
  color: #431407;
  background: #ffffff;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 24px;
}

.library-grid,
.category-movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: 0.2s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at top, rgba(251, 191, 36, 0.32), transparent 50%),
    linear-gradient(135deg, #78350f, #f59e0b);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

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

.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  text-align: center;
  font-weight: 900;
}

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

.movie-card h3 {
  min-height: 2.4em;
  margin-bottom: 8px;
  font-size: 1.02rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 4.4em;
  margin: 0 0 12px;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact p {
  display: none;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.ranking-block {
  padding-top: 36px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.mini-poster {
  overflow: hidden;
  width: 64px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.mini-content {
  min-width: 0;
}

.mini-content strong,
.mini-content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-content strong {
  color: #431407;
}

.mini-content small {
  color: var(--muted);
}

.mini-score {
  color: var(--brand-deep);
  font-weight: 950;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.34), transparent 22rem),
    linear-gradient(135deg, #fff7ed, #fef3c7);
}

.page-hero-content {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.page-hero h1 {
  max-width: 820px;
  color: #431407;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

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

.category-overview-card a {
  min-height: 220px;
}

.category-overview-card h2 {
  font-size: 1.8rem;
}

.sample-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-titles span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #78350f;
  background: #fffbeb;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.rank-number {
  color: var(--brand-deep);
  font-size: 1.35rem;
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.rank-info h2 {
  font-size: 1.2rem;
}

.rank-info p {
  margin: 8px 0;
}

.detail-hero {
  min-height: 520px;
  color: #ffffff;
  background: #111827;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, #111827, rgba(17, 24, 39, 0.08));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  max-width: 840px;
  font-size: clamp(2rem, 6vw, 4.8rem);
}

.detail-one-line {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

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

.player-section {
  padding-top: 48px;
  padding-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 24rem),
    rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 18px 44px rgba(194, 65, 12, 0.42);
  cursor: pointer;
  transition: 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.play-button span {
  display: inline-block;
  margin-left: 6px;
  font-size: 2rem;
  line-height: 1;
}

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

.content-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
  margin-bottom: 12px;
}

.content-card p {
  margin: 0;
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #78350f;
}

.footer-logo {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

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

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

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

  .search-field {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

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

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

  .nav-link {
    border-radius: 14px;
  }

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

  .hero-control {
    top: auto;
    bottom: 22px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-dots {
    bottom: 36px;
  }

  .intro-strip,
  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .category-grid,
  .category-overview-grid,
  .ranking-list,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 46px 70px minmax(0, 1fr);
  }

  .rank-row .outline-button {
    grid-column: 2 / -1;
  }

  .rank-cover {
    width: 70px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .play-button {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .library-grid,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .intro-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .outline-button {
    width: 100%;
  }
}
