:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-deep: #020617;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #ea580c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 36rem),
    linear-gradient(180deg, #0f172a 0%, #020617 36%, #000 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.header-inner,
.category-strip-inner,
.footer-grid,
.content-section,
.detail-layout {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-light), var(--orange));
  color: #fff;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

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

.brand-text strong,
.footer-brand span:last-child {
  font-size: 1.22rem;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.18);
}

.category-strip {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.category-strip-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 12px;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-strip a:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--line);
}

.hero-carousel {
  position: relative;
  background: #020617;
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 42px;
  padding: 72px max(32px, calc((100vw - var(--max-width)) / 2));
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.5s ease, transform 0.8s ease;
}

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

.hero-content {
  width: min(760px, 100%);
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.42);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-info p {
  max-width: 760px;
  color: #d1d5db;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.75;
}

.hero-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.hero-meta {
  margin: 22px 0 0;
}

.hero-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.ghost-button {
  color: #fff;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  max-height: 470px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-50%) scale(1.06);
}

.hero-control.prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 22px;
  transform: translateY(-50%);
}

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

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

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

.content-section {
  padding: 58px 0;
}

.tinted-section {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.42));
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-topline .section-heading {
  margin-bottom: 0;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.25);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.text-link {
  color: #fbbf24;
  font-weight: 700;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.22), transparent 58%),
    linear-gradient(135deg, #1e293b, #020617);
}

.horizontal-card {
  flex-direction: row;
}

.horizontal-card .poster-wrap {
  width: 42%;
  min-width: 160px;
  aspect-ratio: 16 / 10;
}

.compact-card {
  flex-direction: row;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-card:hover {
  transform: none;
  box-shadow: none;
}

.compact-card .poster-wrap {
  width: 105px;
  min-width: 105px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.poster-wrap img {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 2.2rem;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-info h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 9px;
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-info p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.75);
  font-size: 0.76rem;
}

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

.category-card,
.category-overview-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(2, 6, 23, 0.98));
  transition: all 0.25s ease;
}

.category-card {
  padding: 22px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: var(--shadow);
}

.category-card strong,
.category-overview-info h2 {
  display: block;
  color: #fff;
  font-size: 1.18rem;
}

.category-card span,
.category-overview-info span {
  display: block;
  margin-top: 8px;
  color: #fbbf24;
  font-weight: 700;
}

.category-card em,
.category-overview-info p {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.ranking-section {
  width: 100%;
  max-width: none;
  padding: 58px max(16px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(30, 41, 59, 0.45));
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.ranking-list li,
.ranking-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 1.2rem;
  font-weight: 800;
}

.cta-section {
  margin-bottom: 58px;
  padding: 58px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.cta-section p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.cta-actions {
  justify-content: center;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.small-hero {
  padding: 72px max(16px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.small-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

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

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 150px;
  background: #0f172a;
}

.category-overview-info {
  padding: 20px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.search-box,
.global-search-box {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 700;
}

.search-box input,
.global-search-box input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  outline: none;
  background: rgba(2, 6, 23, 0.72);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.global-search-box input:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.86);
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.64);
  background: rgba(245, 158, 11, 0.2);
}

.result-count {
  margin: 0 0 18px;
  color: #fbbf24;
  font-weight: 700;
}

.ranking-cover {
  width: 112px;
  min-width: 112px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.ranking-main {
  flex: 1;
  min-width: 0;
}

.ranking-main h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.ranking-main p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-section .global-search-box {
  margin-bottom: 20px;
}

.detail-hero {
  padding: 30px max(16px, calc((100vw - var(--max-width)) / 2)) 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fbbf24;
}

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

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.detail-tags {
  margin-top: 18px;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 2.4rem;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
}

.player-overlay strong {
  font-size: 1.15rem;
}

.player-shell.playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.detail-block {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.74);
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-block p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
  white-space: pre-line;
}

.info-table dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 0;
}

.info-table dt {
  color: var(--muted);
}

.info-table dd {
  margin: 0;
  color: #fff;
}

.info-table a {
  color: #fbbf24;
}

.detail-side {
  position: sticky;
  top: 126px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.74);
}

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

.side-card-list .movie-card {
  flex-direction: row;
}

.side-card-list .poster-wrap {
  width: 112px;
  min-width: 112px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #020617, #000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-grid a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px 16px 26px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 86px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .category-strip-inner,
  .footer-grid,
  .content-section,
  .detail-layout {
    width: min(100% - 24px, var(--max-width));
  }

  .category-strip-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-stage {
    height: 560px;
  }

  .hero-slide {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-control {
    display: none;
  }

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

  .horizontal-card {
    flex-direction: column;
  }

  .horizontal-card .poster-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 210px;
  }

  .ranking-row {
    align-items: flex-start;
  }

  .ranking-cover {
    width: 78px;
    min-width: 78px;
  }

  .small-button {
    display: none;
  }

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

@media (max-width: 480px) {
  .brand-text small {
    display: none;
  }

  .movie-grid,
  .horizontal-grid {
    grid-template-columns: 1fr;
  }

  .card-info h3 {
    min-height: 0;
  }

  .ranking-list li,
  .ranking-row {
    gap: 10px;
    padding: 10px;
  }

  .rank-num {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
