* {
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --cyan-500: #06b6d4;
  --blue-700: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500), var(--blue-700));
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28);
}

.brand-text {
  font-size: 1.22rem;
  background: linear-gradient(90deg, var(--sky-600), #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--sky-600);
  background: var(--sky-50);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-input {
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--sky-600);
  padding: 10px 16px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--sky-50);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--sky-600);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

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

.mobile-panel-inner {
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(14, 165, 233, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
  padding: 72px 0 120px;
}

.hero-copy {
  max-width: 760px;
  animation: fade-in 0.7s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: var(--sky-100);
}

.hero-kicker {
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.32);
}

.eyebrow.light {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p,
.detail-copy p {
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 650;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.movie-tags span {
  color: #075985;
  background: var(--sky-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 780;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.28);
}

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

.btn.light {
  color: #075985;
  background: #fff;
}

.hero-poster {
  display: block;
  border-radius: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  font-size: 2rem;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.hero-thumbs {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: -86px;
  padding-bottom: 38px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-thumb.active {
  background: rgba(14, 165, 233, 0.28);
  border-color: rgba(125, 211, 252, 0.45);
}

.hero-thumb img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.intro-strip,
.section-block {
  margin-top: 46px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-heading h2,
.filter-head h2,
.ranking-copy h2,
.content-card h2,
.side-card h2 {
  margin: 8px 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.intro-strip p,
.section-heading p,
.filter-head p,
.ranking-copy p,
.content-card p,
.side-card p {
  color: var(--muted);
}

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

.section-heading > a {
  color: var(--sky-600);
  font-weight: 750;
}

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

.category-tile {
  display: block;
  min-height: 152px;
  border-radius: 22px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.category-tile span {
  color: var(--sky-600);
  font-size: 1.2rem;
  font-weight: 820;
}

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

.filter-panel {
  margin-bottom: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.filter-head p {
  margin: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #475569;
  background: #fff;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  color: #fff;
  background: var(--sky-600);
  border-color: var(--sky-600);
}

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

.movie-grid.dense-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 165, 233, 0.86);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.ranking-row h3 a:hover {
  color: var(--sky-600);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.86rem;
}

.movie-meta span,
.rank-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1f5f9;
}

.ranking-band {
  margin-top: 58px;
  padding: 62px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.36), transparent 28%),
    linear-gradient(135deg, #0f172a, #075985 62%, #0891b2);
}

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

.ranking-copy p {
  color: #dbeafe;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.ranking-band .ranking-row {
  background: rgba(255, 255, 255, 0.96);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.rank-poster img {
  width: 78px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

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

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.page-hero {
  min-height: 340px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.32), transparent 32%),
    linear-gradient(135deg, #020617, #075985);
}

.soft-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.34), transparent 28%),
    linear-gradient(135deg, #082f49, #0f172a);
}

.ranking-hero {
  background:
    radial-gradient(circle at 70% 18%, rgba(125, 211, 252, 0.32), transparent 30%),
    linear-gradient(135deg, #111827, #0c4a6e);
}

.page-hero-inner {
  padding: 70px 0;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 0.92rem;
}

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

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-card-large {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.1));
}

.category-card-large div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.category-card-large span {
  color: #bae6fd;
  font-weight: 750;
}

.category-card-large h2 {
  margin: 6px 0 8px;
}

.category-card-large p {
  margin: 0;
  color: #dbeafe;
}

.detail-hero {
  min-height: 620px;
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 56px 0 70px;
}

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

.detail-cover {
  display: block;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.detail-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  margin-top: -74px;
  position: relative;
  z-index: 4;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.05rem;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
}

.player-status.show {
  opacity: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 36px;
}

.detail-article,
.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.content-card,
.side-card {
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 1.03rem;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.side-card dd {
  margin: -8px 0 0;
  font-weight: 720;
}

.side-category {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-weight: 750;
}

.related-block {
  margin-bottom: 58px;
}

.compact-card .movie-card-body {
  padding: 13px;
}

.compact-card h3 {
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 70px;
  padding: 56px 0 28px;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 1.28rem;
}

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

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .movie-grid.dense-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-stage,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 54px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -112px;
  }

  .intro-strip,
  .section-heading,
  .filter-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .category-large-grid,
  .movie-grid,
  .movie-grid.dense-grid,
  .ranking-layout,
  .full-ranking,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1280px);
  }

  .nav-wrap {
    min-height: 64px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: clamp(2.2rem, 15vw, 3.6rem);
  }

  .hero-stage,
  .hero-content {
    min-height: 700px;
  }

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

  .movie-grid,
  .movie-grid.dense-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .movie-card p {
    min-height: 42px;
    font-size: 0.86rem;
  }

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

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.86rem;
  }

  .rank-poster img {
    width: 60px;
    height: 80px;
  }

  .filter-input,
  .mobile-search input {
    width: 100%;
  }

  .mobile-search {
    display: grid;
  }
}
