:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(15, 23, 42, 0.95);
  --border: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --yellow: #facc15;
  --red: #f87171;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  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.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111d;
  box-shadow: 0 12px 26px rgba(34, 211, 238, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--cyan), #93c5fd);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.desktop-nav a,
.mobile-panel a {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--cyan);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.header-search input,
.mobile-search input,
.catalog-filter input,
.catalog-filter select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.catalog-filter input:focus,
.catalog-filter select:focus {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-link,
.ranking-tabs button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  padding: 10px 18px;
  color: #00111d;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  box-shadow: 0 14px 28px rgba(34, 211, 238, 0.22);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.section-link:hover,
.ranking-tabs button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

main {
  padding-top: 72px;
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08)),
    #0f172a;
}

.poster-wrap.is-missing .poster-fallback-text {
  display: grid;
}

.poster-fallback-text {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--muted-strong);
  font-weight: 800;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
}

.hero-overlay,
.detail-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.82) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 64px 0 96px;
}

.hero-kicker,
.page-hero span,
.detail-copy .hero-kicker,
.player-heading span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-one-line,
.detail-one-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  font-weight: 800;
}

.hero-summary,
.page-hero p,
.section-heading p,
.detail-copy p,
.text-panel p,
.footer-grid p {
  color: var(--muted-strong);
}

.hero-summary {
  max-width: 760px;
  font-size: 1.02rem;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(8, 47, 73, 0.58);
  color: #cffafe;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 5px 8px;
}

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

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text);
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.72);
  color: var(--cyan);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.16);
}

.ghost-button.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.hero-poster,
.detail-poster {
  min-height: 520px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-7deg);
}

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

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

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  font-size: 1.8rem;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.stats-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stats-strip div {
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.42);
}

.stats-strip strong {
  display: block;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  color: var(--cyan);
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-heading h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
}

.section-link {
  position: absolute;
  top: 10px;
  right: 0;
  display: inline-flex;
  padding: 9px 14px;
  color: #082f49;
  background: linear-gradient(90deg, #67e8f9, #93c5fd);
}

.small-heading .section-link,
.ranking-panel .section-link {
  position: static;
}

.movie-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 56px rgba(8, 145, 178, 0.18);
}

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

.movie-card .poster-wrap {
  aspect-ratio: 2 / 3;
  border-radius: 0 0 18px 18px;
}

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
  background: rgba(8, 47, 73, 0.82);
  color: #cffafe;
}

.poster-score {
  right: 12px;
  color: #422006;
  background: rgba(250, 204, 21, 0.92);
}

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

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card p {
  min-height: 4.4em;
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.movie-card-list .movie-card-link {
  display: grid;
  grid-template-columns: 138px 1fr;
}

.movie-card-list .poster-wrap {
  aspect-ratio: 2 / 3;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.compact-rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.compact-rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  font-weight: 900;
}

.compact-rank-item strong {
  display: block;
  color: var(--text);
}

.compact-rank-item small {
  display: block;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.24), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-card h3 {
  margin: 26px 0 8px;
  font-size: 1.25rem;
}

.category-card p,
.category-card small {
  color: var(--muted-strong);
}

.category-count {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 24px;
}

.compact-page-hero {
  min-height: 320px;
  display: grid;
  align-content: center;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
}

.category-overview-block {
  padding-top: 44px;
}

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

.category-overview-title span {
  color: var(--cyan);
  font-weight: 900;
}

.category-overview-title h2 {
  margin: 6px 0;
  font-size: 2rem;
}

.category-overview-title p {
  margin: 0;
  color: var(--muted-strong);
}

.catalog-filter {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.catalog-filter label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.catalog-filter input,
.catalog-filter select {
  padding: 11px 14px;
}

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

.filter-result {
  margin: 0;
  color: var(--cyan);
  font-weight: 800;
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.ranking-tabs button {
  padding: 10px 16px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.ranking-tabs button.is-active {
  color: #00111d;
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
}

.ranking-table-wrap {
  display: none;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
}

.ranking-table-wrap.is-active {
  display: block;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ranking-table th {
  color: var(--cyan);
  background: rgba(8, 47, 73, 0.38);
}

.ranking-table td {
  color: var(--muted-strong);
}

.ranking-table a {
  color: var(--text);
  font-weight: 850;
}

.detail-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

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

.detail-hero-inner {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 38px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

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

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

.detail-poster {
  min-height: 500px;
  transform: none;
}

.detail-copy h1 {
  max-width: 860px;
}

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

.detail-meta-grid div {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.66);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.detail-content {
  margin-top: -92px;
  position: relative;
  z-index: 8;
}

.player-card,
.text-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 22px;
}

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

.player-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.3);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 1.7rem;
}

.video-shell.is-playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-status {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--muted-strong);
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 22px;
}

.text-panel {
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.5rem;
}

.sitemap-wrap {
  display: grid;
  gap: 14px;
}

.sitemap-group {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
}

.sitemap-group summary {
  padding: 16px 18px;
  cursor: pointer;
  color: var(--cyan);
  font-weight: 900;
}

.sitemap-group ul {
  margin: 0;
  padding: 0 18px 18px 36px;
  columns: 2;
}

.sitemap-group li {
  margin: 6px 0;
  break-inside: avoid;
}

.sitemap-group small {
  color: var(--muted);
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #020617);
}

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

.footer-grid h3 {
  margin: 0 0 12px;
}

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

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

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

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

.footer-brand {
  margin-bottom: 12px;
}

.footer-small {
  font-size: 0.9rem;
  color: var(--muted);
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-poster {
    display: none;
  }

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

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: calc(100vh - 64px);
  }

  .hero-content {
    padding: 42px 0 86px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-summary {
    display: none;
  }

  .stats-strip {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .content-section,
  .category-overview-block,
  .page-hero,
  .detail-hero-inner,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .filter-selects,
  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-link {
    position: static;
    margin-top: 14px;
  }

  .category-overview-title,
  .player-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-poster {
    max-width: 260px;
    min-height: 390px;
  }

  .detail-content {
    margin-top: 0;
  }

  .sitemap-group ul {
    columns: 1;
  }
}
