:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --panel-strong: #111827;
  --line: rgba(34, 211, 238, 0.18);
  --line-strong: rgba(34, 211, 238, 0.36);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.12), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.18);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.brand-text strong {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: rgba(34, 211, 238, 0.82);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.14);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
}

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

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

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

.hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 88px 0 56px;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #020617 0%, #0f172a 46%, #164e63 100%);
}

.hero-bg::after,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), #020617 92%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.28;
  animation: floatGlow 7s ease-in-out infinite;
}

.glow-a {
  top: 14%;
  left: 9%;
  width: 250px;
  height: 250px;
  background: var(--cyan);
}

.glow-b {
  right: 8%;
  bottom: 12%;
  width: 320px;
  height: 320px;
  background: var(--blue);
  animation-delay: 1.3s;
}

.glow-c {
  left: 42%;
  bottom: 8%;
  width: 180px;
  height: 180px;
  background: #06b6d4;
  animation-delay: 2.2s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

.hero-inner {
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.45s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ffffff, #cffafe 55%, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2.1vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-meta,
.rank-tags,
.card-meta,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.rank-tags span,
.rank-tags a,
.card-meta span,
.card-meta a,
.hero-stats span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(14px);
}

.hero-tags span,
.detail-meta span,
.rank-tags span,
.rank-tags a {
  padding: 7px 11px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.search-panel button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.search-panel button {
  padding: 0 20px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.22);
  cursor: pointer;
}

.primary-btn:hover,
.search-panel button:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  padding: 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #cffafe;
  background: rgba(15, 23, 42, 0.54);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 60px rgba(34, 211, 238, 0.12);
}

.hero-poster img {
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.88));
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.hero-controls {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-controls button {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.26);
  cursor: pointer;
}

.hero-controls button.is-active {
  background: var(--cyan);
}

.hero-search {
  margin-top: 28px;
  max-width: 720px;
}

.search-panel {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.search-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
}

.search-panel input::placeholder {
  color: #64748b;
}

.hero-stats {
  margin-top: 14px;
}

.hero-stats span {
  padding: 8px 12px;
  color: var(--soft);
  font-size: 13px;
}

.hero-stats strong {
  color: var(--cyan);
}

.content-section,
.page-hero,
.detail-hero {
  padding: 72px 0;
}

.section-gradient {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(2, 6, 23, 0.62));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.inline-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  color: var(--text);
}

.section-heading h2,
.story-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.story-card p,
.site-footer p,
.category-overview-body p,
.category-tile p {
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  min-width: max-content;
  padding: 0 15px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.07);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), 0 0 35px rgba(34, 211, 238, 0.08);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

.movie-card.large .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
  opacity: 0.9;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.9));
}

.year-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.86);
  font-size: 12px;
}

.rank-no {
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #020617;
  background: linear-gradient(135deg, #67e8f9, #fef08a);
  font-size: 14px;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.86);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.play-dot svg,
.player-start svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 7px;
  margin-bottom: 10px;
}

.card-meta span,
.card-meta a {
  padding: 5px 8px;
  color: #bae6fd;
  font-size: 12px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 10px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.large .card-body h3 {
  font-size: 22px;
}

.card-body h3 a:hover,
.rank-title-line a:hover {
  color: var(--cyan);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.large .card-body p {
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 80px 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-index {
  color: var(--cyan);
  font-size: 30px;
  font-weight: 950;
}

.rank-title-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.rank-title-line h3 {
  margin: 0;
  font-size: 20px;
}

.rank-title-line span {
  color: #fef08a;
  font-size: 13px;
  font-weight: 800;
}

.rank-main p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

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

.category-tile,
.category-overview-card,
.story-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.category-tile {
  min-height: 172px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile span {
  color: var(--cyan);
  font-weight: 800;
}

.category-preview {
  margin-top: 56px;
}

.page-hero.compact {
  padding: 72px 0 54px;
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.82), rgba(2, 6, 23, 0.95));
}

.page-hero h1 {
  max-width: 900px;
}

.category-overview-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  height: 150px;
  background: #020617;
}

.category-covers img {
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 18px;
}

.category-overview-body span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.category-overview-body h2 {
  margin: 8px 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.toolbar .search-panel {
  max-width: 640px;
}

.toolbar-count {
  min-width: max-content;
  color: var(--muted);
  font-weight: 800;
}

.toolbar-count span {
  color: var(--cyan);
}

.sticky-toolbar {
  position: sticky;
  top: 92px;
  z-index: 40;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(16px);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.detail-hero {
  padding: 54px 0 72px;
}

.detail-bg {
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
}

.detail-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(24px);
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  color: #fff;
  background: none;
  font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  margin: 18px 0;
}

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

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

.movie-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow), 0 0 70px rgba(34, 211, 238, 0.09);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.46) 54%, rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.movie-player.is-playing .player-start {
  display: none;
}

.play-ring {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 46px rgba(34, 211, 238, 0.24);
  transition: transform 0.2s ease;
}

.player-start:hover .play-ring {
  transform: scale(1.08);
}

.player-start > span:last-child {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.story-card p {
  margin-bottom: 0;
  white-space: pre-line;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: white;
  font-size: 22px;
  font-weight: 950;
}

.site-footer h2 {
  font-size: 16px;
}

.site-footer ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  color: #64748b;
  font-size: 13px;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .detail-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    min-height: 420px;
  }

  .hero-poster img {
    min-height: 420px;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-poster {
    margin-top: 30px;
    max-width: none;
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .search-panel,
  .toolbar,
  .inline-heading,
  .footer-bottom,
  .rank-title-line {
    align-items: stretch;
    flex-direction: column;
  }

  .search-panel button {
    width: 100%;
  }

  .content-section,
  .page-hero,
  .detail-hero {
    padding: 50px 0;
  }

  .movie-grid,
  .featured-grid,
  .mini-grid,
  .category-tile-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card.large .card-cover {
    aspect-ratio: 3 / 4;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h3,
  .movie-card.large .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    font-size: 13px;
  }

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

  .rank-index {
    display: none;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-cover {
    max-width: 260px;
  }

  .detail-one-line {
    font-size: 17px;
  }

  .story-card {
    padding: 22px;
  }

  .footer-grid {
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .featured-grid,
  .mini-grid,
  .category-tile-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

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