* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --accent: #67e8f9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(14, 165, 233, 0.14), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.52));
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.95);
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.34);
  font-weight: 900;
}

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

.brand-copy strong {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.13);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.hero-carousel {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-top: 76px;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 76px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  align-items: center;
  gap: 46px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.hero-image-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  transform: translateX(-50%) scale(1.04);
  filter: blur(2px) saturate(1.1);
}

.hero-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 100vw;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 45%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 100%);
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 38px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-content h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
}

.hero-content h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
}

.hero-content p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  color: #c7f9ff;
  background: rgba(8, 145, 178, 0.16);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

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

.primary-btn {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 20px 45px rgba(34, 211, 238, 0.24);
}

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

.ghost-btn {
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: var(--text);
  background: rgba(15, 23, 42, 0.62);
}

.ghost-btn.small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.text-btn {
  padding-inline: 8px;
  color: var(--accent);
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: max(18px, calc((100% - 1180px) / 2 - 70px));
}

.hero-next {
  right: max(18px, calc((100% - 1180px) / 2 - 70px));
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-channel-bar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-channel-bar strong {
  white-space: nowrap;
  color: var(--accent);
}

.hero-channel-bar div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-channel-bar a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.12);
}

.section-shell,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 72px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.12;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.row-title {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title.compact {
  margin-bottom: 20px;
}

.section-title.compact h2 {
  font-size: 1.8rem;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
}

.category-tile {
  min-height: 170px;
  padding: 22px;
}

.category-tile::before,
.overview-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after,
.overview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.92));
}

.category-tile:hover::before,
.overview-cover:hover::before {
  opacity: 0.36;
  transform: scale(1.05);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 1.26rem;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: var(--soft);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.75;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.82);
}

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

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

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #04111d;
  background: var(--cyan);
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.3);
}

.card-body {
  padding: 16px;
}

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

.card-meta span {
  min-height: 24px;
  padding: 2px 8px;
  color: var(--soft);
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.75rem;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--accent);
}

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

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 0.74rem;
}

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

.rank-panel,
.recommend-panel,
.content-card,
.related-card,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.rank-panel,
.recommend-panel {
  padding: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 54px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
  border-color: rgba(34, 211, 238, 0.34);
  transform: translateX(4px);
}

.compact-card img {
  width: 54px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.86);
}

.compact-card span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.rank-num,
.ranking-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #04111d;
  background: var(--cyan);
  font-weight: 900;
}

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

.wide-card .poster-link {
  aspect-ratio: 16 / 10;
}

.page-main {
  padding-top: 96px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, 0.18), transparent 24rem),
    rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  margin-top: 24px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.filter-bar,
.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  outline: 0;
}

.filter-bar input,
.search-panel input {
  flex: 1;
  padding: 0 16px;
}

.filter-bar select {
  padding: 0 14px;
}

.search-panel {
  padding: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
}

.overview-cover {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.82);
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 1.5rem;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.1);
}

.page-rank-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.ranking-grid {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.ranking-item .movie-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  width: 100%;
}

.ranking-item .poster-link {
  aspect-ratio: 3 / 4;
}

.ranking-number {
  margin-top: 12px;
}

.sticky-side {
  position: sticky;
  top: 96px;
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  padding-top: 112px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.55)),
    var(--detail-bg) center / cover;
  filter: saturate(1.05);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, #020617 100%);
}

.detail-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.2;
  background: rgba(2, 6, 23, 0.88);
}

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

.detail-copy h1 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
}

.detail-copy .one-line {
  max-width: 760px;
  margin: 20px 0;
  color: var(--soft);
  font-size: 1.12rem;
}

.detail-meta {
  margin-bottom: 16px;
}

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

.detail-section {
  padding-top: 16px;
  padding-bottom: 24px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  color: var(--text);
  background: #020617;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.player-panel.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 70px rgba(34, 211, 238, 0.42);
  font-size: 2rem;
  transform: translate(-50%, -50%);
}

.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 24px;
}

.content-card,
.related-card {
  padding: 28px;
}

.content-card h2,
.related-card h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 1.03rem;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p,
.copyright {
  color: var(--muted);
}

.footer-brand p {
  max-width: 420px;
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--soft);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    padding-bottom: 126px;
  }

  .hero-poster {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 11vw, 4.3rem);
  }

  .hero-content h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-arrow {
    display: none;
  }

  .hero-channel-bar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-layout,
  .page-rank-layout,
  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }

  .detail-grid {
    grid-template-columns: 180px 1fr;
    gap: 22px;
  }

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

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    padding-top: 66px;
  }

  .hero-stage {
    min-height: calc(100vh - 66px);
  }

  .hero-slide,
  .section-shell,
  .page-hero,
  .detail-content,
  .footer-grid,
  .copyright,
  .hero-channel-bar,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    padding-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .text-btn {
    width: 100%;
  }

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

  .row-title,
  .filter-bar,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar select,
  .filter-bar a,
  .search-panel button {
    width: 100%;
  }

  .category-overview-card,
  .ranking-item .movie-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .overview-cover {
    min-height: 180px;
  }

  .detail-hero {
    min-height: auto;
    padding: 100px 0 44px;
  }

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

  .player-panel {
    border-radius: 18px;
  }

  .big-play {
    width: 72px;
    height: 72px;
  }
}
