* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --color-ink: #111827;
  --color-soft: #6b7280;
  --color-muted: #9ca3af;
  --color-line: #e5e7eb;
  --color-card: #ffffff;
  --color-warm: #f59e0b;
  --color-warm-dark: #d97706;
  --color-slate: #0f172a;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 65px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--color-ink);
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: #ffffff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: var(--max-width);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
  font-size: 14px;
}

.brand-name {
  font-size: 23px;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-link {
  display: block;
  padding: 13px 16px;
  margin-top: 6px;
  background: rgba(245, 158, 11, 0.08);
}

.mobile-link.is-active,
.mobile-link:hover {
  color: #ffffff;
  background: var(--color-warm);
}

.hero-section {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slider,
.hero-slide,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay {
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.24), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.70) 44%, rgba(15, 23, 42, 0.30) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 160px 24px 0;
}

.hero-kicker,
.page-hero span,
.section-title span,
.detail-kicker {
  display: inline-flex;
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.32);
}

.primary-button,
.ghost-button {
  padding: 14px 22px;
}

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

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

.hero-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  right: auto;
  bottom: 42px;
  width: min(calc(100% - 48px), var(--max-width));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.hero-search-card,
.hero-side-list {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search-card {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.hero-search-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-search input {
  min-width: 0;
  padding: 14px 16px;
}

.hero-search button {
  padding: 0 18px;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-shortcuts a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.10);
}

.hero-side-list {
  border-radius: var(--radius-xl);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

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

.stat-strip,
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.stat-strip {
  margin-top: -38px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-strip div {
  min-height: 112px;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.stat-strip strong {
  display: block;
  font-size: 30px;
  color: var(--color-warm);
}

.stat-strip span {
  display: block;
  margin-top: 6px;
  color: var(--color-soft);
}

.content-section {
  padding-top: 76px;
  padding-bottom: 38px;
}

.inner-section {
  padding-top: 66px;
  padding-bottom: 66px;
}

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

.section-title h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-title a {
  color: var(--color-warm-dark);
  font-weight: 900;
}

.light-title h2,
.light-title a {
  color: #ffffff;
}

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

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

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.featured-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.movie-card,
.compact-card,
.rank-row,
.category-card {
  background: var(--color-card);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.compact-card:hover,
.rank-row:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 158, 11, 0.45);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 8.2;
}

.poster-link img,
.category-card img,
.compact-card img,
.rank-row img,
.detail-poster img,
.player-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.category-card img,
.compact-card img {
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.compact-card:hover img {
  transform: scale(1.07);
}

.poster-shade,
.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 54%);
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(10px);
}

.poster-score {
  right: 12px;
  top: 12px;
  color: #78350f;
  background: #fbbf24;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-warm-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--color-soft);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  color: #92400e;
  background: #fef3c7;
}

.compact-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  min-height: 108px;
  border-radius: 18px;
  padding: 10px;
  overflow: hidden;
}

.compact-card img {
  border-radius: 14px;
  aspect-ratio: 4 / 5;
}

.compact-card span {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.35;
}

.compact-card em {
  margin-top: 8px;
  color: var(--color-soft);
  font-size: 13px;
  font-style: normal;
}

.warm-section {
  margin-top: 24px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.dark-section {
  margin-top: 24px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #111827, #0f172a);
}

.dark-section .movie-card,
.dark-section .compact-card {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.dark-section .movie-card h2,
.dark-section .movie-meta-line {
  color: #ffffff;
}

.dark-section .movie-card p,
.dark-section .compact-card em {
  color: rgba(255, 255, 255, 0.72);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #ffffff;
}

.category-card.wide {
  min-height: 260px;
}

.category-card strong,
.category-card em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-card strong {
  bottom: 70px;
  font-size: 22px;
  line-height: 1.2;
}

.category-card em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 72px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 14px;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 88px;
  border-radius: 12px;
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  font-size: 17px;
  margin-bottom: 6px;
}

.rank-main em {
  color: var(--color-soft);
  font-size: 13px;
  font-style: normal;
}

.rank-heat {
  color: var(--color-warm-dark);
  font-weight: 900;
}

.page-main,
.detail-main {
  padding-top: 72px;
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.30), transparent 34%), linear-gradient(135deg, #111827, #0f172a);
}

.page-hero > div {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--color-soft);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  height: 48px;
  padding: 0 14px;
  color: var(--color-ink);
}

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

.breadcrumb {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 32px auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-warm-dark);
  font-weight: 800;
}

.player-section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 32px 95px rgba(2, 6, 23, 0.32);
  aspect-ratio: 16 / 9;
}

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

.player-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
}

.player-layer.is-hidden {
  display: none;
}

.player-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 22px 55px rgba(245, 158, 11, 0.38);
  font-size: 32px;
}

.detail-layout {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.full-button {
  width: calc(100% - 28px);
  margin: 14px;
}

.detail-info {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-info h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-one-line {
  font-size: 18px;
  color: var(--color-soft);
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 10px 14px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-info h2 {
  margin: 28px 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-info p {
  color: #374151;
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
}

.footer-grid p,
.footer-grid li {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

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

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-top: 8px;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.50);
  font-size: 14px;
}

[data-card].is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .catalog-grid,
  .slim-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-panel,
  .featured-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
    max-width: 320px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.menu-open .mobile-nav {
    display: block;
  }

  .hero-section {
    min-height: 860px;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-panel {
    bottom: 44px;
    grid-template-columns: 1fr;
  }

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

  .stat-strip,
  .movie-grid,
  .catalog-grid,
  .slim-grid,
  .category-grid,
  .rank-list,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero-section {
    min-height: 920px;
  }

  .hero-content,
  .stat-strip,
  .content-section,
  .player-section,
  .detail-layout,
  .breadcrumb {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-panel {
    width: calc(100% - 32px);
  }

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

  .hero-search button {
    height: 46px;
  }

  .stat-strip,
  .movie-grid,
  .catalog-grid,
  .slim-grid,
  .category-grid,
  .rank-list,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 62px 1fr;
  }

  .rank-heat {
    display: none;
  }

  .detail-info {
    padding: 24px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }
}
