
:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --line: rgba(168, 85, 247, 0.22);
  --line-strong: rgba(216, 180, 254, 0.45);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --purple: #a855f7;
  --purple-dark: #7e22ce;
  --pink: #ec4899;
  --red: #ef4444;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.5);
  --radius: 24px;
  --container: min(1200px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 34, 206, 0.34), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.2), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.header-inner {
  width: var(--container);
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.3);
}

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

.nav-link,
.main-nav > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.main-nav > a:hover,
.dropdown-toggle:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.18);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  width: var(--container);
  min-height: 620px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-track,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 52px;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.78), rgba(88, 28, 135, 0.62)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.1));
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) saturate(1.25) brightness(0.6);
  transform: scale(1.08);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(216, 180, 254, 0.4);
  border-radius: 999px;
  color: #f0abfc;
  background: rgba(88, 28, 135, 0.32);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.channel-hero h1,
.detail-info h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.channel-copy p,
.detail-one-line {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  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(--purple), var(--pink));
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.32);
}

.btn-secondary {
  color: #fff;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}

.full-width {
  width: 100%;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.stat-strip {
  width: var(--container);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat-card span {
  color: var(--weak);
}

.content-section,
.page-hero,
.channel-hero,
.detail-layout {
  width: var(--container);
  margin: 52px auto;
}

.content-section:last-child {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-heading a,
.rank-head a {
  color: #c084fc;
  font-weight: 700;
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 26px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.52));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(216, 180, 254, 0.45);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

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

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

.quality-badge,
.play-float {
  position: absolute;
  z-index: 2;
}

.quality-badge {
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-size: 12px;
  font-weight: 800;
}

.play-float {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(10px);
}

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

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover,
.wide-body h3 a:hover {
  color: #d8b4fe;
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--weak);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.category-pill,
.wide-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(126, 34, 206, 0.22);
  font-size: 12px;
}

.category-pill {
  margin-top: 12px;
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.16);
}

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

.movie-card-compact h3 {
  font-size: 16px;
}

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

.section-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
}

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 800;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  background: rgba(168, 85, 247, 0.16);
  transform: translateX(3px);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--gold));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-meta {
  grid-column: 2 / 3;
  color: var(--weak);
  font-size: 12px;
}

.rank-score {
  grid-row: 1 / span 2;
  grid-column: 3 / 4;
  color: #f0abfc;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111827;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.category-card-bg,
.category-card-mask {
  position: absolute;
  inset: 0;
}

.category-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) brightness(0.55);
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card-mask {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(88, 28, 135, 0.18));
}

.category-name,
.category-count,
.category-desc {
  position: relative;
  z-index: 2;
}

.category-name {
  font-size: 22px;
  font-weight: 900;
}

.category-count {
  color: #f0abfc;
  font-size: 14px;
  font-weight: 700;
}

.category-desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.wide-poster {
  overflow: hidden;
  border-radius: 18px;
}

.wide-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.wide-body h3 {
  margin: 10px 0 0;
  font-size: 22px;
}

.wide-body p {
  color: var(--muted);
}

.page-hero,
.channel-hero {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.25), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(88, 28, 135, 0.54));
  box-shadow: var(--shadow);
}

.compact-page-hero {
  margin-top: 32px;
}

.page-hero h1,
.channel-hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 5vw, 60px);
}

.filter-bar {
  max-width: 720px;
  margin-top: 28px;
}

.filter-bar input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: #fff;
  outline: none;
  background: rgba(2, 6, 23, 0.52);
}

.filter-bar input:focus {
  border-color: #e879f9;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.result-count {
  color: var(--weak);
}

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

.channel-visual {
  overflow: hidden;
  border-radius: 26px;
  transform: rotate(2deg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.channel-hero-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

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

.rank-note-panel h2 {
  margin-top: 0;
}

.rank-note-panel p {
  color: var(--muted);
}

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

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

.detail-backdrop::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, #020617, transparent 55%);
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.2) brightness(0.54);
  transform: scale(1.08);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 54px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.detail-poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--weak);
  font-size: 14px;
}

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

.detail-info h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.09);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-section,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.18);
}

.player-section {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 150px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 18px 44px rgba(168, 85, 247, 0.38);
  cursor: pointer;
  font-weight: 900;
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  padding: 12px 16px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.36);
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: var(--weak);
  font-size: 13px;
}

.text-panel {
  padding: 24px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.large-tags span {
  font-size: 13px;
}

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

.sitemap-section {
  display: grid;
  gap: 22px;
}

.sitemap-main-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.sitemap-main-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #f0abfc;
  background: rgba(126, 34, 206, 0.2);
}

.sitemap-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.sitemap-group h2 {
  margin: 0 0 14px;
}

.sitemap-group ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group a {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-group a:hover {
  color: #d8b4fe;
}

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

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--weak);
}

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

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

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

[data-filter-hidden="true"] {
  display: none !important;
}

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

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

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

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

  .detail-sidebar {
    display: none;
  }

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

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

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

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

  .hero {
    min-height: 700px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 34px 24px 78px;
  }

  .hero-poster {
    width: 180px;
    margin-left: auto;
    transform: none;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

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

  .movie-grid,
  .small-grid,
  .top-three-grid,
  .expanded-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .wide-card-list {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .channel-hero,
  .detail-shell {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .channel-hero {
    padding: 34px 24px;
  }

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

@media (max-width: 560px) {
  :root {
    --container: min(100% - 20px, 1200px);
  }

  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .hero h1,
  .page-hero h1,
  .channel-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .channel-copy p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .small-grid,
  .top-three-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card .poster-img {
    height: 100%;
    min-height: 184px;
  }

  .movie-desc {
    -webkit-line-clamp: 3;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sitemap-group ul {
    grid-template-columns: 1fr;
  }
}
