:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-2: #0b1225;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --gold: #facc15;
  --gold-2: #f97316;
  --blue: #1d4ed8;
  --blue-2: #0f172a;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #082f49 42%, #020617 100%);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.36);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.1) rotate(4deg);
}

.brand-text {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.nav-link,
.nav-pill,
.mobile-link {
  color: rgba(248, 250, 252, 0.82);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  position: relative;
  padding: 8px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-pill {
  padding: 7px 12px;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.74);
  background: rgba(15, 23, 42, 0.36);
}

.nav-pill:hover {
  color: #0f172a;
  background: var(--gold);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-input {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-input:focus {
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
  background: rgba(15, 23, 42, 0.95);
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.mobile-panel {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--gold);
}

.mobile-search {
  padding-top: 14px;
}

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

.hero-slider {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  place-items: stretch;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 110px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
}

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

.hero-overlay,
.page-hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at center, rgba(30, 64, 175, 0.16), transparent 42rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
  animation: fadeIn 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 16px 0 10px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-title-line {
  margin: 0 0 18px;
  color: rgba(248, 250, 252, 0.88);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
}

.hero-copy {
  max-width: 780px;
  margin: 0 auto 30px;
  color: rgba(226, 232, 240, 0.86);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.8;
}

.hero-actions,
.detail-meta,
.tag-row,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 18px 45px rgba(250, 204, 21, 0.22);
}

.btn.ghost {
  color: var(--text);
  border-color: rgba(248, 250, 252, 0.26);
  background: rgba(15, 23, 42, 0.5);
}

.btn.subtle {
  color: var(--gold);
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.08);
}

.btn.mini {
  padding: 8px 15px;
  font-size: 13px;
  color: #0f172a;
  background: var(--gold);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 250, 252, 0.26);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.55);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--gold);
}

.scroll-indicator {
  position: absolute;
  bottom: 82px;
  left: 50%;
  z-index: 4;
  width: 28px;
  height: 48px;
  margin-left: -14px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 9px;
}

.scroll-indicator span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: var(--text);
  animation: pulse 1.4s ease infinite;
}

.section-pad {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

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

.section-head.centered {
  display: block;
  text-align: center;
  max-width: 760px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--gold);
  font-weight: 900;
}

.search-band {
  padding-top: 58px;
  padding-bottom: 38px;
}

.wide-search {
  width: min(760px, 100%);
  margin: 24px auto 0;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}

.wide-search button {
  padding: 16px 24px;
}

.category-grid,
.category-large-grid,
.movie-grid,
.poster-grid {
  display: grid;
  gap: 22px;
}

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

.category-card,
.category-large-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.36), rgba(15, 23, 42, 0.92)),
    var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.category-card {
  padding: 24px;
  min-height: 150px;
}

.category-card span,
.category-large-content strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card small,
.category-large-content small {
  color: var(--muted);
  line-height: 1.7;
}

.category-card:hover,
.category-large-card:hover,
.movie-card:hover,
.poster-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: 0 28px 60px rgba(250, 204, 21, 0.12);
}

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

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

.movie-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.card-cover,
.tile-cover,
.feature-image,
.detail-poster,
.ranking-thumb {
  background-size: cover;
  background-position: center;
}

.card-cover {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background-color: #0f172a;
  transition: transform 0.35s ease;
}

.card-cover::after,
.tile-shade,
.category-large-shade {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(2, 6, 23, 0.88));
}

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

.card-category,
.card-year,
.rank-badge,
.tile-label,
.tile-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-category {
  top: 14px;
  left: 14px;
  color: #0f172a;
  background: var(--gold);
  padding: 7px 11px;
}

.card-year {
  top: 14px;
  right: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
  padding: 6px 10px;
}

.rank-badge {
  left: 14px;
  bottom: 14px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  padding: 8px 12px;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.card-title:hover,
.feature-copy a:hover,
.ranking-copy a:hover {
  color: var(--gold);
}

.card-meta,
.card-summary,
.ranking-copy p,
.ranking-copy small,
.detail-article p,
.feature-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.card-meta {
  font-size: 13px;
  margin: 0 0 8px;
}

.card-summary {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.detail-meta span,
.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(226, 232, 240, 0.84);
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 700;
}

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

.dark-band,
.horizontal-band,
.final-band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.dark-band {
  background: linear-gradient(90deg, rgba(12, 74, 110, 0.34), rgba(2, 6, 23, 0.92));
}

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

.poster-tile {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.tile-cover {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.poster-tile:hover .tile-cover {
  transform: scale(1.09);
}

.tile-rank {
  top: 12px;
  left: 12px;
  color: #0f172a;
  background: var(--gold);
  padding: 7px 11px;
}

.tile-label {
  top: 12px;
  right: 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.66);
  padding: 7px 10px;
}

.tile-content {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.tile-content strong,
.tile-content small {
  display: block;
}

.tile-content strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.tile-content small {
  margin-top: 5px;
  color: rgba(226, 232, 240, 0.76);
}

.feature-list {
  display: grid;
  gap: 34px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.feature-row.is-reverse .feature-image {
  order: 2;
}

.feature-image {
  min-height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(250, 204, 21, 0.16);
}

.feature-copy h3 {
  margin: 12px 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.lead-text {
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: 18px;
  font-weight: 800;
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  flex: 0 0 305px;
  scroll-snap-align: start;
}

.masonry-grid {
  columns: 4 260px;
  column-gap: 22px;
}

.masonry-grid .movie-card {
  break-inside: avoid;
  margin-bottom: 22px;
}

.page-main,
.detail-main {
  background: linear-gradient(180deg, #020617, #082f49 45%, #020617);
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.page-hero-content,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.page-hero p {
  max-width: 720px;
  font-size: 18px;
}

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

.category-large-card {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.category-large-content {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.58);
}

.filter-input {
  width: 100%;
  padding: 14px 18px;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #0f172a;
  border-color: var(--gold);
  background: var(--gold);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--gold);
}

.detail-hero {
  min-height: 610px;
}

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

.detail-poster {
  min-height: 460px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(248, 250, 252, 0.18);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 70px);
  margin-bottom: 16px;
}

.detail-copy .lead-text {
  max-width: 900px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 34px;
}

.player-box {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(250, 204, 21, 0.16);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.18), rgba(2, 6, 23, 0.78));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 45px rgba(250, 204, 21, 0.42);
  font-size: 34px;
}

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

.detail-text-section {
  padding-top: 28px;
}

.detail-article {
  max-width: 980px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.detail-article h2 + p {
  margin-top: 12px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
}

.ranking-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: var(--gold);
  font-weight: 900;
}

.ranking-thumb {
  width: 96px;
  height: 72px;
  border-radius: 14px;
}

.ranking-copy h3 {
  margin: 0 0 4px;
}

.ranking-copy p,
.ranking-copy small {
  display: block;
  margin: 0;
}

.site-footer {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

.hidden-by-filter {
  display: none !important;
}

.empty-message {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.4;
    transform: translateY(8px);
  }
}

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

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

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

@media (max-width: 860px) {
  .hero-slider {
    min-height: 760px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(38px, 12vw, 64px);
  }

  .section-head {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .poster-grid,
  .category-large-grid,
  .ranking-posters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-row,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-row.is-reverse .feature-image {
    order: 0;
  }

  .detail-poster {
    min-height: 420px;
  }

  .ranking-row {
    grid-template-columns: 42px 76px minmax(0, 1fr);
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-slide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .wide-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .wide-search button,
  .mobile-search button {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .section-pad,
  .page-hero-content,
  .detail-hero-inner,
  .player-section,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 24px, 1280px);
  }

  .category-grid,
  .movie-grid,
  .poster-grid,
  .category-large-grid,
  .ranking-posters,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .card-cover {
    height: 300px;
  }

  .poster-tile {
    min-height: 420px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .detail-poster {
    min-height: 360px;
  }

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

  .ranking-thumb {
    display: none;
  }
}
