:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --soft: #e2e8f0;
  --card: #ffffff;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --rose: #f43f5e;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius-xl: 1.25rem;
  --radius-lg: 0.875rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.nav-shell,
.footer-shell,
.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), #38bdf8);
  border-radius: 0.625rem;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.brand-text {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #475569;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--sky-dark);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
  border: 0;
  border-radius: 0.75rem;
  background: #f1f5f9;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #334155;
  border-radius: 999px;
}

.mobile-menu {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.7rem 0.875rem;
  color: #475569;
  border-radius: 0.75rem;
}

.mobile-menu a:hover {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.35));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.62));
}

.hero-content {
  position: absolute;
  left: max(2rem, calc((100vw - 1280px) / 2 + 1rem));
  right: 1.5rem;
  bottom: 6rem;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.75rem;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 680px;
  margin: 0 0 1.35rem;
  color: #e2e8f0;
  font-size: 1.125rem;
}

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

.hero-meta span {
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
  width: 2.4rem;
  background: #ffffff;
}

.page-top {
  padding-top: 2rem;
}

.intro-panel,
.filter-panel,
.detail-card,
.rank-panel,
.category-card,
.related-panel .sticky-side,
.page-title {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.75rem;
}

.intro-panel h2,
.page-title h1,
.section-head h2 {
  margin: 0;
  color: #0f172a;
  line-height: 1.2;
}

.intro-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.intro-panel p,
.page-title p,
.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.intro-stats {
  min-width: 170px;
  padding: 1rem 1.2rem;
  text-align: center;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  border-radius: var(--radius-lg);
}

.intro-stats strong {
  display: block;
  color: var(--sky-dark);
  font-size: 2.6rem;
  line-height: 1;
}

.intro-stats span {
  color: #475569;
  font-weight: 700;
}

.filter-panel {
  margin: 1.5rem 0 3rem;
  padding: 1.2rem;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 180px;
  gap: 1rem;
}

.filter-panel label {
  display: grid;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-result {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.content-section {
  margin: 4.5rem 0;
}

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

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.section-more {
  color: var(--sky-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.movie-card:hover {
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.28), transparent 28%),
    linear-gradient(135deg, #0f172a, #334155);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

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

.poster-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.22rem 0.55rem;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.card-body {
  padding: 0.9rem;
}

.card-body h3 {
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.movie-card:hover h3 {
  color: var(--sky-dark);
}

.card-line {
  display: -webkit-box;
  min-height: 2.65rem;
  margin: 0 0 0.55rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #64748b;
  font-size: 0.8rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.card-tags span,
.detail-tags span {
  padding: 0.18rem 0.5rem;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

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

.rank-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
}

.compact-head {
  margin-bottom: 1rem;
}

.rank-list {
  display: grid;
  gap: 0.7rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.95rem;
  background: #f8fafc;
  transition: background 180ms ease, transform 180ms ease;
}

.rank-item:hover {
  background: #e0f2fe;
  transform: translateX(3px);
}

.rank-no {
  grid-row: span 2;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--sky));
  border-radius: 0.75rem;
  font-weight: 900;
}

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

.rank-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-strips {
  display: grid;
  gap: 2rem;
}

.strip-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.strip-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.strip-title a {
  margin-left: auto;
  color: var(--sky-dark);
  font-weight: 800;
}

.tone-dot {
  width: 0.32rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--sky);
}

.tone-sky { background: #0ea5e9; }
.tone-rose { background: #f43f5e; }
.tone-blue { background: #2563eb; }
.tone-orange { background: #f97316; }
.tone-pink { background: #ec4899; }
.tone-amber { background: #f59e0b; }
.tone-indigo { background: #6366f1; }
.tone-violet { background: #8b5cf6; }
.tone-emerald { background: #10b981; }
.tone-cyan { background: #06b6d4; }

.strip-scroll {
  display: grid;
  grid-auto-columns: 11.5rem;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.8rem;
}

.mini-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #334155);
}

.mini-card span {
  display: block;
  overflow: hidden;
  padding: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title {
  margin-bottom: 1.5rem;
  padding: 2rem;
}

.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--sky-dark);
  font-weight: 700;
}

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

.category-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.category-card a {
  display: grid;
  min-height: 240px;
  padding: 1.5rem;
}

.category-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: #ffffff;
  border-radius: 1rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-card h2 {
  margin: 1rem 0 0.4rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.category-preview span {
  max-width: 100%;
  overflow: hidden;
  padding: 0.25rem 0.55rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list {
  display: grid;
  gap: 0.85rem;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 56px 84px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ranking-row a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.ranking-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--rose));
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-row img {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #334155);
  border-radius: 0.75rem;
}

.ranking-info h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 0.5rem;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-score {
  color: var(--sky-dark);
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
}

.detail-main {
  display: grid;
  gap: 1.5rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.32);
  font-weight: 900;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

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

.detail-card {
  padding: 1.5rem;
}

.detail-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
}

.detail-meta span {
  padding: 0.28rem 0.65rem;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.detail-one-line {
  margin: 1.2rem 0;
  color: #334155;
  font-size: 1.08rem;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.detail-card section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.detail-card h2,
.related-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0;
  color: #475569;
  line-height: 1.85;
  white-space: pre-line;
}

.sticky-side {
  position: sticky;
  top: 5.5rem;
  padding: 1.2rem;
}

.related-list {
  display: grid;
  gap: 1rem;
}

.related-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.8rem;
}

.related-card img {
  width: 86px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #334155);
  border-radius: 0.75rem;
}

.related-card h3 {
  display: -webkit-box;
  margin: 0 0 0.35rem;
  overflow: hidden;
  font-size: 0.95rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card p {
  display: -webkit-box;
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card span {
  color: #64748b;
  font-size: 0.78rem;
}

.site-footer {
  margin-top: 5rem;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-top: 1px solid #e2e8f0;
}

.footer-shell {
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 2rem;
}

.footer-main p,
.footer-grid a,
.footer-bottom {
  color: #64748b;
}

.footer-main p {
  max-width: 520px;
  margin: 1rem 0 0;
}

.footer-grid h3 {
  margin: 0 0 0.8rem;
}

.footer-grid a {
  display: block;
  margin: 0.45rem 0;
}

.footer-grid a:hover {
  color: var(--sky-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

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

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

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 1.25rem;
    bottom: 5.2rem;
  }

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

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

  .intro-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .ranking-score {
    grid-column: 3;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .footer-shell,
  .page-shell,
  .mobile-menu {
    width: min(100% - 20px, 1280px);
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-control {
    display: none;
  }

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

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

  .card-body {
    padding: 0.75rem;
  }

  .category-card a,
  .page-title,
  .detail-card {
    padding: 1.1rem;
  }

  .ranking-row a {
    grid-template-columns: 38px 64px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .ranking-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
  }

  .ranking-row img {
    width: 64px;
  }

  .ranking-info p,
  .ranking-score {
    display: none;
  }

  .related-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .related-card img {
    width: 72px;
  }
}
