:root {
  --stone-950: #0c0a09;
  --stone-925: #12100e;
  --stone-900: #1c1917;
  --stone-850: #231f1c;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --white: #ffffff;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  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: var(--stone-950);
  color: var(--stone-300);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-500);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
  font-size: 13px;
}

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

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

.nav-link {
  color: var(--stone-300);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-400);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(41, 37, 36, 0.92);
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 999px;
  padding: 6px;
}

.nav-search input,
.search-band form input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.nav-search input {
  width: 160px;
  padding: 8px 8px 8px 14px;
}

.nav-search button,
.search-band form button,
.filter-submit {
  border: 0;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-search button:hover,
.search-band form button:hover,
.filter-submit:hover,
.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-800);
  cursor: pointer;
  padding: 10px;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-800);
  padding: 12px 16px 18px;
  background: var(--stone-900);
}

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

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.25) 100%),
    linear-gradient(0deg, var(--stone-950) 0%, rgba(12, 10, 9, 0) 46%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 76px;
  width: min(720px, calc(100% - 48px));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero h1 a:hover {
  color: var(--amber-400);
}

.hero p {
  width: min(640px, 100%);
  color: var(--stone-300);
  font-size: 19px;
  line-height: 1.72;
  margin: 18px 0 0;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 22px;
  color: var(--stone-400);
}

.hero-meta strong,
.detail-meta strong {
  color: var(--amber-400);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 850;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: var(--stone-950);
  background: var(--amber-500);
}

.btn-ghost {
  color: var(--stone-200);
  border: 1px solid rgba(214, 211, 209, 0.2);
  background: rgba(28, 25, 23, 0.62);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--amber-400);
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.46);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.74);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-500);
}

.search-band {
  background: linear-gradient(90deg, var(--stone-900), var(--stone-800));
  border-top: 1px solid rgba(251, 191, 36, 0.08);
  border-bottom: 1px solid rgba(251, 191, 36, 0.08);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  align-items: center;
  gap: 28px;
  padding: 30px 0;
}

.search-band h2,
.section-head h2,
.footer-column h2,
.text-card h2 {
  margin: 0;
  color: var(--white);
}

.search-band p,
.section-head p {
  margin: 8px 0 0;
  color: var(--stone-400);
  line-height: 1.65;
}

.search-band form {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(12, 10, 9, 0.46);
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: 999px;
}

.search-band form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
}

.section-block {
  padding: 54px 0 0;
}

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

.section-head h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-head.tight {
  margin-bottom: 18px;
}

.section-more {
  color: var(--amber-400);
  font-weight: 750;
}

.section-more:hover {
  color: var(--amber-500);
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  color: inherit;
  background: var(--stone-900);
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.movie-card a:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: var(--shadow);
  background: var(--stone-850);
}

.poster,
.large-poster,
.wide-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #292524, #0c0a09);
}

.poster {
  aspect-ratio: 3 / 4;
}

.poster img,
.large-poster img,
.wide-cover img,
.detail-poster img,
.category-preview img,
.category-tile img,
.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card a:hover img,
.category-card a:hover img,
.category-tile:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

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

.poster-tag,
.poster-score {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-tag {
  left: 10px;
  color: var(--stone-950);
  background: rgba(245, 158, 11, 0.94);
}

.poster-score {
  right: 10px;
  color: var(--amber-400);
  background: rgba(0, 0, 0, 0.58);
}

.card-body {
  padding: 14px;
}

.card-body h3,
.wide-body h3,
.large-content h3 {
  margin: 0;
  color: var(--white);
  line-height: 1.35;
}

.card-body h3 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p,
.wide-body p,
.large-content p {
  color: var(--stone-400);
  line-height: 1.55;
}

.card-body p {
  min-height: 42px;
  margin: 8px 0 12px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: var(--stone-500);
  font-size: 12px;
  justify-content: space-between;
}

.movie-card-large a {
  border-radius: var(--radius-lg);
}

.large-poster {
  aspect-ratio: 16 / 11;
}

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

.large-content h3 {
  font-size: 24px;
}

.large-content p {
  min-height: 0;
  margin: 10px 0 12px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-badges span,
.card-badges strong {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.card-badges span {
  color: var(--stone-950);
  background: rgba(245, 158, 11, 0.94);
}

.card-badges strong {
  color: var(--amber-400);
  background: rgba(0, 0, 0, 0.5);
}

.panel-section,
.gradient-section {
  margin-top: 54px;
  padding: 34px;
  border: 1px solid rgba(68, 64, 60, 0.58);
  border-radius: var(--radius-xl);
  background: var(--stone-900);
}

.gradient-section {
  background: linear-gradient(120deg, var(--stone-900), var(--stone-800));
}

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

.category-tile,
.category-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 64, 60, 0.58);
  background: var(--stone-800);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.44;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.18));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 20px;
  margin-right: 20px;
}

.category-tile span {
  margin-top: 84px;
  color: var(--white);
  font-size: 22px;
  font-weight: 850;
}

.category-tile p {
  color: var(--stone-300);
  line-height: 1.55;
  margin-top: 8px;
}

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

.ranking-panel {
  align-self: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(68, 64, 60, 0.58);
  background: var(--stone-900);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--stone-800);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: #342f2b;
  transform: translateX(3px);
}

.rank-row strong,
.rank-card strong {
  color: var(--amber-400);
}

.rank-row span {
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em,
.rank-card em {
  color: var(--stone-400);
  font-style: normal;
}

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

.movie-card-wide a {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 185px;
}

.wide-cover {
  height: 100%;
}

.wide-body {
  padding: 18px;
}

.wide-body p {
  margin: 10px 0 16px;
}

.page-main {
  padding-top: 44px;
}

.page-hero {
  padding: 46px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(68, 64, 60, 0.58);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(130deg, var(--stone-900), var(--stone-800));
}

.page-hero.small-hero,
.page-hero.category-hero,
.page-hero.rank-hero,
.page-hero.search-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero p {
  width: min(760px, 100%);
  color: var(--stone-300);
  font-size: 18px;
  line-height: 1.72;
  margin: 18px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--stone-400);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(68, 64, 60, 0.62);
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.88);
}

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

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--stone-400);
  font-size: 13px;
}

.filter-search {
  grid-column: span 1;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(68, 64, 60, 0.86);
  border-radius: 12px;
  background: var(--stone-950);
}

.filter-panel select option {
  color: var(--white);
  background: var(--stone-900);
}

.filter-submit {
  min-height: 46px;
  border-radius: 12px;
}

.filter-empty {
  margin: 16px 0 0;
  color: var(--amber-400);
}

.category-card a {
  min-height: 330px;
  background: var(--stone-900);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card a:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.62);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 180px;
  overflow: hidden;
}

.category-preview img {
  min-width: 0;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0;
  color: var(--white);
}

.category-card-body p {
  min-height: 48px;
  color: var(--stone-400);
  line-height: 1.6;
}

.category-card-body span {
  color: var(--amber-400);
  font-weight: 800;
}

.rank-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rank-card {
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(68, 64, 60, 0.62);
  border-radius: 16px;
  background: var(--stone-900);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.62);
}

.rank-card img {
  width: 64px;
  height: 84px;
  border-radius: 10px;
  background: var(--stone-800);
}

.rank-card span {
  color: var(--white);
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-main {
  padding-top: 0;
}

.detail-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  height: 520px;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: blur(1px);
}

.detail-backdrop-shade {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--stone-950), rgba(12, 10, 9, 0.58), var(--stone-950)),
    linear-gradient(0deg, var(--stone-950) 0%, rgba(12, 10, 9, 0) 70%);
}

.detail-shell {
  position: relative;
  padding-top: 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: var(--stone-900);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-copy {
  padding-bottom: 18px;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 760px;
  color: var(--stone-300);
  font-size: 19px;
  line-height: 1.74;
  margin: 18px 0 0;
}

.detail-meta {
  margin-top: 18px;
  color: var(--stone-400);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag-list a {
  color: var(--stone-300);
  background: rgba(41, 37, 36, 0.92);
  border: 1px solid rgba(68, 64, 60, 0.68);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}

.tag-list a:hover {
  color: var(--amber-400);
  border-color: rgba(245, 158, 11, 0.52);
}

.player-section {
  position: relative;
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(68, 64, 60, 0.72);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  z-index: 2;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--stone-950);
  background: var(--amber-500);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.28);
}

.player-start strong {
  display: block;
  font-size: 20px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  color: var(--amber-400);
  text-align: center;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.text-card {
  padding: 26px;
  border: 1px solid rgba(68, 64, 60, 0.62);
  border-radius: var(--radius-lg);
  background: var(--stone-900);
}

.text-card p {
  color: var(--stone-300);
  line-height: 1.9;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 18px;
  margin: 18px 0 0;
}

.meta-card dt {
  color: var(--stone-500);
}

.meta-card dd {
  margin: 0;
  color: var(--stone-300);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(68, 64, 60, 0.68);
  background: var(--stone-900);
}

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

.footer-brand p {
  max-width: 420px;
  color: var(--stone-400);
  line-height: 1.7;
}

.footer-column h2 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-column a {
  color: var(--stone-400);
}

.footer-column a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(68, 64, 60, 0.5);
  padding: 18px;
  color: var(--stone-500);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    width: 100%;
  }

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

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

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

  .hero {
    height: 580px;
  }

  .hero-copy {
    bottom: 70px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

  .detail-backdrop {
    top: 68px;
  }

  .wide-grid,
  .movie-card-wide a {
    grid-template-columns: 1fr;
  }

  .wide-cover {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 540px;
  }

  .hero-copy {
    left: 16px;
    width: calc(100% - 32px);
  }

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

  .hero-actions,
  .detail-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
  }

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

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

  .panel-section,
  .gradient-section,
  .page-hero {
    padding: 22px;
  }

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

  .rank-card {
    grid-template-columns: 34px 56px minmax(0, 1fr);
  }

  .rank-card em {
    grid-column: 3;
  }

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

  .player-start span {
    width: 68px;
    height: 68px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }
}
