:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(96, 165, 250, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --yellow: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.45);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  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(30, 64, 175, 0.92), rgba(15, 23, 42, 0.95));
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42);
}

.brand-text {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  color: #dbeafe;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.top-search,
.mobile-search,
.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  outline: none;
  padding: 10px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 250px;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.top-search button,
.mobile-search button,
.search-panel button,
.btn,
.player-action {
  border: 0;
  color: white;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.btn:hover,
.player-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.45);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 8px 11px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
  padding: 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-link {
  padding: 11px 14px;
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-link.active,
.mobile-link:hover {
  color: #67e8f9;
  background: rgba(37, 99, 235, 0.18);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #020617, #172554 55%, #020617);
}

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

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

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

.hero-slide img.is-missing,
.movie-cover img.is-missing,
.detail-poster img.is-missing,
.mini-cover img.is-missing {
  opacity: 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.28) 100%);
}

.hero::after {
  background:
    radial-gradient(circle at 15% 35%, rgba(37, 99, 235, 0.32), transparent 22rem),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  padding: 64px 0;
}

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

.kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero h1 span {
  color: #67e8f9;
}

.hero p {
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 28px;
}

.hero-meta,
.detail-meta,
.meta-row,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.hero-meta span,
.inline-meta span,
.stat-chip,
.detail-meta span {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
}

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

.btn.secondary {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.hero-side {
  align-self: end;
  margin-bottom: 20px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.hero-side h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

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

.hero-mini-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-item:hover {
  transform: translateX(4px);
  background: rgba(37, 99, 235, 0.16);
}

.mini-cover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.12));
}

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

.hero-mini-item strong {
  display: block;
  line-height: 1.25;
}

.hero-mini-item small {
  color: var(--muted);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: max(16px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.36);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.main-wrap,
.page-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.main-wrap {
  padding: 62px 0 78px;
}

.page-wrap {
  padding: 46px 0 78px;
}

.section-block {
  margin-bottom: 72px;
}

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

.section-head h2,
.page-title,
.detail-title {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-more {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.62);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.2);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.25), transparent 40%),
    linear-gradient(135deg, #172554, #020617);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(2, 6, 23, 0.82));
  opacity: 0.95;
}

.duration,
.category-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 5px 9px;
  backdrop-filter: blur(10px);
}

.duration {
  right: 10px;
  top: 10px;
  background: rgba(2, 6, 23, 0.75);
}

.category-pill {
  left: 10px;
  bottom: 10px;
  background: rgba(37, 99, 235, 0.86);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.35);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #67e8f9;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 12px;
}

.tag-row span {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.13);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.75rem;
}

.meta-row {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-row strong {
  color: #fbbf24;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.64);
  padding: 22px;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: radial-gradient(circle at 20% 20%, var(--card-color, #38bdf8), transparent 45%);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.62);
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

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

.category-card strong {
  color: #67e8f9;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.36), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.38));
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

.page-hero p,
.detail-copy p,
.text-panel p {
  color: var(--soft);
}

.filter-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  padding: 16px;
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1 1 320px;
}

.filter-bar select {
  flex: 0 1 180px;
}

.result-note,
.empty-state {
  color: var(--muted);
  margin: 10px 0 24px;
}

.empty-state {
  display: none;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 112px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  padding: 12px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(96, 165, 250, 0.55);
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.ranking-row:nth-child(-n + 3) .ranking-number {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ranking-row img {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #172554, #020617);
}

.ranking-row h3 {
  margin: 0 0 6px;
}

.ranking-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.score-box {
  color: #fbbf24;
  font-weight: 900;
  font-size: 1.2rem;
  white-space: nowrap;
}

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

.player-panel,
.text-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.player-panel {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.28), transparent 42%),
    #020617;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.player-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  padding: 13px 22px;
}

.player-message {
  min-height: 28px;
  color: var(--muted);
  padding: 12px 16px 16px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #172554, #020617);
  box-shadow: 0 20px 58px rgba(2, 6, 23, 0.42);
}

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

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

.breadcrumb a:hover {
  color: #67e8f9;
}

.text-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.text-panel p {
  margin: 0 0 16px;
}

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

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

.side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.side-item:hover {
  background: rgba(37, 99, 235, 0.15);
}

.side-item img {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #172554, #020617);
}

.side-item strong {
  display: block;
  line-height: 1.3;
}

.side-item small {
  color: var(--muted);
}

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.pagination-links a {
  flex: 1;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.58);
}

.pagination-links a:last-child {
  text-align: right;
}

.search-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  padding: 18px;
  margin-bottom: 24px;
}

.search-panel input {
  flex: 1;
  border-radius: 18px;
  padding: 14px 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  padding: 18px;
}

.info-card strong {
  display: block;
  color: #67e8f9;
  font-size: 1.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), #020617);
  padding: 46px 0 24px;
}

.footer-grid,
.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
}

.site-footer a:hover {
  color: #67e8f9;
}

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

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 0.92rem;
}

[data-color="blue"] { --card-color: #3b82f6; }
[data-color="cyan"] { --card-color: #06b6d4; }
[data-color="red"] { --card-color: #ef4444; }
[data-color="yellow"] { --card-color: #f59e0b; }
[data-color="pink"] { --card-color: #ec4899; }
[data-color="orange"] { --card-color: #f97316; }
[data-color="purple"] { --card-color: #a855f7; }
[data-color="violet"] { --card-color: #8b5cf6; }
[data-color="emerald"] { --card-color: #10b981; }
[data-color="green"] { --card-color: #22c55e; }
[data-color="sky"] { --card-color: #0ea5e9; }
[data-color="rose"] { --card-color: #f43f5e; }

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

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

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 560px;
    padding: 46px 0 78px;
  }

  .hero-side {
    display: none;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 42px 92px 1fr;
  }

  .score-box {
    grid-column: 2 / 4;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .main-wrap,
  .page-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

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

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-meta span,
  .detail-meta span {
    font-size: 0.86rem;
  }

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

  .movie-grid,
  .movie-grid.three,
  .category-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    grid-template-columns: 38px 1fr;
  }

  .ranking-row img {
    display: none;
  }

  .score-box {
    grid-column: 2;
  }

  .side-item {
    grid-template-columns: 78px 1fr;
  }
}
