:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --panel-line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --sky: #38bdf8;
  --blue: #2563eb;
  --orange: #f97316;
  --pink: #ec4899;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, 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;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.38);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
  font-size: 16px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #7dd3fc, #2563eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
  color: #dbeafe;
}

.nav-link {
  transition: color 180ms ease, transform 180ms ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: rgba(30, 41, 59, 0.92);
  color: white;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.mobile-menu {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.mobile-link {
  padding: 10px 0;
  color: #dbeafe;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.page {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.5) 72%, rgba(2, 6, 23, 0.9) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.36) 0%, rgba(2, 6, 23, 0.94) 100%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 720px;
  padding: 96px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 42px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-weight: 750;
  font-size: 13px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #f8fafc, #7dd3fc 46%, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.64);
  color: #e2e8f0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(125, 211, 252, 0.26);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
}

.hero-panel-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-panel-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-panel-card span {
  color: #cbd5e1;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
  color: white;
  font-size: 26px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, transform 180ms ease;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.86);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.search-strip {
  max-width: 1280px;
  margin: -34px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 8;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box input {
  min-height: 48px;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: white;
  background: rgba(30, 41, 59, 0.92);
}

.search-box button,
.filter-select {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-weight: 850;
  cursor: pointer;
}

main.content,
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section {
  margin-bottom: 76px;
}

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 740px;
}

.more-link {
  white-space: nowrap;
  color: var(--sky);
  font-weight: 850;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--panel-line);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.26);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 24px 58px rgba(2, 6, 23, 0.48);
}

.movie-link {
  display: block;
  height: 100%;
}

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

.movie-card-small .poster-wrap {
  aspect-ratio: 3 / 4;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}

.movie-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.78));
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.86);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  color: white;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.36);
}

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

.poster-label,
.poster-year {
  position: absolute;
  z-index: 3;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  color: white;
}

.poster-label {
  left: 10px;
  bottom: 10px;
  background: rgba(2, 132, 199, 0.9);
}

.poster-year {
  top: 10px;
  right: 10px;
  background: rgba(2, 6, 23, 0.7);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 850;
  color: white;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-card:hover .movie-info h3 {
  color: var(--sky);
}

.movie-info p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(15, 23, 42, 0.45);
}

.scroller-row {
  width: max-content;
  display: flex;
  gap: 18px;
}

.scroller-row .movie-card {
  width: 320px;
  flex: 0 0 auto;
}

.feature {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--panel-line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.feature-media {
  position: relative;
  min-height: 420px;
}

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

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.64));
}

.feature-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-body h2 {
  margin: 16px 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.feature-body p {
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.9;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.24);
  transition: transform 200ms ease, border-color 200ms ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.4);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.92));
}

.category-tile div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--panel-line);
  transition: transform 180ms ease, border-color 180ms ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 950;
}

.rank-row img {
  width: 86px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row h3 {
  margin: 0 0 6px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-row span:last-child {
  color: #bae6fd;
  font-weight: 800;
}

.page-hero {
  padding: 128px 24px 56px;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0));
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

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

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.06em;
  line-height: 1.05;
  font-weight: 950;
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--panel-line);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 0 16px;
  color: white;
  background: rgba(30, 41, 59, 0.92);
}

.compact-grid {
  display: grid;
  gap: 14px;
}

.compact-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--panel-line);
  transition: border-color 180ms ease, transform 180ms ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.36);
}

.compact-card a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px;
  align-items: center;
}

.compact-card img {
  width: 160px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.compact-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card span {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 96px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--panel-line);
  box-shadow: var(--shadow);
}

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

.detail-poster-meta {
  padding: 22px;
}

.detail-poster-meta h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-poster-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-main h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-lead {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.info-panel,
.player-section,
.text-panel {
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--panel-line);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 26px;
}

.info-item {
  padding: 18px;
  background: rgba(30, 41, 59, 0.5);
}

.info-item span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.info-item strong {
  color: white;
  font-size: 16px;
}

.player-section {
  overflow: hidden;
  margin: 28px 0;
}

.player-head {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--panel-line);
}

.player-head h2 {
  margin: 0;
  font-size: 24px;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-trigger {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.42);
  transition: transform 180ms ease;
}

.play-trigger:hover {
  transform: scale(1.06);
}

.text-panel {
  padding: 28px;
  margin-bottom: 24px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 16px;
}

.site-footer {
  border-top: 1px solid var(--panel-line);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.footer-brand {
  font-size: 22px;
  font-weight: 950;
  color: #7dd3fc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #dbeafe;
  font-weight: 750;
}

.footer-inner p {
  margin: 0;
  line-height: 1.65;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--panel-line);
  color: #cbd5e1;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 16px;
  }

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

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

  .detail-layout {
    grid-template-columns: 300px 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 88px;
    gap: 28px;
  }

  .hero-panel {
    max-width: 360px;
  }

  .hero-control {
    display: none;
  }

  .feature,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 300px;
  }

  .detail-poster {
    position: relative;
    top: 0;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .brand-text {
    font-size: 20px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero-content,
  .content,
  main.content,
  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .page-hero h1,
  .detail-main h1 {
    letter-spacing: -0.04em;
  }

  .search-strip {
    padding: 0 16px;
  }

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

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

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

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

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

  .rank-row span:last-child {
    display: none;
  }

  .rank-row img {
    width: 68px;
    height: 52px;
  }

  .compact-card a {
    grid-template-columns: 104px 1fr;
    gap: 12px;
  }

  .compact-card img {
    width: 104px;
    height: 78px;
  }

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

  .text-panel {
    padding: 22px;
  }
}

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

  .hero-panel {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .scroller-row .movie-card {
    width: 260px;
  }
}
