:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0f172a;
  --bg-card: #111c31;
  --bg-glass: rgba(15, 23, 42, 0.78);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #07111f 44%, #020617 100%);
}

body::selection {
  background: rgba(34, 211, 238, 0.35);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.top-search {
  position: relative;
  display: flex;
  width: min(360px, 28vw);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text);
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.84);
}

.top-search input {
  flex: 1;
  padding: 11px 12px;
  border: 0;
  background: transparent;
}

.top-search button,
.mobile-search button,
.filter-bar button {
  cursor: pointer;
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.top-search button {
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 0;
  color: var(--muted-strong);
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 12px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: linear-gradient(135deg, #020617 0%, #0f2b5d 48%, #020617 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 0.42;
  filter: saturate(1.15);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.82)),
    radial-gradient(circle at 72% 32%, rgba(34, 211, 238, 0.28), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
  align-items: center;
  min-height: 72vh;
  gap: 56px;
  padding-block: 80px 96px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.12);
}

.hero-copy h1,
.inner-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0;
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 12em;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.98;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.85;
}

.hero-meta,
.movie-meta,
.detail-meta-grid,
.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.movie-meta span,
.detail-meta-grid span {
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.58);
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  padding: 0 20px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

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

.primary-btn.full {
  width: 100%;
  margin-top: 18px;
}

.ghost-btn {
  padding: 0 18px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.7);
}

.text-link {
  min-height: auto;
  color: var(--cyan);
  font-weight: 800;
}

.hero-poster {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 36%),
    linear-gradient(135deg, #111827, #0f172a 46%, #1e3a8a);
}

.poster-frame[data-missing="true"]::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  color: white;
  content: attr(data-title);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 42%),
    linear-gradient(135deg, #111827, #0f172a 54%, #1e3a8a);
}

.poster-frame img.is-hidden {
  opacity: 0;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 6, 23, 0.84));
}

.poster-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  padding: 5px 9px;
  color: #06202d;
  background: #67e8f9;
}

.rank-badge {
  right: 12px;
  padding: 5px 10px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-play {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 16px 30px rgba(34, 211, 238, 0.26);
}

.poster-play-large {
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  font-size: 1.3rem;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 1.8rem;
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border-radius: 99px;
}

.hero-dot.is-active {
  background: var(--cyan);
}

.section-block {
  padding-block: 62px;
}

.section-overlap {
  position: relative;
  z-index: 6;
  margin-top: -36px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.42));
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 28px;
}

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

.section-heading span,
.panel-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-heading h2,
.content-card h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-heading p,
.panel-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.38);
}

.movie-card .poster-frame {
  display: block;
  aspect-ratio: 3 / 4;
}

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

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 2.85em;
  overflow: hidden;
  color: white;
  font-weight: 900;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-year {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 3.7em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #bae6fd;
  font-size: 0.76rem;
  background: rgba(34, 211, 238, 0.08);
}

.category-pill {
  justify-self: start;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.category-tile {
  min-height: 230px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.28), transparent 58%);
}

.category-tile strong,
.category-tile em,
.category-tile small {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 76px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile em {
  bottom: 50px;
  color: #bae6fd;
  font-style: normal;
  font-weight: 800;
}

.category-tile small {
  bottom: 18px;
  color: var(--muted-strong);
  line-height: 1.4;
}

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

.ranking-panel,
.content-card,
.ranking-table,
.search-app,
.filter-bar,
.category-card,
.player-shell {
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.28);
}

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.rank-list,
.ranking-table {
  display: grid;
  gap: 8px;
}

.ranking-table {
  padding: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.56);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  color: white;
  background: rgba(34, 211, 238, 0.12);
  transform: translateX(3px);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.rank-info strong,
.rank-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: white;
}

.rank-info em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.rank-views {
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.page-main {
  min-height: 60vh;
}

.inner-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 24%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, #020617, #0f2b5d 55%, #020617);
}

.inner-hero h1,
.category-hero h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
}

.inner-hero p,
.category-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.85;
}

.category-list-grid {
  display: grid;
  gap: 24px;
}

.category-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
}

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

.mini-cover {
  min-height: 180px;
  border-radius: 16px;
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  align-self: center;
}

.category-card-body h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.category-card-body p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.85;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: center;
}

.category-focus-stack {
  display: grid;
  gap: 14px;
}

.category-focus-stack .movie-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.category-focus-stack .poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 150px auto;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
}

.filter-bar button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 900;
}

.filter-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(2px) saturate(1.2);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-bg::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.94)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), #020617);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.3rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.detail-one-line {
  max-width: 830px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 1.15rem;
  line-height: 1.85;
}

.detail-meta-grid {
  margin: 24px 0 20px;
}

.detail-meta-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
}

.detail-meta-grid b {
  color: var(--cyan);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  cursor: pointer;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 28rem),
    rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(2px);
}

.player-shell.is-playing .player-cover {
  display: none;
}

.play-orb {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 26px 70px rgba(34, 211, 238, 0.34);
}

.player-cover strong {
  font-size: 1.45rem;
}

.player-cover em {
  max-width: 82%;
  color: var(--muted-strong);
  font-style: normal;
  text-align: center;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  margin: 0;
  color: #fecaca;
  text-align: center;
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 26px;
}

.content-card p {
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 2;
}

.prev-next {
  justify-content: space-between;
  margin-top: 26px;
}

.prev-next a {
  display: inline-flex;
  max-width: 48%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.68);
}

.prev-next a:hover {
  color: white;
  border-color: rgba(34, 211, 238, 0.36);
}

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

.search-app {
  padding: 18px;
}

.search-filter {
  grid-template-columns: minmax(220px, 1fr) 190px 170px 150px auto;
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 54px 0;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 16px;
  color: white;
}

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

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-socials span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-content,
  .detail-layout,
  .category-card,
  .article-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding-block: 54px 92px;
  }

  .hero-poster {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1,
  .inner-hero h1,
  .category-hero h1 {
    font-size: clamp(2.2rem, 12vw, 4.2rem);
  }

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

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

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

  .category-card-covers {
    grid-template-columns: repeat(4, 1fr);
  }

  .mini-cover {
    min-height: 140px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .brand-copy {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

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

  .hero-controls {
    width: calc(100% - 24px);
    justify-content: center;
  }

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

  .hero-dot {
    width: 26px;
  }

  .movie-grid,
  .movie-grid-compact,
  .category-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-views {
    grid-column: 2;
  }

  .prev-next a {
    max-width: 100%;
    width: 100%;
  }

  .category-focus-stack .movie-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
