:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --blue: #38bdf8;
  --blue-strong: #2563eb;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --gold: #facc15;
  --green: #22c55e;
  --radius-lg: 28px;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --container: min(1180px, calc(100vw - 32px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 36rem),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.2), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple), var(--pink));
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: #93c5fd;
  font-size: 0.76rem;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: rgba(248, 250, 252, 0.82);
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: min(300px, 28vw);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
}

.header-search input,
.hero-search input,
.filter-controls input,
.search-page-form input,
.filter-controls select {
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input {
  flex: 1;
  padding: 11px 14px;
}

.header-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple));
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}

.header-search button {
  padding: 11px 16px;
}

.header-search button:hover,
.hero-search button:hover,
.search-page-form button:hover,
.primary-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.45);
}

.category-strip-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 9px 0;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  flex: 0 0 auto;
  color: #cbd5e1;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  width: var(--container);
  margin: 28px auto 0;
}

.hero-slider {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 680ms ease, transform 900ms ease, visibility 680ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-bg::after,
.detail-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 46%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 62%, rgba(236, 72, 153, 0.16), transparent 26rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(30px, 6vw, 82px);
}

.hero-copy {
  max-width: 700px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-kicker::before,
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  padding: 6px 10px;
  font-size: 0.82rem;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple), var(--pink));
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-poster {
  justify-self: end;
  width: min(100%, 340px);
  transform: rotate(2deg);
  transition: transform 240ms ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster-img {
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-poster-img img,
.poster-shell img,
.detail-poster-img img,
.compact-poster img,
.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
}

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

.hero-dot.is-active {
  width: 30px;
  background: var(--blue);
}

.hero-search-panel {
  position: relative;
  z-index: 6;
  width: min(920px, calc(100% - 34px));
  margin: -34px auto 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

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

.hero-search input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
  padding: 15px 16px;
}

.hero-search button,
.search-page-form button {
  border-radius: 18px;
  padding: 0 24px;
  font-weight: 800;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.hero-stat-grid span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat-grid strong {
  color: white;
  font-size: 1.6rem;
}

.hero-stat-grid small {
  color: var(--muted);
}

.content-section {
  width: var(--container);
  margin: 54px auto 0;
}

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

.section-heading h2,
.ranking-aside h2,
.detail-article h2,
.filter-panel h1,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(37, 99, 235, 0.12);
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(15, 23, 42, 0.82);
}

.card-cover {
  position: relative;
  display: block;
}

.poster-shell {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.36), rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.2));
}

.card-cover img {
  transition: transform 260ms ease, filter 260ms ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 10px;
  top: 10px;
  color: white;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.75);
}

.rank-badge {
  right: 10px;
  top: 10px;
  color: #111827;
  padding: 5px 9px;
  background: var(--gold);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 13px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  color: white;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #93c5fd;
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  color: #bfdbfe;
  padding: 4px 8px;
  font-size: 0.74rem;
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 14px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.34);
}

.category-card-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.mini-cover {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(139, 92, 246, 0.2));
}

.category-card strong,
.category-overview-link h2 {
  display: block;
  color: white;
  font-size: 1.1rem;
  margin: 2px 0 4px;
}

.category-card span,
.category-overview-link span {
  color: #93c5fd;
  font-size: 0.86rem;
}

.category-card p,
.category-overview-link p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
  font-size: 0.9rem;
}

.category-overview-link {
  display: block;
  padding: 18px;
}

.category-overview-link .category-card-covers {
  margin-bottom: 16px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.ranking-aside {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.sticky-aside {
  position: sticky;
  top: 118px;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.compact-poster {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-info small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.compact-card .rank-badge {
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  width: var(--container);
  margin: 28px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
  box-shadow: var(--shadow);
}

.compact-page-hero,
.category-page-hero {
  padding: clamp(34px, 6vw, 68px);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted-strong);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #bfdbfe;
  margin-top: 18px;
  font-size: 0.9rem;
}

.breadcrumb strong {
  color: white;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.58);
}

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

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(2, 6, 23, 0.5);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 34px;
}

.search-page-section {
  max-width: 1060px;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.66);
}

.search-meta {
  color: var(--muted);
  margin: 18px 0;
}

.detail-hero {
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  align-items: end;
  background: #020617;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.2), transparent 28rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.92));
}

.detail-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: end;
  padding: 84px 0 58px;
}

.detail-poster-img {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 860px;
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.detail-meta-grid span {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.58);
}

.detail-meta-grid strong {
  color: #93c5fd;
  font-size: 0.78rem;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  width: var(--container);
  margin: 44px auto 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 12px;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.26), transparent 26rem),
    rgba(2, 6, 23, 0.62);
  cursor: pointer;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple), var(--pink));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.42);
  font-size: 2.5rem;
}

.player-overlay strong {
  font-size: 1.4rem;
}

.player-overlay small,
.player-message {
  color: #cbd5e1;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 5;
  margin: 0;
  font-size: 0.92rem;
}

.player-message.is-error {
  color: #fecaca;
}

.detail-text-section {
  max-width: 940px;
}

.detail-article {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 26px;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(15, 23, 42, 0.62);
}

.detail-article p,
.info-list {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 1.02rem;
}

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

.info-list strong {
  color: white;
}

.image-shell {
  position: relative;
  display: block;
  background:
    radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.32), transparent 16rem),
    linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.18));
}

.image-shell.is-missing {
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.image-shell.is-missing::before {
  content: attr(data-title);
  color: white;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.image-shell.is-missing img {
  display: none;
}

.site-footer {
  margin-top: 74px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.6fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-brand p,
.footer-count {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: white;
}

.footer-links a {
  color: var(--muted);
}

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

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

.footer-cats h3 {
  grid-column: 1 / -1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-poster {
    display: none;
  }

  .detail-content {
    padding-top: 48px;
  }

  .detail-poster {
    width: 230px;
  }

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

  .sticky-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-section {
    margin-top: 14px;
  }

  .hero-slider {
    min-height: 610px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 30px 22px 88px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
  }

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

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

  .content-section {
    margin-top: 40px;
  }

  .section-heading,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 104px 1fr;
  }

  .page-hero,
  .compact-page-hero,
  .category-page-hero {
    border-radius: 24px;
    padding: 30px 20px;
  }

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

  .detail-content {
    padding: 40px 0;
  }

  .detail-poster {
    width: 190px;
  }

  .detail-meta-grid,
  .info-list,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .player-shell {
    border-radius: 20px;
  }

  .footer-inner {
    padding: 34px 0;
  }
}

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

  .hero-copy h1,
  .detail-info h1 {
    letter-spacing: -0.05em;
  }
}
