:root {
  color-scheme: dark;
  --bg-0: #020617;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav a,
.nav-dropdown button {
  color: var(--soft);
  background: transparent;
  border: 0;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown:hover button {
  color: #fb923c;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-dropdown-panel a:hover {
  background: rgba(249, 115, 22, 0.12);
}

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

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
  outline: none;
  padding: 0 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.88);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--orange);
  padding: 0 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.84);
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.mobile-nav a.is-active,
.mobile-nav a:hover {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.1);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.home-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 600px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(2, 6, 23, 0.58) 44%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(44px, 9vw, 88px);
  z-index: 2;
  max-width: 760px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  font-size: 13px;
  font-weight: 750;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.movie-meta,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-meta span,
.detail-meta-grid span {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.28);
}

.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  border-color: rgba(249, 115, 22, 0.72);
  background: rgba(249, 115, 22, 0.16);
  transform: translateY(-2px);
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.08);
}

.hero-control.prev {
  left: 20px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 20px;
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--orange);
}

.section-block {
  padding: 48px 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.54));
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-text h2,
.category-overview-head h2,
.archive-group h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro-panel h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p,
.page-hero p,
.category-overview-head p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-links a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
  background: rgba(249, 115, 22, 0.16);
  transform: translateY(-2px);
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading a {
  color: #fb923c;
  font-weight: 750;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.36);
  background: rgba(30, 41, 59, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.96));
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

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

.type-badge {
  top: 10px;
  left: 10px;
  color: #fff;
  background: var(--orange);
}

.year-badge {
  top: 10px;
  right: 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  bottom: 10px;
  left: 10px;
  color: #111827;
  background: #fbbf24;
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.24s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover,
.horizontal-body h3 a:hover,
.category-overview-head h2 a:hover,
.archive-links a:hover {
  color: #fb923c;
}

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  margin-bottom: 10px;
}

.movie-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.carousel-section {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  min-width: 280px;
}

.scroll-buttons {
  display: flex;
  gap: 8px;
}

.scroll-buttons button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(30, 41, 59, 0.95);
  font-size: 26px;
  line-height: 1;
}

.scroll-buttons button:hover {
  background: rgba(51, 65, 85, 0.95);
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: auto 170px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
  background: rgba(30, 41, 59, 0.74);
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.28);
}

.list-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-weight: 900;
}

.horizontal-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #0f172a;
}

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

.horizontal-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.horizontal-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-buttons button {
  border: 0;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.86);
  padding: 10px 18px;
  font-weight: 750;
  transition: 0.2s ease;
}

.tab-buttons button.is-active,
.tab-buttons button:hover {
  color: white;
  background: var(--orange);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  margin-top: 32px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.18), transparent 28%), rgba(15, 23, 42, 0.72);
}

.compact-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 56px);
}

.compact-hero p {
  max-width: 760px;
  margin: 14px 0 0;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding: 42px 0;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.66);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-panel select {
  appearance: none;
}

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

.archive-list {
  display: grid;
  gap: 18px;
  padding: 42px 0;
}

.archive-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.archive-group h2 {
  margin-bottom: 16px;
  color: #fb923c;
  font-size: 24px;
}

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

.archive-links a {
  color: var(--soft);
  line-height: 1.5;
}

.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 680px;
  margin-top: 22px;
}

.search-page-form input {
  width: 100%;
  height: 50px;
}

.search-page-form button {
  height: 50px;
  padding: 0 26px;
}

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

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.16), transparent 34%), rgba(15, 23, 42, 0.68);
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-tags {
  margin-bottom: 24px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.38);
  font-size: 32px;
}

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

.detail-text {
  color: #e2e8f0;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 28px;
  color: var(--soft);
  line-height: 1.9;
  font-size: 17px;
}

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

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

.footer-brand {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 900;
  color: #fb923c;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.footer-links a {
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-links a:hover {
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

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

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

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

  .detail-layout {
    grid-template-columns: 260px 1fr;
  }
}

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

  .home-hero {
    height: 520px;
    border-radius: 22px;
  }

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

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

  .hero-control {
    display: none;
  }

  .intro-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .horizontal-card {
    grid-template-columns: 88px 1fr;
  }

  .horizontal-card .list-rank {
    grid-column: 1 / -1;
    width: auto;
    height: 34px;
  }

  .horizontal-cover {
    aspect-ratio: 3 / 4;
  }

  .filter-panel,
  .search-page-form {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .nav-shell {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

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

  .home-hero {
    height: 470px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 48px;
  }

  .hero-tags,
  .detail-meta-grid {
    gap: 6px;
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-button,
  .ghost-button {
    min-height: 40px;
    padding: 0 16px;
  }

  .page-hero,
  .detail-layout,
  .category-overview-card,
  .intro-panel {
    padding: 22px;
  }

  .movie-grid,
  .catalog-grid,
  .small-grid {
    gap: 14px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .movie-card-body p,
  .tag-row,
  .movie-meta {
    display: none;
  }

  .archive-links {
    grid-template-columns: 1fr;
  }
}
