* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(59, 130, 246, 0.22);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #000000 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.nav-container {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.34);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  color: #e2e8f0;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 250px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(96, 165, 250, 0.86);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  font-weight: 750;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.95);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1s ease;
  pointer-events: none;
}

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

.hero-bg,
.detail-bg,
.channel-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.66) 44%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, #020617 0%, transparent 42%),
    radial-gradient(circle at 70% 20%, rgba(37, 99, 235, 0.18), transparent 34rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 750;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.detail-copy h1,
.sub-hero h1,
.channel-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p,
.detail-copy p,
.sub-hero p,
.channel-content p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.hero-meta span,
.detail-meta span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-actions,
.detail-copy .primary-btn {
  margin-top: 10px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
}

.ghost-btn {
  margin-left: 10px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

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

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
}

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

.page-stack {
  display: grid;
  gap: 72px;
  padding: 72px 0;
}

.content-section {
  margin-top: 0;
}

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

.section-heading > div {
  position: relative;
  padding-left: 18px;
}

.section-kicker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.section-heading h2,
.rated-panel h2,
.story-panel h2,
.map-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-heading p,
.rated-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: #60a5fa;
  font-weight: 750;
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  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.5);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.18));
}

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

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

.poster-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.72));
}

.poster-badge,
.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.poster-badge {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.82);
}

.duration-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: -10px;
  top: -10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.26);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #60a5fa;
}

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
}

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

.tag-row span {
  color: #bfdbfe;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(37, 99, 235, 0.16);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

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

.rated-panel,
.story-panel,
.player-card,
.category-overview-card,
.map-section {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: var(--shadow);
}

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

.rated-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.rated-row {
  display: grid;
  grid-template-columns: 28px 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
}

.rated-row img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.rated-row span {
  color: #60a5fa;
  font-weight: 850;
}

.rated-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rated-row em {
  color: #facc15;
  font-style: normal;
  font-weight: 800;
}

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

.category-tile,
.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.category-tile {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.72);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

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

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

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

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: #67e8f9;
  font-style: normal;
  font-weight: 750;
}

.category-tile p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}

.sub-hero,
.channel-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.sub-hero {
  padding: 82px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.24), transparent 32rem),
    linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.86));
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
}

.sub-hero span,
.channel-content span {
  color: #67e8f9;
  font-weight: 800;
}

.sub-hero h1,
.channel-content h1 {
  max-width: 820px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-cover {
  min-height: 190px;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
}

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

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-links a {
  max-width: 100%;
  color: #bfdbfe;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.channel-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
}

.channel-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.8)),
    linear-gradient(0deg, #020617, transparent 60%);
}

.channel-content {
  position: relative;
  z-index: 1;
}

.channel-content strong {
  display: inline-flex;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 42px 0 24px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  min-width: min(280px, 100%);
  color: #cbd5e1;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 11px 14px;
}

.filter-count {
  color: #67e8f9;
  font-weight: 800;
  margin-left: auto;
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.36)),
    linear-gradient(0deg, #020617, transparent 62%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  margin-bottom: 26px;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #60a5fa;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: var(--shadow);
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.player-card {
  padding: 18px;
  margin: 64px 0 28px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.36);
}

.player-overlay strong {
  font-size: 20px;
}

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

.player-status {
  margin-top: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 64px;
}

.story-panel {
  padding: 26px;
}

.story-panel p {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 16px;
}

.search-page-form {
  max-width: 720px;
  margin-top: 28px;
}

.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 15px 18px;
}

.search-status {
  margin: 42px 0 24px;
  color: #bfdbfe;
  font-weight: 750;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 58px 0 72px;
}

.map-section {
  padding: 22px;
}

.map-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.map-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.map-section li a {
  display: block;
  color: #dbeafe;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-section li a:hover {
  color: #60a5fa;
}

.map-section li span {
  color: #64748b;
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #94a3b8;
}

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

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

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

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.accent-blue,
.accent-cyan,
.accent-emerald,
.accent-violet,
.accent-rose,
.accent-amber,
.accent-orange,
.accent-pink,
.accent-red,
.accent-lime {
  --accent: #2563eb;
}

.accent-cyan { --accent: #06b6d4; }
.accent-emerald { --accent: #10b981; }
.accent-violet { --accent: #8b5cf6; }
.accent-rose { --accent: #f43f5e; }
.accent-amber { --accent: #f59e0b; }
.accent-orange { --accent: #f97316; }
.accent-pink { --accent: #ec4899; }
.accent-red { --accent: #ef4444; }
.accent-lime { --accent: #84cc16; }

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

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

  .hero-poster {
    display: none;
  }

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

  .hot-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rated-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .sub-hero h1,
  .channel-content h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-copy p,
  .detail-copy p,
  .sub-hero p,
  .channel-content p {
    font-size: 16px;
  }

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

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

  .category-cover {
    min-height: 220px;
  }

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

  .filter-count {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-container {
    height: 62px;
  }

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

  .hero-carousel {
    height: 520px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .page-stack {
    padding: 46px 0;
    gap: 50px;
  }

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

  .movie-grid,
  .movie-grid.two-col,
  .category-grid,
  .category-overview-grid,
  .map-grid,
  .map-section ul {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    aspect-ratio: 16 / 9;
  }

  .sub-hero {
    padding: 58px 0;
  }

  .filter-bar label {
    min-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}
