:root {
  --page-bg: #f7f3ea;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eadfd0;
  --brand: #d97706;
  --brand-dark: #78350f;
  --brand-soft: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf0 0%, #f7f3ea 42%, #f3eee4 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #92400e 46%, #7c2d12 100%);
  box-shadow: 0 14px 35px rgba(65, 32, 8, 0.24);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #78350f;
  background: #fbbf24;
  border-radius: 13px;
  box-shadow: inset 0 -4px 0 rgba(120, 53, 15, 0.18);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.92;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fde68a;
  opacity: 1;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
}

.nav-search button,
.large-search button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #78350f;
  background: #fbbf24;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.large-search button:hover,
.filter-panel button:hover {
  transform: translateY(-1px);
  background: #fcd34d;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

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

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  right: 24px;
  bottom: 72px;
  width: min(760px, calc(100% - 48px));
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 720px;
  margin: 18px 0 20px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #7c2d12;
  background: #fbbf24;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.25);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.ghost-button.dark {
  color: #78350f;
  border-color: #f59e0b;
  background: #fff7ed;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.content-section {
  padding: 62px 0;
}

.no-pad-top {
  padding-top: 18px;
}

.panel-section,
.category-overview-block,
.search-panel,
.detail-text-card,
.detail-info-card,
.player-card,
.filter-panel,
.podium-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-section {
  padding: 34px;
}

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

.section-heading h2 {
  display: inline;
  margin: 0 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-icon {
  font-size: 28px;
  vertical-align: middle;
}

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

.small-grid,
.category-movie-grid,
.ranking-grid,
.search-results {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f1e5d4;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(120, 53, 15, 0.16);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-chip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

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

.movie-card h3 {
  min-height: 3.2em;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.32;
}

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

.movie-meta {
  margin: 0 0 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.movie-line {
  min-height: 3.9em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.category-card {
  padding: 22px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #92400e, #d97706 55%, #fb923c);
  box-shadow: 0 18px 35px rgba(146, 64, 14, 0.2);
}

.category-card a:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: #fffbeb;
  font-weight: 700;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.88;
}

.ranking-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.rank-number,
.rank-badge {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #d97706;
  font-weight: 900;
}

.rank-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-badge.large {
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.ranking-list small {
  color: var(--muted);
}

.more-link {
  justify-self: start;
  margin-top: 22px;
  color: #78350f;
  background: #fef3c7;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  padding: 52px;
  color: #ffffff;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.42), transparent 35%), linear-gradient(135deg, #78350f, #111827);
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: 260px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.category-overview-block {
  margin: 0 0 26px;
  padding: 28px;
}

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

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.65fr)) auto;
  gap: 12px;
  margin-bottom: 30px;
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-color: #e7d6bf;
  border-radius: 14px;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

.podium-card {
  overflow: hidden;
}

.podium-card a {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

.podium-card strong {
  font-size: 22px;
}

.podium-card small {
  color: var(--muted);
}

.search-panel {
  margin: 0 0 30px;
  padding: 22px;
}

.large-search {
  display: flex;
  gap: 12px;
}

.large-search input {
  flex: 1 1 auto;
  border-color: #e7d6bf;
  border-radius: 16px;
  font-size: 17px;
}

.search-count {
  margin: 12px 0 0;
  color: var(--muted);
}

.detail-shell {
  padding: 30px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.68fr);
  gap: 24px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  color: #7c2d12;
  background: #fbbf24;
  font-size: 36px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.detail-info-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #92400e, #111827);
}

.detail-info-card h1 {
  color: #111827;
  font-size: clamp(28px, 3.6vw, 46px);
}

.detail-one-line {
  color: var(--muted);
  font-size: 17px;
}

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

.meta-list div {
  padding: 12px;
  border-radius: 14px;
  background: #fff7ed;
}

.meta-list dt {
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.meta-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-text-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-text-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.related-section {
  width: 100%;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #050608);
  padding: 46px 0 24px;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-menu-button {
    display: inline-grid;
  }

  .nav-search {
    margin-left: auto;
  }

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

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

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

  .detail-info-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 24px, 1240px);
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .nav-search {
    order: 3;
    width: 100%;
  }

  .nav-search input {
    flex: 1 1 auto;
  }

  .hero-carousel {
    min-height: 78vh;
  }

  .hero-content {
    bottom: 74px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .content-section,
  .page-shell,
  .detail-shell {
    width: min(100% - 24px, 1240px);
  }

  .content-section {
    padding: 42px 0;
  }

  .panel-section,
  .category-overview-block,
  .page-hero {
    padding: 24px;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-movie-grid,
  .ranking-grid,
  .search-results,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-grid,
  .ranking-list,
  .podium-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ranking-list small {
    grid-column: 2;
  }

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

  .large-search {
    flex-direction: column;
  }

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

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

@media (max-width: 420px) {
  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-movie-grid,
  .ranking-grid,
  .search-results,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 34px;
  }
}
