:root {
  color-scheme: dark;
  --bg: #0f1021;
  --bg-deep: #090a14;
  --panel: rgba(31, 41, 55, 0.62);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --text: #ffffff;
  --muted: #b8bed3;
  --soft: #7e86a3;
  --yellow: #f59e0b;
  --pink: #ec4899;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --green: #10b981;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --container: 1280px;
}

* {
  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", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(124, 58, 237, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 6%, rgba(236, 72, 153, 0.22), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #161228 38%, #0b0d18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(131, 24, 67, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #f472b6);
  border-radius: 999px;
  box-shadow: 0 0 32px rgba(253, 224, 71, 0.4);
}

.logo-text {
  background: linear-gradient(90deg, #fde047, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
}

.desktop-nav > a,
.dropdown-trigger {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.dropdown-trigger:hover {
  color: #fde047;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: 190px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.dropdown-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 250px;
}

.search-form input,
.mobile-search input,
.large-search input,
.filter-panel input {
  width: 100%;
  color: white;
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.2s ease;
}

.search-form input {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px 0 0 999px;
}

.search-form input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(253, 224, 71, 0.55);
}

.search-form button {
  height: 42px;
  padding: 0 16px;
  cursor: pointer;
  border: 0;
  color: #111827;
  background: #f59e0b;
  border-radius: 0 999px 999px 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  padding: 8px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input,
.mobile-search button,
.large-search input,
.large-search button {
  height: 44px;
  border-radius: 12px;
  border: 0;
}

.mobile-search input,
.large-search input {
  padding: 0 14px;
}

.mobile-search button,
.large-search button {
  padding: 0 18px;
  color: #111827;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  font-weight: 800;
  cursor: pointer;
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(236, 72, 153, 0.26), transparent 28rem),
    linear-gradient(to top, #111827 0%, rgba(17, 24, 39, 0.76) 45%, rgba(17, 24, 39, 0.14) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.78), transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  height: 100%;
  margin: 0 auto;
  padding: 0 20px 72px;
  display: flex;
  align-items: flex-end;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde047;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #d7dbea;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 12px;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.26);
  border: 1px solid rgba(216, 180, 254, 0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.28);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.content-section,
.feature-band {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 72px 20px;
}

.feature-band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.26), rgba(15, 118, 110, 0.22));
  border-block: 1px solid var(--line);
}

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

.section-title-row.simple {
  align-items: start;
}

.section-title-row h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-title-row > a {
  color: #facc15;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  color: white;
  background: rgba(31, 41, 55, 0.52);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, background 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(31, 41, 55, 0.86);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.25);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(236, 72, 153, 0.22));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  box-shadow: 0 0 38px rgba(245, 158, 11, 0.5);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.4;
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-meta-row span {
  max-width: 50%;
  overflow: hidden;
  padding: 4px 8px;
  background: rgba(124, 58, 237, 0.19);
  border-radius: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  color: #111827;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.wide-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.category-panel,
.category-overview-card > a {
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(236, 72, 153, 0.15)),
    rgba(17, 24, 39, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-panel:hover,
.category-overview-card > a:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 204, 21, 0.36);
}

.category-count {
  align-self: flex-start;
  padding: 6px 10px;
  color: #111827;
  background: #fde047;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 950;
}

.category-panel strong,
.category-card-body h2 {
  margin-top: 18px;
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.category-panel em,
.category-card-body p {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.mini-covers,
.category-card-covers {
  display: flex;
  margin-top: 18px;
}

.mini-covers img,
.category-card-covers img {
  width: 48px;
  height: 66px;
  object-fit: cover;
  margin-right: -14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

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

.ranking-panel,
.story-card,
.player-card {
  padding: 22px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.compact-card img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
}

.compact-card div {
  min-width: 0;
}

.compact-card strong,
.compact-card span:not(.compact-rank) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card span:not(.compact-rank) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-rank {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  margin-right: 8px;
  color: #111827;
  background: linear-gradient(90deg, #fde047, #fb7185);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
}

.page-hero {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 80px 20px 30px;
}

.compact-hero > div {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(31, 41, 55, 0.82), rgba(17, 24, 39, 0.94));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
}

.large-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 26px;
}

.large-search input {
  flex: 1;
}

.filter-panel {
  margin-bottom: 24px;
}

.filter-panel input {
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
}

.breadcrumb {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #fde047;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 76px 0;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.46;
}

.detail-backdrop div {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #111827 0%, rgba(17, 24, 39, 0.8) 48%, #111827 100%),
    linear-gradient(to top, #111827 0%, transparent 70%);
}

.detail-layout {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.46);
}

.detail-info h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.small-actions .primary-button,
.small-actions .ghost-button {
  min-height: 44px;
  padding-inline: 18px;
}

.detail-content {
  display: grid;
  gap: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  background: black;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.17), transparent 18rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
  border: 0;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde047, #ec4899);
  border-radius: 999px;
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.45);
  font-size: 1.7rem;
}

.player-overlay strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.player-overlay em {
  color: var(--muted);
  font-style: normal;
}

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

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 12px 14px;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.9);
  border: 1px solid rgba(252, 165, 165, 0.4);
  border-radius: 12px;
}

.player-message.is-visible {
  display: block;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.story-card p {
  margin: 0;
  color: #d7dbea;
  line-height: 1.9;
}

.detail-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-table div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.detail-table dt {
  color: var(--soft);
  font-size: 0.84rem;
}

.detail-table dd {
  margin: 6px 0 0;
  color: white;
  font-weight: 800;
}

.related-section {
  margin-top: 22px;
}

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

.rank-card .poster-wrap {
  aspect-ratio: 2 / 3;
}

.category-overview-card > a {
  padding: 0;
}

.category-card-covers {
  margin: 0;
  min-height: 145px;
  align-items: flex-end;
  padding: 22px 22px 0;
}

.category-card-covers img {
  width: 74px;
  height: 104px;
  margin-right: -28px;
}

.category-card-body {
  padding: 0 22px 22px;
}

.category-card-body span {
  color: #fde047;
  font-weight: 900;
}

.site-footer {
  margin-top: 42px;
  color: var(--muted);
  background: rgba(3, 7, 18, 0.88);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: white;
}

.footer-grid p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 0 0 8px;
}

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

.footer-bottom {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 1180px) {
  .six-cols,
  .ranking-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

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

  .header-inner {
    gap: 12px;
  }

  .hero-section {
    min-height: 520px;
  }

  .six-cols,
  .four-cols,
  .ranking-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    padding: 13px 16px;
  }

  .logo {
    font-size: 1.12rem;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

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

  .hero-content {
    padding: 0 16px 46px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.05em;
  }

  .content-section,
  .feature-band,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .six-cols,
  .four-cols,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .detail-hero {
    padding: 40px 0;
  }

  .detail-layout {
    gap: 26px;
  }

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

  .large-search {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .six-cols,
  .four-cols,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .movie-card-body p {
    min-height: auto;
  }
}
