:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --amber: #f59e0b;
  --pink: #f472b6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --header-height: 74px;
  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;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(244, 114, 182, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #06242c;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.32);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted-strong);
  margin-left: auto;
}

.desktop-nav a,
.nav-dropdown button {
  background: transparent;
  border: 0;
  color: var(--muted-strong);
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: -18px;
  top: 100%;
  min-width: 168px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: rgba(34, 211, 238, 0.12);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-search input {
  color: var(--text);
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.inline-search input:focus {
  border-color: rgba(34, 211, 238, 0.76);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button,
.inline-search button,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: #041217;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.inline-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn.ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn.full {
  width: 100%;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.58);
  padding: 16px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel a {
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--muted-strong);
}

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

.mobile-search input {
  width: 100%;
  padding: 12px 15px;
}

main {
  overflow: hidden;
}

.hero-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 26px auto 0;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 54px;
  padding: 78px 72px 90px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.018);
  transition: opacity 0.55s ease, transform 0.65s ease;
}

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

.hero-backdrop,
.detail-hero::before,
.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.46) 100%),
    var(--hero-image) center / cover no-repeat,
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.14));
}

.hero-backdrop::after,
.detail-hero-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.26), transparent 20rem),
    radial-gradient(circle at 92% 20%, rgba(245, 158, 11, 0.16), transparent 16rem),
    linear-gradient(180deg, transparent 62%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content,
.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 780px;
}

.hero-summary,
.page-hero p,
.detail-hero p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.78;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span,
.filter-row button {
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.16)),
    var(--poster) center / cover no-repeat,
    #0f172a;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(1.4deg);
}

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

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 72px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
  font-size: 24px;
}

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

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: rgba(148, 163, 184, 0.38) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  border-radius: 999px !important;
  background: var(--cyan) !important;
}

.search-band,
.content-section,
.detail-layout,
.footer-grid,
.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  padding: 26px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.search-band span {
  color: var(--cyan);
  font-weight: 800;
}

.search-band h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.big-search,
.inline-search {
  display: flex;
  gap: 12px;
}

.big-search input,
.inline-search input {
  flex: 1;
  padding: 15px 18px;
}

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

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

.section-header h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-large,
.text-card,
.ranking-panel,
.detail-side,
.player-card {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.category-tile {
  padding: 22px;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
}

.category-icon {
  font-size: 30px;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span:last-child,
.category-card-large p {
  color: var(--muted);
  line-height: 1.65;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.15)),
    var(--poster) center / cover no-repeat,
    #111827;
}

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

.quality-badge,
.rating-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  left: 10px;
  color: #041217;
  background: var(--cyan);
}

.rating-badge {
  right: 10px;
  color: #1f1300;
  background: var(--amber);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-desc {
  min-height: 45px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span,
.tag-row span {
  font-size: 12px;
  padding: 5px 8px;
}

.tag-row {
  gap: 6px;
}

.compact-card .card-desc {
  display: none;
}

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

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 25px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-item:hover {
  background: rgba(34, 211, 238, 0.09);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #041217;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-score {
  color: var(--amber);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.slim-hero {
  padding: 70px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
}

.category-hero {
  padding: 70px;
  background: #020617;
}

.category-hero > * {
  position: relative;
  z-index: 2;
}

.filter-row {
  margin-top: 24px;
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #041217;
  background: var(--cyan);
  border-color: var(--cyan);
}

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

.empty-state {
  text-align: center;
  margin: 44px auto;
  color: var(--muted);
  font-size: 18px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-posters span {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(244, 114, 182, 0.16)),
    var(--poster) center / cover no-repeat,
    #111827;
}

.category-card-large h2 {
  margin: 10px 0;
  font-size: 28px;
}

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

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background:
    var(--hero-image) center / cover no-repeat,
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.16)),
    #020617;
}

.detail-hero::before {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.7) 48%, rgba(2, 6, 23, 0.38) 100%),
    var(--hero-image) center / cover no-repeat,
    #020617;
}

.detail-hero-inner {
  padding: 56px 70px;
  width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

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

.player-card {
  padding: 18px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--text);
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.88)),
    var(--poster) center / cover no-repeat,
    #020617;
}

.player-card.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #041217;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.28);
  font-size: 30px;
  padding-left: 4px;
}

.player-cover span:last-child {
  font-weight: 900;
  font-size: 20px;
}

.player-info {
  padding: 20px 6px 4px;
}

.player-info h2 {
  margin: 0 0 8px;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-side {
  padding: 24px;
}

.detail-side h2 {
  margin: 0 0 18px;
}

.detail-side dl {
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.detail-side dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

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

.text-card {
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.text-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.95;
  font-size: 16px;
}

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

.footer-grid {
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

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

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

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

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

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 60px 42px 88px;
  }

  .hero-controls {
    left: 42px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-shell {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 24px;
  }

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

  .search-band,
  .split-section,
  .detail-layout,
  .article-section,
  .footer-grid,
  .ranking-columns,
  .category-card-large {
    grid-template-columns: 1fr;
  }

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

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

  .slim-hero,
  .category-hero,
  .detail-hero-inner {
    padding: 42px 28px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .mobile-panel,
  .hero-shell,
  .search-band,
  .content-section,
  .detail-layout,
  .footer-grid,
  .footer-bottom,
  .page-hero,
  .detail-hero {
    width: min(100% - 22px, 1280px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero-shell {
    border-radius: 24px;
    min-height: 650px;
  }

  .hero-slide {
    padding: 38px 22px 82px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 39px;
  }

  .hero-summary,
  .page-hero p,
  .detail-hero p {
    font-size: 15px;
  }

  .hero-actions,
  .big-search,
  .inline-search,
  .mobile-search {
    flex-direction: column;
  }

  .hero-controls {
    left: 22px;
    bottom: 24px;
  }

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

  .category-posters {
    max-width: 240px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-desc,
  .tag-row {
    display: none;
  }

  .section-header {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 14px;
  }

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