:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff7e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d9a2;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 50px rgba(120, 53, 15, 0.12);
  --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(245, 158, 11, 0.15), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 360px);
  gap: 22px;
  align-items: center;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 12px;
}

.site-search {
  position: relative;
}

.site-search input,
.local-filter input,
.local-filter select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.06);
}

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

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 420px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-panel.open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
}

.search-result:hover {
  background: var(--surface-soft);
}

.search-result strong {
  color: var(--brand-dark);
}

.search-result span {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 52px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  padding: 120px max(28px, calc((100vw - 1280px) / 2 + 24px)) 96px;
  transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  filter: blur(14px) saturate(1.15);
  opacity: 0.45;
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68), rgba(146, 64, 14, 0.5)),
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.28), transparent 34rem);
}

.hero-content,
.hero-poster,
.detail-layout {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow {
  color: #fbbf24;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero h1,
.detail-info h1 {
  color: #ffffff;
}

.hero-summary,
.detail-one-line {
  max-width: 760px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.mini-tags span {
  padding: 6px 10px;
  color: var(--brand-dark);
  background: rgba(254, 243, 199, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.primary-btn.small {
  min-height: 40px;
  padding: 8px 14px;
}

.ghost-btn,
.section-more {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.88);
}

.hero-poster {
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #fde68a, #92400e);
}

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

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

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

.quick-search-panel,
.content-section,
.page-hero,
.detail-layout,
.site-footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -58px;
  position: relative;
  z-index: 4;
  padding-top: 26px;
  padding-bottom: 26px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quick-search-panel.compact {
  margin-top: -30px;
}

.quick-search-copy h2,
.section-head h2,
.ranking-panel h2,
.player-panel h2,
.detail-article h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quick-search-copy p,
.section-head p,
.ranking-panel p,
.player-panel p,
.category-overview-card p,
.page-hero p,
.detail-article p {
  color: var(--muted);
}

.local-filter {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

.local-filter.wide {
  grid-column: 1 / -1;
}

.content-section {
  padding-top: 64px;
  padding-bottom: 42px;
}

.warm-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(255, 247, 230, 0), rgba(255, 247, 230, 0.95), rgba(255, 247, 230, 0));
}

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

.featured-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #f59e0b 48%, #92400e);
}

.poster-img {
  transition: transform 0.28s ease;
}

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

.rating-pill,
.play-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.rating-pill {
  top: 12px;
  left: 12px;
  min-width: 42px;
  padding: 5px 8px;
  background: rgba(17, 24, 39, 0.76);
  border-radius: 999px;
}

.play-float {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.ranking-title:hover,
.compact-card:hover strong,
.category-tile:hover strong {
  color: var(--brand);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.category-tile,
.category-overview-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
}

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 22px;
}

.category-tile strong {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span {
  color: var(--brand-dark);
  font-weight: 900;
}

.category-tile em {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel,
.player-panel,
.detail-article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-list.horizontal {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-card {
  display: grid;
  grid-template-columns: auto 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: #fffaf0;
}

.compact-img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde68a, #92400e);
}

.rank-num {
  width: 28px;
  color: var(--brand);
  font-weight: 900;
}

.compact-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-info strong,
.compact-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding-top: 92px;
  padding-bottom: 92px;
}

.page-hero.slim {
  padding-bottom: 40px;
}

.page-hero.category-hero,
.page-hero.ranking-hero {
  color: #ffffff;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.35), transparent 34rem),
    linear-gradient(135deg, #111827, #78350f);
}

.page-hero.category-hero p,
.page-hero.ranking-hero p {
  color: rgba(255, 255, 255, 0.78);
}

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

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

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

.category-overview-card {
  padding: 22px;
}

.category-overview-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 98px minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.07);
}

.ranking-number {
  color: var(--brand);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.ranking-cover {
  display: block;
  width: 98px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fde68a, #92400e);
}

.ranking-title {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.ranking-main p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.ranking-score {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
}

.ranking-score strong {
  color: var(--brand);
  font-size: 30px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #111827;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 80px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, #fde68a, #92400e);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
}

.detail-article,
.player-panel {
  padding: 26px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.movie-meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.movie-meta-table div {
  padding: 14px;
  background: #fff7e6;
  border-radius: 16px;
}

.movie-meta-table dt {
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-table dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 900;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  background: #111827;
  border-radius: 22px;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.66));
}

.play-overlay span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  margin: 0;
  color: #fef3c7;
  font-size: 13px;
  text-align: center;
}

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

.sitemap-list {
  columns: 3;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  break-inside: avoid;
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 14px;
}

.sitemap-list a {
  color: #111827;
  font-weight: 800;
}

.sitemap-list span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 60px;
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.footer-brand {
  color: #fbbf24;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fbbf24;
}

.no-results {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide,
  .detail-layout,
  .detail-content-grid,
  .split-section,
  .quick-search-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    gap: 28px;
    padding-top: 90px;
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .local-filter,
  .footer-grid,
  .ranking-row,
  .movie-meta-table {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .movie-grid,
  .movie-grid.dense,
  .related-grid,
  .category-grid,
  .compact-list.horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-score {
    justify-items: start;
  }

  .detail-layout {
    gap: 28px;
  }

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

  .sitemap-list {
    columns: 1;
  }
}

@media (max-width: 520px) {
  .featured-grid,
  .movie-grid,
  .movie-grid.dense,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-panel,
  .content-section,
  .page-hero,
  .detail-layout,
  .site-footer .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

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