:root {
  --bg: #f8fafc;
  --bg-soft: #fff7f8;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --success: #10b981;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.10), transparent 36%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 35%, #fffdfd 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--rose), var(--pink) 42%, var(--amber));
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.28);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 11px 9px 11px;
  border-radius: 10px 10px 12px 12px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,0.9) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0));
  transform: rotate(-8deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1rem;
  color: var(--text);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-actions a,
.nav-actions button,
.mobile-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  transition: 180ms ease;
  color: var(--muted);
}

.nav-links a:hover,
.nav-actions a:hover,
.nav-actions button:hover,
.mobile-links a:hover {
  background: rgba(225, 29, 72, 0.06);
  color: var(--rose-dark);
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(236, 72, 153, 0.08));
  color: var(--rose-dark);
  border-color: rgba(225, 29, 72, 0.12);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.nav-search input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text);
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.icon-btn,
.menu-btn {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.mobile-panel {
  display: none;
  padding-bottom: 16px;
}

.mobile-panel.open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 8px;
  padding: 0 0 8px;
}

.mobile-links a {
  background: rgba(255,255,255,0.82);
  border-color: rgba(15,23,42,0.06);
}

.hero {
  position: relative;
  padding: 28px 0 28px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 10px);
  background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,0.20), transparent 35%),
    radial-gradient(circle at 82% 8%, rgba(245,158,11,0.18), transparent 28%),
    linear-gradient(135deg, rgba(15,23,42,0.97), rgba(88,28,135,0.92) 48%, rgba(225,29,72,0.90));
  color: #fff;
  box-shadow: 0 30px 70px rgba(15,23,42,0.26);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 24%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 28px;
  padding: 34px;
  align-items: center;
}

.hero-copy {
  padding: 10px 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 58ch;
  color: rgba(255,255,255,0.84);
  font-size: 1.04rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  font-weight: 700;
  transition: 180ms ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #fff, #fff4f7);
  color: var(--rose-dark);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(0,0,0,0.2);
}

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.hero-stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  min-width: 112px;
  padding: 0.88rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.11);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.stat span {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.hero-carousel {
  display: grid;
  gap: 14px;
}

.carousel-window {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: 320ms ease;
  pointer-events: none;
}

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

.hero-slide .poster {
  height: 100%;
  min-height: 430px;
  border-radius: 0;
}

.hero-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12)),
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 30%);
}

.hero-slide-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 3.1rem);
  line-height: 1.06;
}

.hero-slide-copy p {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.84);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.90);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: 180ms ease;
}

.dot.active {
  width: 30px;
  background: #fff;
}

.section {
  padding: 28px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.2;
}

.section-title .accent {
  color: var(--rose-dark);
}

.section-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}

.section-link {
  color: var(--rose-dark);
  font-weight: 700;
  white-space: nowrap;
}

.section-box {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.chip-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.72rem 0.96rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
  transition: 180ms ease;
}

.chip:hover,
.chip.active {
  transform: translateY(-1px);
  border-color: rgba(225, 29, 72, 0.2);
  box-shadow: 0 12px 26px rgba(225,29,72,0.09);
  color: var(--rose-dark);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
  transition: 220ms ease;
}

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

.movie-card-body {
  padding: 14px 16px 16px;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  padding: 16px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.25), transparent 24%),
    radial-gradient(circle at 72% 30%, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(140deg, var(--c1), var(--c2) 52%, var(--c3));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  filter: blur(3px);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  filter: blur(10px);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(0deg, rgba(15,23,42,0.26), transparent 35%);
}

.poster-top,
.poster-footer,
.poster-meta,
.poster-title {
  position: relative;
  z-index: 1;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}

.badge-soft {
  background: rgba(255,255,255,0.12);
}

.poster-title {
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 10ch;
  text-shadow: 0 8px 18px rgba(0,0,0,0.26);
}

.poster-meta {
  font-size: 0.92rem;
  opacity: 0.92;
}

.poster-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  opacity: 0.88;
}

.banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245,158,11,0.18), transparent 24%),
    linear-gradient(135deg, rgba(15,23,42,0.94), rgba(88,28,135,0.90) 50%, rgba(225,29,72,0.90));
  color: #fff;
  box-shadow: 0 26px 58px rgba(15,23,42,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 24px;
  align-items: center;
}

.banner h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 3rem);
  line-height: 1.08;
}

.banner p {
  color: rgba(255,255,255,0.84);
  margin: 14px 0 0;
}

.banner-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

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

.banner-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0.86rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}

.section-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
  transition: 180ms ease;
}

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

.rank-no {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(225,29,72,0.12), rgba(236,72,153,0.08));
  color: var(--rose-dark);
  font-weight: 900;
  font-size: 1.05rem;
}

.rank-content h3 {
  margin: 0;
  font-size: 1.02rem;
}

.rank-content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-meta {
  color: #94a3b8;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-hero {
  padding: 28px 0 16px;
}

.page-hero-inner {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(245,158,11,0.10), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,247,248,0.78));
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.page-hero-inner h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.08;
}

.page-hero-inner p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  align-items: start;
}

.detail-panel,
.card-panel {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  padding: 20px;
}

.detail-head {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
}

.detail-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  line-height: 1.06;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225,29,72,0.07);
  border: 1px solid rgba(225,29,72,0.12);
  color: var(--rose-dark);
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-copy {
  margin-top: 16px;
  color: var(--muted);
}

.player-shell {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(88,28,135,0.93) 48%, rgba(225,29,72,0.92));
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.18);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-button {
  pointer-events: auto;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--rose-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: 180ms ease;
}

.play-button:hover {
  transform: scale(1.04);
}

.play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.player-hint {
  margin-top: 12px;
  color: rgba(255,255,255,0.84);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.content-section {
  margin-top: 18px;
  padding: 20px;
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0.9rem 1.05rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}

.search-input input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
}

.footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-box {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

.footer small {
  display: block;
}

.kbd {
  font-weight: 700;
  color: var(--rose-dark);
}

.hidden {
  display: none !important;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(225,29,72,0.07);
  border: 1px solid rgba(225,29,72,0.12);
  color: var(--rose-dark);
}

@media (max-width: 1120px) {
  .grid.cards-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .banner-inner, .detail-layout, .detail-head { grid-template-columns: 1fr; }
  .carousel-window { min-height: 0; }
  .hero-slide { position: relative; grid-template-columns: 1fr; }
  .hero-slide .poster { min-height: 360px; border-radius: 24px 24px 0 0; }
  .hero-slide-copy { padding: 22px; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links, .nav-actions .nav-search, .nav-actions .desktop-only { display: none; }
  .grid.cards-4, .grid.cards-3, .grid.cards-2, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-item { grid-template-columns: 42px minmax(0, 1fr); }
  .rank-meta { grid-column: 2 / -1; margin-left: 56px; margin-top: -4px; }
  .detail-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .site-header { position: sticky; }
  .navbar { min-height: 70px; }
  .brand-text span { display: none; }
  .hero { padding-top: 16px; }
  .hero-grid, .section-box, .page-hero-inner, .detail-panel, .content-section, .footer-box { padding: 16px; }
  .hero-shell { border-radius: 24px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy p { font-size: 0.98rem; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 96px; padding: 0.76rem 0.84rem; }
  .grid.cards-5, .grid.cards-4, .grid.cards-3, .grid.cards-2, .related-grid { grid-template-columns: 1fr; }
  .carousel-window { min-height: 0; }
  .hero-slide-copy h2 { font-size: 1.6rem; }
  .play-button { width: 70px; height: 70px; }
  .player-hint { flex-direction: column; }
  .section-head { flex-direction: column; align-items: start; }
}
