:root {
  --stone-950: #0c0a09;
  --stone-925: #15110f;
  --stone-900: #1c1917;
  --stone-850: #241f1b;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --text-main: #f5f5f4;
  --text-muted: #a8a29e;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  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-main);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30rem),
    radial-gradient(circle at 70% 10%, rgba(180, 83, 9, 0.18), transparent 34rem),
    var(--stone-950);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(146, 64, 14, 0.98), rgba(120, 53, 15, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff7ed;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber-100);
  border: 1px solid rgba(254, 243, 199, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--amber-100);
  font-weight: 650;
}

.nav-link {
  position: relative;
  padding: 22px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 15px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: #fff7ed;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(254, 243, 199, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  color: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(254, 243, 199, 0.18);
}

.mobile-nav.open {
  display: grid;
}

.mobile-link {
  padding: 12px 4px;
  color: var(--amber-100);
  font-weight: 700;
  border-bottom: 1px solid rgba(254, 243, 199, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--stone-950);
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.65) 46%, rgba(12, 10, 9, 0.1)),
    linear-gradient(0deg, var(--stone-950), rgba(12, 10, 9, 0) 48%),
    radial-gradient(circle at 16% 32%, rgba(245, 158, 11, 0.35), transparent 30rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(64px, 10vw, 120px);
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker,
.detail-kicker,
.card-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--stone-300);
}

.hero-kicker span:first-child,
.detail-kicker span:first-child {
  color: var(--amber-300);
  font-weight: 800;
}

.hero-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.8);
}

.hero-copy h1 {
  margin: 14px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #e7e5e4;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-more,
.side-link,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.home-search button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 15px 32px rgba(245, 158, 11, 0.22);
}

.ghost-button,
.section-more,
.side-link {
  border: 1px solid rgba(254, 243, 199, 0.36);
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.side-link:hover,
.home-search button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(254, 243, 199, 0.22);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.24);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.quick-search,
.content-section {
  padding: clamp(46px, 8vw, 80px) 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(252, 211, 77, 0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.95));
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--amber-300);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-panel h2,
.section-head h2,
.rank-panel-head h2,
.detail-content h1,
.page-hero h1 {
  margin: 8px 0 10px;
  color: #fffaf0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.search-panel h2,
.section-head h2,
.rank-panel-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.search-panel p,
.section-head p,
.page-hero p {
  margin: 0;
  color: var(--stone-300);
  line-height: 1.75;
}

.home-search {
  display: flex;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(254, 243, 199, 0.12);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.62);
}

.home-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--stone-100);
  background: transparent;
  padding: 0 14px;
}

.home-search input::placeholder,
.search-controls input::placeholder,
.filter-bar input::placeholder {
  color: var(--stone-500);
}

.muted-section {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.38), rgba(12, 10, 9, 0));
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.88), rgba(28, 25, 23, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 211, 77, 0.34);
  box-shadow: var(--shadow-card);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--stone-950);
  background: var(--amber-300);
  font-size: 12px;
  font-weight: 900;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.26);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.card-meta,
.rank-meta {
  color: var(--stone-400);
  font-size: 12px;
}

.card-meta span + span::before,
.rank-meta span + span::before {
  content: "•";
  margin-right: 9px;
  color: var(--amber-500);
}

.movie-card h3 {
  margin: 0;
  color: #fffaf0;
  font-size: 17px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.wide-rank-title:hover {
  color: var(--amber-300);
}

.movie-card p {
  min-height: 4.8em;
  margin: 0;
  color: var(--stone-400);
  font-size: 13px;
  line-height: 1.6;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-400);
  font-size: 12px;
}

.card-foot a {
  color: var(--amber-300);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(252, 211, 77, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.9));
  box-shadow: var(--shadow-card);
}

.tile-mark,
.overview-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-weight: 900;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 18px 0 10px;
  color: #fffaf0;
  font-size: 24px;
}

.category-tile p,
.category-overview-card p {
  color: var(--stone-300);
  line-height: 1.7;
}

.tile-links,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tile-links a,
.overview-links a,
.footer-links a,
.compact-links a {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.tile-links a,
.overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.tile-links a:hover,
.overview-links a:hover,
.footer-links a:hover,
.compact-links a:hover {
  color: var(--amber-300);
}

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

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

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid rgba(252, 211, 77, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.88);
  box-shadow: var(--shadow-card);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: var(--stone-900);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--stone-950);
  background: var(--amber-300);
  font-weight: 900;
  font-size: 12px;
}

.rank-item h3 {
  margin: 0 0 8px;
  color: #fffaf0;
  font-size: 16px;
}

.rank-item p {
  margin: 0 0 8px;
  color: var(--stone-400);
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  position: relative;
  padding: clamp(72px, 10vw, 118px) 0 clamp(42px, 7vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.26), transparent 28rem),
    linear-gradient(180deg, rgba(28, 25, 23, 0.96), rgba(12, 10, 9, 0.92));
}

.compact-hero h1,
.category-hero h1,
.search-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 66px);
}

.compact-hero p,
.category-hero p,
.search-hero p {
  max-width: 760px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--stone-400);
}

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

.filter-bar,
.search-controls {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(252, 211, 77, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.82);
}

.filter-bar label,
.search-controls label {
  display: grid;
  gap: 8px;
  color: var(--stone-300);
  font-weight: 700;
}

.filter-bar input,
.filter-bar select,
.search-controls input,
.search-controls select {
  width: 100%;
  border: 1px solid rgba(254, 243, 199, 0.16);
  border-radius: 14px;
  outline: 0;
  color: var(--stone-100);
  background: rgba(12, 10, 9, 0.62);
  padding: 12px 14px;
}

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

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

.wide-rank-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1.1fr) 90px 130px minmax(180px, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: var(--stone-300);
  background: rgba(41, 37, 36, 0.72);
}

.wide-rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--stone-950);
  background: var(--amber-300);
  font-weight: 900;
}

.wide-rank-title {
  color: #fffaf0;
  font-weight: 900;
}

.search-workbench {
  display: grid;
  gap: 24px;
}

.search-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.search-result-heading h2 {
  margin: 0;
  color: #fffaf0;
  font-size: 30px;
}

.search-result-heading span {
  color: var(--stone-400);
}

.detail-shell {
  padding: 36px 0 0;
}

.detail-breadcrumb {
  margin-bottom: 24px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.18);
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fffaf0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.74)),
    rgba(0, 0, 0, 0.48);
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--stone-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.26);
  font-size: 30px;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff7ed;
  background: rgba(127, 29, 29, 0.86);
}

.player-error.show {
  display: block;
}

.detail-content {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.82), rgba(28, 25, 23, 0.9));
}

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

.lead-text {
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-content h2 {
  margin: 28px 0 10px;
  color: var(--amber-100);
  font-size: 24px;
}

.detail-content p {
  color: var(--stone-300);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.info-card {
  padding: 22px;
  border: 1px solid rgba(252, 211, 77, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.9);
}

.info-card h2 {
  margin: 0 0 18px;
  color: #fffaf0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}

.info-card dt {
  color: var(--amber-300);
  font-weight: 800;
}

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

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

.compact-card p {
  min-height: 3.2em;
}

.site-footer {
  margin-top: 40px;
  padding: 54px 0 0;
  color: var(--stone-400);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.84), #070605);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

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

.footer-bottom {
  margin-top: 40px;
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--stone-500);
}

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

  .two-column-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero-carousel,
  .hero-bg {
    min-height: 72vh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, var(--stone-950), rgba(12, 10, 9, 0.18) 70%),
      rgba(12, 10, 9, 0.42);
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .filter-bar,
  .search-controls,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .home-search input {
    min-height: 48px;
  }

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

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

  .wide-rank-row span:nth-child(n+3) {
    display: none;
  }
}

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

  .logo {
    font-size: 19px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

  .movie-card p {
    display: none;
  }

  .card-body {
    padding: 12px;
  }

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

  .section-head,
  .search-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-content {
    padding: 20px;
  }

  .lead-text,
  .detail-content p {
    font-size: 16px;
  }
}
