:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --shadow-soft: 0 10px 30px rgba(28, 25, 23, 0.08);
  --shadow-card: 0 8px 22px rgba(28, 25, 23, 0.10);
  --radius: 18px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.page-main {
  padding-top: var(--header-height);
  min-height: 70vh;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--amber-50);
  background: rgba(120, 53, 15, 0.96);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.18);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-100), var(--amber-600));
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.35);
  font-size: 13px;
}

.brand-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 13px;
  color: var(--amber-100);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(146, 64, 14, 0.8);
  transform: translateY(-1px);
}

.nav-divider {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: rgba(253, 230, 138, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(146, 64, 14, 0.65);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-100);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.2);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  height: 560px;
  min-height: 520px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(217, 119, 6, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.88));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(880px, calc(100% - 48px));
  color: white;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 16px;
  color: white;
  background: rgba(217, 119, 6, 0.88);
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.btn.glass,
.btn.ghost {
  color: var(--stone-800);
  background: white;
  border: 1px solid var(--stone-200);
}

.hero .btn.glass {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
}

.hero-arrow,
.rail-btn {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  top: 50%;
  width: 44px;
  height: 44px;
  font-size: 34px;
  transform: translateY(-50%);
}

.hero-arrow:hover,
.rail-btn:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.left {
  left: 18px;
}

.hero-arrow.right {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--amber-600);
}

.page-hero {
  color: white;
  background:
    radial-gradient(circle at 18% 15%, rgba(251, 191, 36, 0.22), transparent 26%),
    linear-gradient(135deg, var(--amber-900), var(--amber-800));
}

.small-hero {
  padding: 72px 0 58px;
}

.small-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.content-section,
.search-panel {
  padding: 56px 0;
}

.rail-section {
  background: linear-gradient(180deg, var(--stone-50), white);
}

.tone-section,
.ranking-section,
.category-section {
  background: var(--stone-100);
}

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

.section-head h2,
.genre-panel h2,
.sticky-aside h2,
.aside-card h2,
.info-section h2 {
  margin: 0 0 6px;
  color: var(--stone-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.section-head p,
.genre-panel p,
.overview-head p {
  margin: 0;
  color: var(--stone-600);
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(231, 229, 228, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.card-poster.cinematic {
  aspect-ratio: 16 / 9;
}

.card-poster.wide {
  width: 180px;
  min-width: 180px;
  height: 112px;
  aspect-ratio: auto;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 64%);
}

.pill,
.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.poster-pill,
.pill.amber {
  top: 12px;
  left: 12px;
  color: white;
  background: var(--amber-600);
}

.duration {
  right: 12px;
  bottom: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  right: 12px;
  color: var(--amber-900);
  background: var(--amber-100);
}

.card-info {
  padding: 16px;
}

.card-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--stone-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--stone-400);
  font-size: 12px;
  font-weight: 700;
}

.meta-row.light {
  color: rgba(255, 255, 255, 0.88);
}

.movie-card-horizontal {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.movie-card-horizontal .card-info {
  flex: 1;
  min-width: 0;
  padding: 12px 14px 12px 0;
}

.movie-card-horizontal h3 {
  min-height: auto;
}

.movie-card-horizontal .card-info p {
  min-height: auto;
  -webkit-line-clamp: 2;
}

.movie-card-large .large-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: white;
}

.movie-card-large .large-caption .pill {
  position: static;
  margin-bottom: 10px;
}

.movie-card-large .large-caption h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.18;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  width: 286px;
  min-width: 286px;
}

.rail-btn {
  top: 42%;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.rail-btn.left {
  left: -10px;
}

.rail-btn.right {
  right: -10px;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 22px;
}

.featured-side,
.side-list {
  display: grid;
  gap: 16px;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: white;
  background: var(--stone-900);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

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

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.category-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
}

.category-content h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.category-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--amber-600);
  border-radius: 14px;
  font-weight: 900;
}

.category-icon.small {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

.ranking-grid,
.ranking-page-layout,
.detail-grid,
.sitemap-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
}

.rank-list,
.genre-panel,
.sticky-aside,
.aside-card,
.search-box-card,
.info-card,
.sitemap-box,
.category-overview-block,
.detail-card {
  background: white;
  border: 1px solid rgba(231, 229, 228, 0.82);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.rank-list {
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stone-100);
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--amber-50);
}

.rank-list .rank-row:last-child {
  border-bottom: 0;
}

.rank-num {
  color: var(--amber-700);
  font-weight: 900;
  font-size: 22px;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--stone-500);
  font-size: 13px;
}

.genre-panel,
.sticky-aside,
.aside-card {
  padding: 22px;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-chip,
.tag-row a,
.tag-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.genre-chip span {
  color: var(--stone-500);
}

.genre-cloud.large .genre-chip {
  padding: 10px 14px;
  font-size: 14px;
}

.search-panel {
  background: linear-gradient(180deg, white, var(--stone-50));
}

.search-box-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.search-box-card h2 {
  margin: 0 0 4px;
  font-size: 28px;
}

.search-box-card p {
  margin: 0;
  color: var(--stone-600);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: end;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  color: var(--stone-800);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.filter-count {
  font-weight: 800;
}

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

.category-overview-block {
  padding: 24px;
}

.detail-wrap {
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--stone-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

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

.player-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--amber-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.player-loader.ready {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.player-shell:hover .player-controls,
.player-shell.playing .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-control {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.player-control.main {
  background: var(--amber-600);
}

.player-status {
  flex: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.detail-card {
  padding: 24px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta a,
.detail-meta span {
  padding: 6px 11px;
  color: var(--stone-700);
  background: var(--stone-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta a {
  color: var(--amber-800);
  background: var(--amber-50);
}

.detail-card blockquote {
  margin: 0 0 22px;
  padding: 16px 18px;
  color: var(--stone-700);
  background: var(--amber-50);
  border-left: 4px solid var(--amber-600);
  border-radius: 0 14px 14px 0;
  font-weight: 700;
}

.article-block {
  padding-top: 20px;
  border-top: 1px solid var(--stone-100);
}

.article-block + .article-block {
  margin-top: 20px;
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-block p,
.info-section p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.85;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-aside .aside-card {
  position: sticky;
  top: 86px;
}

.detail-aside .aside-card + .aside-card {
  position: static;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 16px;
}

.sticky-aside {
  position: sticky;
  top: 86px;
  align-self: start;
}

.sitemap-layout {
  align-items: start;
}

.sitemap-box {
  padding: 24px;
}

.sitemap-box.full {
  grid-column: 1 / -1;
}

.sitemap-box h2 {
  margin-top: 0;
}

.sitemap-box ul {
  padding-left: 20px;
  margin: 0;
}

.sitemap-box li {
  margin: 8px 0;
}

.sitemap-box a {
  color: var(--amber-800);
  font-weight: 700;
}

.sitemap-movies {
  columns: 4;
}

.info-card {
  padding: 28px;
}

.info-section + .info-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--stone-100);
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
}

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

.footer-inner p {
  max-width: 480px;
  color: var(--stone-400);
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: var(--amber-100);
}

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

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

.footer-bottom {
  padding: 18px;
  color: var(--stone-500);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 14px;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

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

  .nav-toggle {
    display: block;
  }

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

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

  .featured-layout,
  .ranking-grid,
  .ranking-page-layout,
  .detail-grid,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .sticky-aside,
  .detail-aside .aside-card {
    position: static;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    height: 500px;
    min-height: 500px;
  }

  .hero-arrow {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .content-section,
  .search-panel {
    padding: 38px 0;
  }

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

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

  .movie-rail .movie-card {
    width: 248px;
    min-width: 248px;
  }

  .movie-card-horizontal {
    display: grid;
  }

  .movie-card-horizontal .card-poster.wide {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .movie-card-horizontal .card-info {
    padding: 14px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .sitemap-movies {
    columns: 1;
  }
}

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

  .hero-actions {
    display: grid;
  }
}
