:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(245, 158, 11, 0.32);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --faint: #64748b;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-strong: #fbbf24;
  --danger: #f87171;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 5%, rgba(245, 158, 11, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body.lock-scroll {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.nav-shell {
  width: min(100%, var(--max));
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.site-logo strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.site-logo em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--subtle);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.76);
}

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

.nav-link.subtle {
  color: #e2e8f0;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.72);
  color: #fff;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav .nav-link {
  display: block;
  margin: 4px 0;
  padding: 13px 14px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 40%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, transparent 52%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  padding: 56px 24px 72px;
  z-index: 2;
}

.hero-tags,
.hero-actions,
.hero-meta,
.movie-meta-row,
.category-link-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.hero-tags span:first-child {
  color: #1f2937;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 800;
  border-color: transparent;
}

.hero-content h1,
.hero-content h2 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 18px;
}

.hero-content h1 + h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 52px);
  color: #fff7ed;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.75;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-meta {
  margin-top: 16px;
  color: var(--subtle);
  font-size: 14px;
}

.hero-actions {
  margin-top: 26px;
}

.btn-primary,
.btn-ghost,
.search-form button,
.inline-filter button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.search-form button,
.inline-filter button {
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(226, 232, 240, 0.14);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.search-form button:hover,
.inline-filter button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  bottom: 118px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: var(--accent);
}

.search-band {
  width: min(100%, var(--max));
  margin: -36px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.search-band-inner,
.page-hero,
.content-card,
.watch-card,
.info-panel,
.rank-panel,
.category-card-large {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
}

.search-band h2,
.section-title h2,
.rank-panel h2,
.content-card h2,
.info-panel h2,
.watch-heading h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.search-band h2,
.section-title h2,
.rank-panel h2,
.content-card h2,
.info-panel h2 {
  font-size: 26px;
}

.search-band p,
.section-title p,
.page-hero p,
.watch-heading p,
.content-card p,
.info-panel dd,
.category-card-large p {
  color: var(--muted);
  line-height: 1.75;
}

.search-band p,
.section-title p,
.page-hero p,
.watch-heading p {
  margin: 8px 0 0;
}

.search-form,
.inline-filter {
  display: flex;
  gap: 12px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.56);
}

.search-form input,
.inline-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 14px;
}

.search-form input::placeholder,
.inline-filter input::placeholder {
  color: #94a3b8;
}

.search-form button,
.inline-filter button {
  border: 0;
  min-width: 96px;
}

.content-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 24px 0;
}

.no-top-padding {
  padding-top: 0;
}

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

.section-title a,
.rank-panel-head a,
.text-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.text-link {
  min-height: 0;
  padding: 0;
  background: transparent;
}

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

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

.hot-grid,
.compact-grid,
.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.12);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.type-badge,
.score-badge,
.card-year {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 10px;
  color: #1f2937;
  background: var(--accent-strong);
}

.score-badge {
  right: 10px;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--accent-strong);
}

.movie-card-body span {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.movie-card-body em {
  margin-top: auto;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.compact .movie-card-body span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.rank-panel {
  border-radius: var(--radius);
  padding: 22px;
}

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

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.1);
  transform: translateX(4px);
}

.rank-number {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item strong {
  display: block;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent);
}

.category-tile strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px 24px 80px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.17), transparent 24rem),
    rgba(15, 23, 42, 0.82);
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.inline-filter {
  width: 100%;
}

.category-list-large {
  display: grid;
  gap: 18px;
}

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: 24px;
}

.category-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-card-large h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
}

.category-link-row {
  margin: 12px 0 14px;
}

.category-link-row a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.58);
  border: 1px solid var(--line);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--subtle);
  margin-bottom: 20px;
  font-size: 14px;
}

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

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

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

.watch-card,
.content-card,
.info-panel {
  border-radius: 24px;
  padding: 24px;
}

.watch-heading {
  margin-bottom: 22px;
}

.watch-heading h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 30px 80px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.82));
  z-index: 4;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.34);
  font-size: 30px;
  text-indent: 4px;
}

.play-overlay span:last-child {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.72);
  border: 1px solid rgba(248, 113, 113, 0.38);
}

.content-card p {
  margin: 12px 0 0;
  font-size: 16px;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.poster-panel {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

.info-panel dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-panel dt {
  color: var(--faint);
}

.info-panel dd {
  margin: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  color: var(--subtle);
  line-height: 1.7;
}

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

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

.footer-bottom {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 24px 34px;
  color: var(--faint);
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

.empty-state {
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  text-align: center;
}

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

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

  .featured-grid,
  .hot-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-sidebar {
    grid-template-columns: 260px 1fr;
  }
}

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

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

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

  .hero-carousel {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    padding: 42px 20px 82px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
    bottom: 34px;
  }

  .search-band-inner,
  .page-hero,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .search-form,
  .inline-filter {
    border-radius: 18px;
    flex-direction: column;
    padding: 10px;
  }

  .search-form input,
  .inline-filter input {
    min-height: 42px;
  }

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

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

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

  .poster-panel {
    max-width: 320px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .page-shell,
  .content-section,
  .search-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo em {
    display: none;
  }

  .site-logo strong {
    font-size: 18px;
  }

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

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

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

  .movie-card-body strong {
    font-size: 14px;
  }

  .movie-card-body span,
  .movie-card-body em {
    font-size: 12px;
  }

  .watch-card,
  .content-card,
  .info-panel,
  .page-hero {
    padding: 20px;
  }
}
