:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.76);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.78));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a {
  padding: 8px 0;
  position: relative;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #ffffff;
}

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

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

.nav-search input,
.mobile-search input,
.large-search input,
.filter-input,
.filter-select {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  outline: none;
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search input {
  width: 210px;
  padding: 11px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.nav-search button,
.mobile-search button,
.large-search button {
  border: 0;
  color: #06111f;
  font-weight: 800;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.8);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #dbeafe;
  border-radius: 20px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: #dbeafe;
}

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

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.2) 70%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before,
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.hero h1 {
  width: min(760px, 100%);
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(8, 47, 73, 0.55);
  color: #a5f3fc;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.panel-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.22);
}

.ghost-btn,
.panel-link,
.section-more {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.62);
}

.ghost-btn:hover,
.panel-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(8, 47, 73, 0.72);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(226, 232, 240, 0.38);
}

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

.hero-thumbs {
  position: absolute;
  z-index: 4;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  display: grid;
  gap: 10px;
  width: 280px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-thumb img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 11px;
}

.hero-thumb span {
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: rgba(34, 211, 238, 0.72);
  transform: translateX(-4px);
}

.home-search-panel,
.content-section,
.catalog-preview,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  transform: translateY(-34px);
  padding: 18px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-search {
  display: flex;
  gap: 12px;
}

.large-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
}

.large-search button {
  min-width: 120px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 13px;
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: background 0.25s ease, color 0.25s ease;
}

.quick-links a:hover {
  color: #ffffff;
  background: rgba(8, 47, 73, 0.72);
}

.content-section,
.catalog-preview,
.player-section {
  padding: 42px 0;
}

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

.section-heading.narrow {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.rank-panel h2,
.detail-copy h2,
.detail-side h3 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p,
.rank-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.movie-card-link {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 24px 55px rgba(34, 211, 238, 0.14);
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74));
  opacity: 0.8;
}

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

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

.type-badge,
.rating-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 10px;
  left: 10px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.84);
  border: 1px solid rgba(34, 211, 238, 0.34);
}

.rating-badge {
  right: 10px;
  bottom: 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--amber));
}

.rank-mark {
  left: 10px;
  bottom: 10px;
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.card-content {
  padding: 15px;
}

.card-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 12px;
}

.card-tags span {
  font-size: 12px;
  padding: 5px 8px;
}

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

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

.category-tile {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.88));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
}

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

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

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

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-row span {
  color: var(--cyan);
  font-weight: 900;
}

.rank-row strong {
  line-height: 1.35;
}

.rank-row em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

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

.compact-hero {
  padding: 70px 0 36px;
}

.compact-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.compact-hero p {
  width: min(760px, 100%);
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #bfdbfe;
  margin-top: 18px;
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 22px;
}

.filter-input,
.filter-select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state,
.search-state {
  color: #cbd5e1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-state {
  margin-bottom: 20px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
  opacity: 0.55;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.92)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), #020617 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

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

.player-shell {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #06111f;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.26), transparent 28%),
    rgba(0, 0, 0, 0.22);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.45);
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-copy,
.detail-side {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 26px;
}

.detail-copy p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: #e2e8f0;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 14px;
  color: #bfdbfe;
}

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

[hidden] {
  display: none !important;
}

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

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

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

  .hero-thumbs {
    display: none;
  }

  .split-section,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .mobile-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
  }

  .hero {
    height: 580px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

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

  .home-search-panel {
    grid-template-columns: 1fr;
    transform: none;
    margin-top: 20px;
  }

  .large-search {
    flex-direction: column;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 54px 0 32px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    height: 64px;
  }

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

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    height: 540px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .detail-actions,
  .quick-links {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn,
  .quick-links a {
    flex: 1;
  }

  .movie-grid,
  .catalog-grid,
  .search-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

  .compact-hero {
    padding-top: 48px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .player-shell {
    border-radius: 18px;
  }
}
