:root {
  --bg: #fffaf0;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fef3c7;
  --text: #2f2416;
  --muted: #76624a;
  --line: #f2d9a0;
  --brand: #b45309;
  --brand-dark: #92400e;
  --brand-soft: #f59e0b;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.13);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.20), transparent 28%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf0 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-dark));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  color: #78350f;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--brand);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #5f4b32;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #7c2d12;
  background: #fef3c7;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fef3c7;
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #78350f;
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #23150a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 17, 8, 0.88) 0%, rgba(28, 17, 8, 0.62) 45%, rgba(28, 17, 8, 0.15) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 1180px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: #7c2d12;
  background: #fef3c7;
}

.hero-content h1 {
  width: min(780px, 100%);
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  width: min(760px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.22);
}

.button-secondary {
  color: #7c2d12;
  background: #fef3c7;
  border-color: var(--line);
}

.button-ghost,
.button-ghost-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.button-ghost-light {
  color: #78350f;
  background: #ffffff;
  border-color: #fed7aa;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-arrow-left {
  left: 24px;
}

.hero-arrow-right {
  right: 24px;
}

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

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

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

.search-band,
.section-block,
.page-main {
  margin-top: 48px;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-title h1,
.content-card h2,
.category-overview-head h2 {
  margin: 12px 0 0;
  color: #43280f;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.home-search,
.global-search-box,
.filter-bar {
  display: flex;
  gap: 12px;
}

.home-search input,
.global-search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #43280f;
  background: #ffffff;
  border: 1px solid #f6d58a;
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-search input:focus,
.global-search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.text-link {
  color: var(--brand-dark);
  font-weight: 850;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(242, 217, 160, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #f59e0b;
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.18);
}

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

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

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(120, 53, 15, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.movie-info {
  padding: 15px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rating {
  color: #b45309;
}

.movie-info h3 {
  margin: 10px 0 8px;
  color: #351d07;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #6f604d;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-list span {
  display: inline-flex;
  padding: 5px 9px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card,
.category-overview-block,
.content-card,
.ranking-list,
.global-search-box,
.filter-bar,
.search-results {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.category-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-soft);
}

.category-covers {
  position: relative;
  min-height: 96px;
}

.category-covers img {
  position: absolute;
  width: 62px;
  height: 92px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(146, 64, 14, 0.15);
}

.category-covers img:nth-child(1) {
  left: 0;
  top: 0;
  z-index: 3;
}

.category-covers img:nth-child(2) {
  left: 28px;
  top: 10px;
  z-index: 2;
}

.category-covers img:nth-child(3) {
  left: 56px;
  top: 20px;
  z-index: 1;
}

.category-card strong {
  display: block;
  color: #43280f;
  font-size: 20px;
  margin-bottom: 5px;
}

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

.category-card p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.page-main {
  padding-bottom: 36px;
}

.page-title {
  margin-bottom: 28px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(255, 255, 255, 0.86));
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-title p {
  width: min(820px, 100%);
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.category-overview-block {
  padding: 24px;
  margin-bottom: 24px;
}

.filter-bar {
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
}

.filter-bar select {
  max-width: 180px;
}

.filter-count {
  min-width: max-content;
  color: var(--brand-dark);
  font-weight: 850;
}

.sticky-filter {
  position: sticky;
  top: 82px;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.ranking-panel {
  padding: 28px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.70), rgba(255, 255, 255, 0.88));
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
}

.ranking-list {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 70px minmax(0, 1fr) 90px 120px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f7e5bb;
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: #fffbeb;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-number {
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}

.ranking-row img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-title strong,
.ranking-title small {
  display: block;
}

.ranking-title strong {
  color: #351d07;
  font-size: 17px;
}

.ranking-title small {
  margin-top: 4px;
  color: var(--muted);
}

.ranking-score,
.ranking-views {
  color: var(--brand-dark);
  font-weight: 850;
}

.global-search-box,
.search-results {
  padding: 18px;
  margin-bottom: 28px;
}

.search-results:empty {
  display: none;
}

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

.search-result-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
}

.search-result-item img {
  width: 74px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item h3 {
  margin: 0 0 8px;
  color: #351d07;
}

.search-result-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-page {
  padding-bottom: 48px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.36), transparent 34%),
    linear-gradient(135deg, #1c1108, #4a2609 52%, #1c1108);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 54px 0;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.detail-one-line {
  width: min(780px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.20);
}

.detail-actions {
  margin-top: 24px;
}

.player-section {
  margin-top: 48px;
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border: 1px solid #221408;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
}

.video-element {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.64));
  border: 0;
  text-align: center;
}

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

.play-circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 32px;
}

.play-layer strong {
  font-size: 20px;
}

.play-layer small {
  color: rgba(255, 255, 255, 0.74);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 5;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  font-size: 12px;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
  margin-top: 34px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  font-size: 24px;
}

.content-card p {
  color: #5f4b32;
  line-height: 1.9;
  margin: 16px 0 0;
}

.facts-card dl {
  margin: 14px 0 0;
}

.facts-card div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f7e5bb;
}

.facts-card dt {
  color: var(--muted);
  font-weight: 800;
}

.facts-card dd {
  margin: 0;
  color: #351d07;
}

.site-footer {
  margin-top: 64px;
  padding: 42px 0;
  background: linear-gradient(180deg, #fff7ed, #fef3c7);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #78350f;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  width: min(560px, 100%);
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #43280f;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--brand-dark);
}

[data-card].is-hidden {
  display: none;
}

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

  .nav-toggle {
    display: block;
  }

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

  .search-band,
  .detail-hero-inner,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid-compact,
  .ranking-grid,
  .category-grid,
  .search-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cover {
    max-width: 320px;
  }

  .ranking-row {
    grid-template-columns: 42px 60px minmax(0, 1fr) 70px;
  }

  .ranking-views {
    display: none;
  }
}

@media (max-width: 640px) {
  .layout-wide {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-arrow {
    display: none;
  }

  .home-search,
  .global-search-box,
  .filter-bar,
  .section-heading,
  .category-overview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid-compact,
  .ranking-grid,
  .category-grid,
  .search-result-grid {
    grid-template-columns: 1fr;
  }

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

  .category-covers {
    min-height: 116px;
  }

  .filter-bar select {
    max-width: none;
  }

  .ranking-row {
    grid-template-columns: 36px 54px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .detail-hero-inner {
    min-height: auto;
    padding: 36px 0;
  }

  .detail-copy h1 {
    font-size: 36px;
  }

  .video-player {
    border-radius: 16px;
  }
}
