:root {
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #111827;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --emerald-bright: #34d399;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #f8fafc 100%);
  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;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.98));
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #06281d;
  background: linear-gradient(135deg, var(--emerald-bright), #a7f3d0);
  box-shadow: 0 12px 32px rgba(52, 211, 153, 0.35);
  font-size: 18px;
}

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

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.05em;
}

.brand-copy small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.86);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.local-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.local-search input {
  width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.local-search input {
  color: var(--ink);
  background: #ffffff;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search input:focus {
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--emerald);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.86);
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.62);
}

.mobile-link.muted {
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.18);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: saturate(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(16, 185, 129, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.26) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.45) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  align-items: center;
  gap: 64px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #064e3b;
  background: var(--emerald-soft);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.detail-tags span {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-button {
  color: #ffffff;
  background: var(--emerald);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.28);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(16px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  padding: 14px 16px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.62;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: var(--emerald-bright);
}

.hero-belt {
  width: min(1240px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-belt-copy span,
.section-head a {
  color: var(--emerald);
  font-weight: 800;
}

.hero-belt-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.inner-page {
  padding-top: 30px;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}

.stats-panel div {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.stats-panel strong {
  display: block;
  color: var(--emerald);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.stats-panel span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-head.tight {
  margin-bottom: 18px;
}

.section-head h2,
.page-hero h1,
.detail-main-copy h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.72) 100%);
  opacity: 0.85;
}

.play-chip,
.duration-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.play-chip {
  left: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  color: #064e3b;
  background: var(--emerald-bright);
}

.duration-chip {
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

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

.eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-card.compact {
  flex-direction: row;
  min-width: 280px;
  border-radius: 18px;
}

.movie-card.compact .poster-wrap {
  width: 118px;
  flex: 0 0 118px;
  aspect-ratio: auto;
}

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

.movie-card.compact strong {
  min-height: auto;
  font-size: 15px;
}

.movie-card.compact .card-line {
  min-height: auto;
  -webkit-line-clamp: 1;
}

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

.glass-section {
  border-radius: 32px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.72), rgba(240, 253, 250, 0.88));
}

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

.category-pill,
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-pill:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.category-pill strong,
.category-card strong {
  font-size: 22px;
}

.category-pill span,
.category-card small {
  margin-top: 10px;
  color: var(--muted);
}

.category-card-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-card-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 36px 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: #ecfdf5;
  transform: translateX(4px);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--dark);
  font-weight: 900;
}

.ranking-row img {
  width: 68px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy small {
  color: var(--muted);
  font-size: 12px;
}

.ranking-score {
  color: var(--emerald);
  font-weight: 900;
}

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

.inline-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: var(--emerald);
  background: var(--emerald);
}

.result-empty {
  border: 1px dashed #94a3b8;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #cbd5e1;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  margin-bottom: 44px;
  padding: 44px;
  background:
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.24), transparent 30%),
    linear-gradient(135deg, #ffffff, #ecfdf5);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.category-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.category-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.detail-one-line {
  max-width: 820px;
  color: #334155;
  font-size: 20px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-stats span {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
}

.detail-stats strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.player-section {
  margin-top: 48px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #064e3b;
  background: var(--emerald-bright);
  box-shadow: 0 20px 48px rgba(52, 211, 153, 0.28);
  font-size: 32px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 42px 0 60px;
}

.article-card h2 {
  margin: 12px 0 14px;
  font-size: 28px;
}

.article-card p {
  color: #334155;
  font-size: 17px;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

.footer-list a:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 20px 0 28px;
  color: #64748b;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.28);
  cursor: pointer;
}

.back-top.visible {
  display: block;
}

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

@media (max-width: 1180px) {
  .all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .full-ranking {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-shell {
    min-height: 66px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .hero-poster {
    display: none;
  }

  .hero-belt {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

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

  .stats-panel,
  .featured-grid,
  .latest-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover img,
  .category-hero img {
    max-width: 360px;
  }

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

  .inline-filter {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-copy h1 {
    font-size: 40px;
  }

  .page-shell {
    width: min(100% - 22px, 1240px);
    padding-top: 38px;
  }

  .hero-belt,
  .page-hero,
  .detail-hero,
  .glass-section,
  .ranking-panel,
  .article-card {
    border-radius: 22px;
    padding: 18px;
  }

  .stats-panel,
  .featured-grid,
  .latest-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .content-grid,
  .mini-strip,
  .related-strip {
    grid-template-columns: 1fr;
  }

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

  .movie-card.compact {
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-panel nav {
    grid-template-columns: 1fr;
  }
}
