:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --pink: #ec4899;
  --orange: #f97316;
  --green: #22c55e;
  --indigo: #6366f1;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  --radius: 22px;
  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;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: white;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.32);
  font-size: 14px;
}

.brand-name {
  font-size: 26px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--emerald-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #cbd5e1;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--emerald-2);
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.card-filter {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 260px;
  padding: 10px 16px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--emerald), #059669);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.24);
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.card-filter:focus {
  border-color: rgba(52, 211, 153, 0.72);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  color: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.66);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 15px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #020617;
}

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

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

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

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.83) 46%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

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

.hero-content p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-2);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.feature-list span,
.detail-cats a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.36);
}

.hero-tags span,
.detail-tags span,
.feature-list span,
.detail-cats a {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: white;
  padding: 14px 24px;
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.28);
}

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

.primary-btn.small,
.ghost-btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  padding: 13px 22px;
}

.hero-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 34px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search {
  flex: 1;
}

.hero-search input {
  width: min(100%, 520px);
  padding: 14px 18px;
}

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

.hero-shortcuts a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 7;
  right: max(22px, calc((100% - 1180px) / 2));
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.42);
}

.hero-dot.is-active {
  height: 34px;
  background: linear-gradient(180deg, var(--emerald-2), var(--cyan));
}

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

.compact-section {
  padding: 56px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-link {
  padding: 10px 16px;
  color: var(--emerald-2);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.18);
  flex-shrink: 0;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.42);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

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

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

.movie-card:hover .poster-frame img,
.mini-card:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.play-chip {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--emerald);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.32);
}

.region-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(16, 185, 129, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card-title {
  color: white;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-desc,
.ranking-row small,
.mini-card small {
  color: var(--muted);
}

.card-meta {
  font-size: 13px;
}

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

.movie-card-wide {
  flex-direction: row;
}

.movie-card-wide .poster-frame {
  width: 42%;
  min-width: 210px;
  aspect-ratio: auto;
}

.category-band {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.82));
  border-block: 1px solid var(--line);
}

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

.category-card,
.category-overview-card,
.side-panel,
.article-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 215px;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(52, 211, 153, 0.42);
}

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

.category-card p {
  color: #dbeafe;
  line-height: 1.7;
  margin: 0 0 18px;
}

.category-samples {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.tone-emerald { --tone: var(--emerald); }
.tone-cyan { --tone: var(--cyan); }
.tone-rose { --tone: var(--rose); }
.tone-amber { --tone: var(--amber); }
.tone-violet { --tone: var(--violet); }
.tone-blue { --tone: var(--blue); }
.tone-pink { --tone: var(--pink); }
.tone-orange { --tone: var(--orange); }
.tone-green { --tone: var(--green); }
.tone-slate { --tone: #94a3b8; }
.tone-indigo { --tone: var(--indigo); }

.category-card::before,
.category-overview-card::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--tone, var(--emerald)) 34%, transparent), transparent 58%);
  pointer-events: none;
}

.split-section {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 96px;
  border-radius: 28px;
  padding: 28px;
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.side-panel p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(30, 41, 59, 0.92);
}

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

.ranking-row img {
  width: 86px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

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

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-action {
  color: var(--emerald-2);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92)),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.22), transparent 42rem);
  border-bottom: 1px solid var(--line);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.filter-bar {
  margin: -8px 0 26px;
}

.card-filter {
  width: min(100%, 520px);
  padding: 14px 18px;
}

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

.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 26px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
}

.category-overview-text {
  position: relative;
  z-index: 2;
}

.category-overview-text span {
  display: inline-flex;
  color: var(--emerald-2);
  font-weight: 900;
  margin-bottom: 10px;
}

.category-overview-text h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.category-overview-text p {
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 22px;
}

.mini-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.mini-card img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

.mini-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mini-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-page {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0));
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.detail-wrap {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 16px;
  font-weight: 800;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 800;
}

.detail-cats {
  margin-top: 14px;
}

.player-section {
  padding-top: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: black;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.24), rgba(2, 6, 23, 0.68));
  font-size: 22px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 24px 64px rgba(16, 185, 129, 0.32);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-top: 0;
}

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

.article-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card p {
  color: #dbeafe;
  line-height: 2;
  margin: 0;
}

.search-page-form {
  margin-top: 28px;
  max-width: 720px;
}

.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 15px 18px;
}

.search-status {
  margin-bottom: 24px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  padding: 14px 18px;
  border-radius: 18px;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

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

.back-top {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.75);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

  .hero-panel,
  .split-section,
  .category-overview-card,
  .detail-wrap,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: grid;
  }

  .hero-search {
    width: 100%;
  }

  .hero-search input {
    width: 100%;
  }

  .hero-dots {
    top: auto;
    right: 20px;
    bottom: 150px;
    display: flex;
    transform: none;
  }

  .hero-dot.is-active {
    width: 34px;
    height: 12px;
  }

  .detail-wrap {
    padding-top: 32px;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    height: 62px;
  }

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

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

  .hero-content {
    justify-content: flex-start;
    padding-top: 76px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-panel {
    bottom: 18px;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    flex-direction: column;
  }

  .movie-card-wide .poster-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .ranking-row {
    grid-template-columns: 44px 70px 1fr;
  }

  .ranking-row img {
    width: 70px;
    height: 48px;
  }

  .rank-action {
    display: none;
  }

  .page-hero {
    min-height: 300px;
  }

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

  .detail-info h1 {
    font-size: 42px;
  }

  .detail-one-line {
    font-size: 17px;
  }

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