:root {
  --bg: #f8fafc;
  --bg-soft: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --amber: #d97706;
  --amber-dark: #92400e;
  --orange: #c2410c;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 45%, #ffffff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: #92400e;
  background: #fffbeb;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fffbeb;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #92400e;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.76) 45%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  bottom: clamp(32px, 8vw, 92px);
  width: min(620px, calc(100% - 48px));
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d97706;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.hero-side .eyebrow,
.highlight-panel .eyebrow {
  color: #fcd34d;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-summary {
  max-width: 580px;
  margin: 0 0 24px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.85;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.light span {
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-button,
.ghost-button,
.hero-link-row a,
.category-overview-head a,
.section-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.26);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.hero-link-row a:hover,
.category-overview-head a:hover,
.section-heading a:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: clamp(20px, 5vw, 76px);
  right: clamp(20px, 5vw, 76px);
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #f59e0b;
}

.hero-side {
  min-height: 680px;
  padding: 28px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(160deg, #78350f 0%, #9a3412 48%, #111827 100%);
  box-shadow: var(--shadow);
}

.hero-side h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.hero-side p {
  color: #fde68a;
  line-height: 1.8;
}

.hero-mini-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading a,
.category-overview-head a {
  color: #92400e;
  background: #fffbeb;
}

.compact-heading {
  align-items: center;
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span {
  color: #6b7280;
  line-height: 1.75;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #111827);
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-meta,
.movie-desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.movie-desc {
  min-height: 42px;
}

.movie-card.compact {
  flex-direction: row;
  align-items: stretch;
  border-radius: 18px;
}

.movie-card.compact .movie-poster {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 3 / 4;
}

.movie-card.compact .movie-card-body {
  padding: 12px;
}

.movie-card.compact .movie-desc,
.movie-card.compact .tag-row {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
}

.ranking-row img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: #78350f;
}

.ranking-text strong,
.ranking-text em {
  display: block;
}

.ranking-text strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.ranking-text em {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.highlight-panel {
  position: sticky;
  top: 98px;
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(150deg, #111827, #78350f 60%, #c2410c);
  box-shadow: var(--shadow);
}

.highlight-panel h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.highlight-panel p {
  color: #fde68a;
  line-height: 1.9;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.32), transparent 28%),
    linear-gradient(135deg, #78350f 0%, #9a3412 52%, #111827 100%);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #fde68a;
  font-size: 18px;
  line-height: 1.85;
}

.hero-link-row a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.categories-overview {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.category-overview-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #111827 0%, #78350f 58%, #9a3412 100%);
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  background: #111827;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 14px;
}

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

.detail-info h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-line {
  max-width: 780px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid b {
  display: block;
  margin-bottom: 6px;
  color: #fde68a;
  font-size: 12px;
}

.player-section {
  padding-top: 52px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
  cursor: pointer;
}

.player-wrap.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #92400e;
  background: #fff;
  font-size: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.detail-article {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-bottom: 70px;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    min-height: auto;
  }

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

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

  .split-section,
  .detail-hero-inner,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .site-logo {
    font-size: 17px;
  }

  .site-logo-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-menu {
    display: flex;
  }

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

  .hero {
    min-height: auto;
    margin-top: 18px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.24) 0%, rgba(17, 24, 39, 0.92) 62%, rgba(17, 24, 39, 0.98) 100%);
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 80px;
    width: auto;
  }

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

  .hero-controls {
    left: 20px;
    right: 20px;
  }

  .section-block {
    padding-top: 44px;
  }

  .section-heading,
  .category-overview-head {
    align-items: start;
    flex-direction: column;
  }

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

  .filter-bar,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-body strong {
    font-size: 15px;
  }

  .movie-desc {
    display: none;
  }

  .detail-hero-inner,
  .page-hero-inner {
    padding: 38px 0;
  }

  .detail-article {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
