:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --panel: #292524;
  --panel-strong: #1c1917;
  --line: #44403c;
  --line-soft: rgba(120, 113, 108, 0.32);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --orange: #ea580c;
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  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;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 10%, rgba(217, 119, 6, 0.12), transparent 32vw),
    radial-gradient(circle at 90% 2%, rgba(234, 88, 12, 0.10), transparent 34vw),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 54%, #0c0a09 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(68, 64, 60, 0.8);
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 13px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(217, 119, 6, 0.16);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search-form input,
.filter-control input,
.filter-control select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(41, 37, 36, 0.95);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus,
.filter-control input:focus,
.filter-control select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.site-search-form button,
.btn,
.section-link {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--amber);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button:hover,
.btn:hover,
.section-link:hover {
  transform: translateY(-1px);
  background: var(--amber-light);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.24);
}

.header-search {
  width: 300px;
}

.header-search input {
  height: 42px;
  padding: 0 14px;
}

.header-search button {
  height: 42px;
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line-soft);
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input,
.page-search-form input,
.quick-search-form input {
  min-height: 48px;
  padding: 0 16px;
}

.mobile-search button,
.page-search-form button,
.quick-search-form button {
  min-height: 48px;
  padding: 0 20px;
}

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

.mobile-link {
  padding: 12px 14px;
  background: rgba(41, 37, 36, 0.75);
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #1c1917, #292524 46%, #78350f);
}

.hero-track {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-background,
.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.38) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  opacity: 0.62;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(74px);
  opacity: 0.42;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  left: 8vw;
  top: 12vh;
  background: var(--amber);
}

.hero-glow-two {
  width: 480px;
  height: 480px;
  right: 2vw;
  bottom: -12vh;
  background: var(--orange);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d6d3d1;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 22px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(217, 119, 6, 0.12);
  font-size: 12px;
  font-weight: 700;
}

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

.btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
}

.btn-ghost {
  color: var(--text);
  background: rgba(41, 37, 36, 0.88);
  border: 1px solid rgba(120, 113, 108, 0.55);
}

.btn-ghost:hover {
  background: rgba(68, 64, 60, 0.95);
}

.hero-poster-link {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  justify-self: end;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.25s ease;
}

.hero-poster-link:hover {
  transform: translateY(-4px) rotate(0deg);
}

.hero-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--panel);
}

.hero-score,
.detail-score {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 38px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.32);
}

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

.hero-arrow,
.hero-dots button {
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dots button {
  width: 32px;
  height: 10px;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button[aria-current="true"] {
  width: 54px;
  background: var(--amber);
}

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

.slim-section {
  padding: 42px 0 18px;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background: rgba(28, 25, 23, 0.58);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-head.with-link {
  align-items: center;
}

.section-link {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.76);
  box-shadow: 0 22px 70px rgba(217, 119, 6, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--panel);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  color: #fcd34d;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  left: 10px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
}

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

.card-body {
  display: block;
  padding: 14px;
}

.card-title,
.card-meta,
.card-desc {
  display: block;
}

.card-title {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  min-height: 44px;
  margin-top: 9px;
  color: #d6d3d1;
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  margin-top: 12px;
}

.tag-row .tag-badge {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

.quick-search-card,
.filter-panel,
.text-panel,
.meta-list,
.category-overview-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.86);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 26px;
  padding: 28px;
}

.quick-search-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.04em;
}

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

.category-tile {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(41, 37, 36, 0.95), rgba(28, 25, 23, 0.95));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.76);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--panel);
}

.category-name {
  font-size: 20px;
  font-weight: 900;
}

.category-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 54px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: 16px;
  background: rgba(12, 10, 9, 0.38);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(245, 158, 11, 0.72);
  background: rgba(217, 119, 6, 0.10);
}

.ranking-index,
.ranking-score {
  font-weight: 900;
  color: var(--amber-light);
}

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

.ranking-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #1c1917, #292524 48%, #78350f);
}

.small-hero {
  min-height: 330px;
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: #d6d3d1;
  font-size: 18px;
  line-height: 1.8;
}

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

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.5fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.filter-control label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-control input,
.filter-control select {
  height: 46px;
  padding: 0 13px;
}

.filter-status {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--muted);
}

.detail-hero {
  min-height: 640px;
}

.detail-bg {
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.82) 48%, rgba(12, 10, 9, 0.42) 100%),
    var(--detail-bg);
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

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

.breadcrumb a:hover,
.meta-list a:hover {
  color: var(--amber-light);
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--panel);
}

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

.detail-one-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: #e7e5e4;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.detail-tags {
  max-width: 900px;
}

.player-section {
  padding-top: 72px;
}

.site-video-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.66));
}

.site-video-player.is-playing .player-overlay {
  display: none;
}

.player-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.32);
  font-size: 28px;
}

.player-button-text {
  font-size: 18px;
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: #fcd34d;
  font-size: 13px;
}

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

.text-panel {
  padding: 26px;
}

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

.text-panel p:not(.eyebrow) {
  margin: 0;
  color: #d6d3d1;
  font-size: 16px;
  line-height: 1.9;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  overflow: hidden;
}

.meta-list div {
  padding: 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-list dd {
  margin: 7px 0 0;
  color: #fff;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(12, 10, 9, 0.92);
}

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

.footer-brand p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .header-search {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-shell {
    height: 64px;
  }

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

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

  .hero-content {
    padding: 70px 0 0;
  }

  .hero-poster-link {
    justify-self: start;
    width: min(260px, 72vw);
  }

  .quick-search-card,
  .detail-layout,
  .detail-text-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .ranking-meta {
    display: none;
  }

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

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

  .hero-track,
  .hero-carousel {
    min-height: 720px;
  }

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

  .hero-actions,
  .detail-actions,
  .page-search-form,
  .quick-search-form,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .content-section,
  .dark-band {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-desc {
    display: none;
  }

  .filter-panel,
  .meta-list {
    grid-template-columns: 1fr;
  }

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

  .detail-inner {
    padding-bottom: 48px;
  }

  .detail-poster {
    width: min(260px, 86vw);
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }
}
