:root {
  color-scheme: dark;
  --bg: #060816;
  --bg-soft: #101426;
  --panel: rgba(18, 22, 40, 0.82);
  --panel-strong: rgba(25, 31, 54, 0.96);
  --text: #f8fafc;
  --muted: #a8b3cf;
  --line: rgba(255, 255, 255, 0.11);
  --brand: #ff365f;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --gold: #fbbf24;
  --radius: 22px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.44);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(255, 54, 95, 0.2), transparent 30rem),
    linear-gradient(180deg, #060816 0%, #0a0d1d 52%, #060816 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.container-xl {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(255, 54, 95, 0.34);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  overflow: hidden;
  width: min(340px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.big-search input,
.filter-panel input {
  min-width: 0;
  flex: 1;
  outline: none;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 11px 14px;
}

.header-search button,
.big-search button,
.filter-panel button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.header-search button {
  padding: 0 18px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-strong);
}

.hero-carousel {
  position: relative;
  min-height: clamp(620px, 78vh, 840px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-bg,
.hero-bg::after,
.detail-hero {
  position: absolute;
  inset: 0;
}

.hero-bg::after,
.detail-hero-mask {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 8, 22, 0.96) 0%, rgba(6, 8, 22, 0.72) 42%, rgba(6, 8, 22, 0.32) 100%),
    linear-gradient(0deg, #060816 0%, transparent 42%);
}

.hero-bg-image,
.detail-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.poster-wrap.is-missing {
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 54, 95, 0.38), rgba(124, 58, 237, 0.42), rgba(6, 182, 212, 0.28));
}

.poster-fallback {
  display: none;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.poster-wrap.is-missing .poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 80% 34%, rgba(255, 54, 95, 0.22), transparent 30rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: clamp(620px, 78vh, 840px);
  padding-block: 96px 120px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fecdd3;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-info p,
.search-band p {
  max-width: 720px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 0.78rem;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 44px rgba(255, 54, 95, 0.35);
}

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

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

.btn-primary.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-glow {
  position: absolute;
  inset: auto 18px 18px;
  height: 32%;
  border-radius: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 54, 95, 0.36));
  filter: blur(18px);
}

.hero-control {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots,
.hero-arrows {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 66px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-arrows button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.search-band {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin-top: -52px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.rank-panel h2,
.text-panel h2,
.side-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.big-search,
.filter-panel {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.big-search input,
.filter-panel input {
  padding: 17px 20px;
}

.big-search button,
.filter-panel button {
  padding: 0 24px;
}

.page-section,
.inner-main {
  padding-block: 60px;
}

.inner-main {
  min-height: 70vh;
}

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

.section-heading.slim {
  align-items: center;
}

.section-heading a,
.result-count {
  color: #fecdd3;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(255, 54, 95, 0.48);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-6px);
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.movie-card .poster-wrap {
  aspect-ratio: 16 / 10.2;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .poster-image {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 54, 95, 0.88);
  box-shadow: 0 10px 30px rgba(255, 54, 95, 0.32);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  font-weight: 950;
  background: linear-gradient(135deg, #fde68a, var(--gold));
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.28);
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-meta-line a {
  color: #fecdd3;
  font-weight: 800;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 4.65em;
  margin-top: 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 13px;
}

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

.mini-category {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 54, 95, 0.16), transparent 50%),
    rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-category:hover {
  border-color: rgba(255, 54, 95, 0.38);
  transform: translateY(-4px);
}

.mini-category strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 950;
}

.mini-category span {
  color: var(--muted);
  line-height: 1.6;
}

.horizontal-rail {
  display: grid;
  grid-auto-columns: minmax(250px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

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

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.side-card,
.text-panel,
.support-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.rank-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-panel ol {
  display: grid;
  gap: 10px;
  margin-block: 20px;
}

.rank-panel li a,
.side-rec-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.055);
}

.rank-panel li span,
.side-rec-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 54, 95, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: #fecdd3;
  font-weight: 800;
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
  content: "/";
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 54, 95, 0.2), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.15), transparent 30rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.filter-panel {
  width: min(760px, 100%);
  margin-top: 28px;
}

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.category-card-large {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card-large:hover {
  border-color: rgba(255, 54, 95, 0.38);
  transform: translateY(-5px);
}

.category-link-fill {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  aspect-ratio: 16 / 10;
  opacity: 0.82;
}

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

.category-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 54px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 22, 0.96));
}

.category-card-copy span {
  color: #fecdd3;
  font-weight: 900;
}

.category-card-copy h2 {
  margin-top: 6px;
  font-size: 1.55rem;
  font-weight: 950;
}

.category-card-copy p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-main {
  min-height: 80vh;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 96px 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-top: 46px;
}

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

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  margin-top: -72px;
  align-items: start;
}

.detail-content,
.detail-sidebar {
  position: relative;
  z-index: 4;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
}

.player-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at center, rgba(255, 54, 95, 0.18), transparent 34rem),
    #020617;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 12px;
  place-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(255, 54, 95, 0.24), rgba(2, 6, 23, 0.62));
  transition: opacity 0.2s ease, pointer-events 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-inline: auto;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 50px rgba(255, 54, 95, 0.38);
}

.player-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-panel,
.side-card {
  margin-top: 20px;
  padding: 24px;
}

.text-panel p {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 1.03rem;
  line-height: 1.95;
}

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

.side-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.side-rec-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-rec-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-rec-list em {
  color: var(--muted);
  font-style: normal;
}

.empty-state,
.search-limit-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.empty-state h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 950;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.support-panel {
  margin-top: 0;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 22, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding-block: 48px;
}

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

.footer-grid section {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-grid h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 950;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

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

  .mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content,
  .search-band,
  .split-feature,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-panel,
  .detail-sidebar {
    position: static;
  }

  .detail-content-grid {
    margin-top: -36px;
  }
}

@media (max-width: 760px) {
  .container-xl {
    width: min(100% - 22px, 1240px);
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 64px;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
  }

  .mobile-panel.is-open,
  .mini-category-grid,
  .movie-grid,
  .category-large-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-content {
    min-height: 650px;
  }

  .hero-content {
    padding-block: 110px 120px;
  }

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

  .hero-control {
    bottom: 22px;
  }

  .hero-arrows {
    display: none;
  }

  .search-band,
  .page-hero,
  .text-panel,
  .side-card,
  .rank-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .big-search,
  .filter-panel {
    display: grid;
    border-radius: 22px;
  }

  .big-search button,
  .filter-panel button {
    min-height: 48px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    margin-top: 24px;
  }

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

  .footer-bottom {
    display: grid;
  }
}
