:root {
  --bg: #fffbeb;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --line: #f3d7ad;
  --brand: #d97706;
  --brand-deep: #92400e;
  --brand-soft: #fef3c7;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-deep);
  background: rgba(251, 191, 36, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 72vh;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.hero-stage {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-radius: 32px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

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

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

.hero-bg,
.detail-bg {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.75), transparent 45%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(32px, 7vw, 88px);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.page-kicker,
.section-kicker,
.side-label {
  margin: 0 0 10px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-summary,
.detail-one-line,
.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
}

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

.small-actions {
  margin-top: 20px;
}

.hero-controls {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

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

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.hero-thumb img {
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  min-width: 0;
  font-weight: 800;
  color: #1f2937;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.category-tile,
.category-card-large a,
.content-card,
.filter-panel {
  border: 1px solid rgba(217, 119, 6, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.category-tile {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-large a:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span {
  color: var(--brand-deep);
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.section-block {
  margin-top: 56px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: #111827;
}

.section-more {
  color: var(--brand-deep);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
}

.filter-search {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 22px;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  outline: none;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
}

.filter-search input {
  padding: 0 16px 0 44px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  min-width: 150px;
  padding: 0 12px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217, 119, 6, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.74) 100%);
}

.play-chip,
.rank-badge {
  position: absolute;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.25);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 13px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

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

.movie-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.score {
  flex: 0 0 auto;
  color: #b45309;
  font-weight: 900;
}

.card-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-text {
  margin: 10px 0 0;
  min-height: 48px;
  color: #4b5563;
  font-size: 14px;
}

.tag-row {
  margin-top: 14px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #92400e);
}

.compact-hero {
  padding: 74px 0 70px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

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

.category-card-large a {
  display: block;
  min-height: 220px;
  padding: 28px;
  border-radius: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 28px;
}

.category-card-large p {
  color: #4b5563;
}

.mini-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-title-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #78350f;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  min-height: 520px;
}

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  height: 100%;
  filter: blur(3px);
  transform: scale(1.03);
}

.detail-bg-mask {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.42)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 65%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 60px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-tags span {
  background: rgba(254, 243, 199, 0.96);
}

.player-section {
  margin-top: -52px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 119, 6, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.24));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.32);
  font-size: 30px;
}

.player-cover strong {
  font-size: 22px;
}

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

.content-card {
  border-radius: 28px;
  padding: 28px;
}

.prose-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #374151;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--muted);
}

.detail-side-card dd {
  margin: 0;
  font-weight: 750;
}

.next-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.next-links a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #78350f;
  background: var(--brand-soft);
  font-weight: 750;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  color: #e5e7eb;
  background: #111827;
}

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

.footer-inner p {
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0;
}

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

.copyright {
  margin: 18px 0 0;
  font-size: 13px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 20px;
  border: 1px dashed rgba(217, 119, 6, 0.28);
}

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

  .hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-label {
    grid-column: 1 / -1;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 251, 235, 0.98);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .hero-stage {
    min-height: 620px;
  }

  .hero {
    width: min(100% - 20px, 1240px);
    margin-top: 16px;
  }

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

  .hero-content {
    left: 20px;
    bottom: 70px;
    width: calc(100% - 40px);
  }

  .hero-summary,
  .detail-one-line,
  .page-hero p {
    font-size: 16px;
  }

  .hero-controls {
    left: 20px;
  }

  .hero-side,
  .category-strip,
  .category-overview-grid,
  .filter-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .filter-selects {
    flex-direction: column;
  }

  .detail-layout {
    align-items: start;
  }

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

  .content-card {
    padding: 22px;
  }
}

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
