:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(8, 145, 178, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(37, 99, 235, 0.20), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.24);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--muted-strong);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
}

.header-search input,
.quick-search input,
.filter-bar input,
.search-console input,
.search-console select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

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

.header-search button,
.quick-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.header-search button {
  align-self: stretch;
  padding: 0 16px;
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.66);
}

.hero-shell {
  position: relative;
  height: min(760px, calc(100vh - 72px));
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: clamp(120px, 20vh, 210px);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.tag-row,
.category-pills,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags a,
.tag-row span,
.category-pills a,
.filter-buttons button,
.type-pill,
.rank-badge {
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.14);
}

.hero-tags span,
.detail-tags a,
.category-pills a {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 34px rgba(34, 211, 238, 0.24);
}

.ghost-btn,
.section-more {
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.70);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-thumbs {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 84px;
  display: grid;
  width: 340px;
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(14px);
}

.hero-thumb img {
  width: 90px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.9);
}

.hero-thumb span {
  color: var(--text);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-panel {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: -56px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-copy h2,
.section-heading h2,
.ranking-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.045em;
}

.quick-copy h2 {
  font-size: clamp(24px, 4vw, 44px);
}

.quick-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.quick-search {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  overflow: hidden;
}

.quick-search input {
  padding: 16px 18px;
}

.quick-search button {
  padding: 0 24px;
}

.category-pills {
  grid-column: 1 / -1;
}

.category-pills a:hover,
.detail-tags a:hover {
  border-color: rgba(103, 232, 249, 0.62);
  color: #fff;
}

.section-block,
.home-category-block {
  padding: 72px 0 0;
}

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

.section-heading h2,
.ranking-head h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 26px 58px rgba(8, 145, 178, 0.24);
}

.movie-card.is-hidden {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.90);
}

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

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

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

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.type-pill {
  right: 12px;
}

.rank-badge {
  left: 12px;
  border-color: rgba(250, 204, 21, 0.40);
  color: #fef3c7;
  background: rgba(180, 83, 9, 0.30);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.36);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.54);
}

.movie-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.ranking-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.ranking-head a {
  color: var(--cyan);
  font-weight: 900;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.56);
}

.ranking-list a:hover {
  border-color: rgba(34, 211, 238, 0.44);
}

.ranking-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.ranking-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 104px 0 46px;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.24), transparent 30rem);
}

.compact-page-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
}

.compact-page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.44);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 12px 12px 0;
}

.category-covers img {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.9);
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card-body p {
  min-height: 78px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-body span {
  color: var(--cyan);
  font-weight: 900;
}

.filter-bar,
.search-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.78);
}

.filter-bar input,
.search-console input,
.search-console select {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
}

.filter-bar input,
.search-console input {
  flex: 1 1 280px;
}

.search-console select {
  flex: 0 1 180px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.filter-buttons button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.detail-hero {
  padding: 86px 0 34px;
  background:
    radial-gradient(circle at 12% 4%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.52), rgba(2, 6, 23, 0));
}

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

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

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

.detail-copy h1 {
  max-width: 900px;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 850px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.12);
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.9);
}

.player-section {
  padding-top: 34px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 28px 90px rgba(8, 145, 178, 0.28);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

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

.player-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.45);
  font-size: 34px;
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 32px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 30px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.78);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p,
.footer-grid a,
.footer-grid small {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.footer-grid a:hover {
  color: var(--cyan);
}

.no-results {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted-strong);
  text-align: center;
  background: rgba(15, 23, 42, 0.78);
}

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

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

  .two-column-layout,
  .detail-grid,
  .detail-content,
  .quick-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    display: none;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .hero-shell {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding-top: 94px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    margin-top: -34px;
    padding: 22px;
  }

  .quick-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .quick-search button {
    min-height: 46px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-grid {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-content h1,
  .compact-page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover {
    aspect-ratio: 16 / 9;
  }

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

  .search-console select {
    width: 100%;
    flex-basis: auto;
  }

  .player-button {
    width: 70px;
    height: 70px;
  }
}
