:root {
  --bg: #fff8ed;
  --panel: #fffdf8;
  --panel-strong: #ffffff;
  --line: #f4d6a5;
  --line-strong: #e6b15a;
  --text: #43270f;
  --muted: #9a682c;
  --soft: #fff2d8;
  --brand: #d97706;
  --brand-dark: #92400e;
  --accent: #f97316;
  --shadow: 0 24px 80px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
    linear-gradient(180deg, #fff7e8 0%, #fffdf8 44%, #fff8ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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(230, 177, 90, 0.45);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706 55%, #7c2d12);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.28);
}

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

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: #fff2d8;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input,
.mobile-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--text);
}

.header-search button,
.mobile-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  padding: 10px 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.12);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-nav-link {
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}

.mobile-nav-link.is-active {
  color: #fff;
  background: var(--brand);
}

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.section,
.hero-section,
.page-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  padding: 34px 0 22px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 177, 90, 0.5);
  background: linear-gradient(135deg, #3f2308, #8a3d0a 48%, #f59e0b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
  transform: scale(1.015);
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 18, 7, 0.94), rgba(74, 35, 9, 0.78) 42%, rgba(74, 35, 9, 0.28)),
    linear-gradient(0deg, rgba(33, 18, 7, 0.84), rgba(33, 18, 7, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: end;
  padding: clamp(28px, 5vw, 62px);
  color: #fff8ed;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 236, 198, 0.36);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 24px;
  color: rgba(255, 248, 237, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

.btn-light {
  color: #fff8ed;
  border-color: rgba(255, 236, 198, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-side-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 14px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 198, 0.28);
  border-radius: 22px;
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-mini img {
  width: 86px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-mini strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.hero-mini p {
  margin: 0;
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.55;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 5vw, 62px);
  bottom: 24px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fde68a;
}

.quick-search {
  margin-top: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
}

.quick-search input,
.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  background: #fff;
}

.quick-search button,
.search-panel button {
  border: 0;
}

.section {
  padding: 34px 0;
}

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

.section-eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h1,
.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.035em;
}

.section h2,
.page-title h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-subtitle,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(230, 177, 90, 0.5);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.09);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(120, 53, 15, 0.86);
  font-weight: 900;
  font-size: 12px;
}

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

.movie-meta-line,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line a,
.mini-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
}

.movie-card h3,
.rank-card h3,
.related-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.related-card h3 a:hover {
  color: var(--brand);
}

.movie-card p,
.rank-card p,
.related-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span,
.detail-tag,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff4df;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(230, 177, 90, 0.58);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.34), transparent 11rem),
    linear-gradient(135deg, #fffdf8, #fff0d2);
  box-shadow: 0 18px 50px rgba(146, 64, 14, 0.1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(146, 64, 14, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card .category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-card .category-samples span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(230, 177, 90, 0.48);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.08);
}

.rank-no {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-weight: 900;
}

.rank-poster img {
  width: 92px;
  height: 126px;
  border-radius: 16px;
  object-fit: cover;
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.filter-bar input,
.search-panel input {
  flex: 1 1 260px;
}

.page-shell {
  padding: 36px 0 28px;
}

.page-title {
  padding: 34px;
  border: 1px solid rgba(230, 177, 90, 0.52);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.3), transparent 18rem),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.detail-shell {
  padding: 34px 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(230, 177, 90, 0.55);
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 0%, rgba(251, 191, 36, 0.35), transparent 20rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.9;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
}

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

.detail-title .lead {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-card,
.detail-copy,
.related-section {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(230, 177, 90, 0.52);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 46px rgba(146, 64, 14, 0.09);
}

.player-card h2,
.detail-copy h2,
.related-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #1c1006;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0c0703;
}

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity .25s ease, visibility .25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.5));
}

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 16px 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 20px 54px rgba(217, 119, 6, 0.35);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

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

.detail-copy p {
  margin: 0 0 14px;
  color: #6f451a;
  line-height: 1.9;
  font-size: 16px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
}

.related-card img {
  width: 96px;
  height: 132px;
  border-radius: 15px;
  object-fit: cover;
}

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

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.hidden-card {
  display: none !important;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-side-card {
    display: none;
  }

  .grid,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section,
  .hero-section,
  .page-shell,
  .detail-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-title {
    font-size: 40px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .rank-card {
    grid-template-columns: 34px 76px 1fr;
  }

  .rank-poster img {
    width: 76px;
    height: 104px;
  }

  .related-card {
    grid-template-columns: 82px 1fr;
  }

  .related-card img {
    width: 82px;
    height: 112px;
  }
}
