:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --amber: #f59e0b;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  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;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(37, 99, 235, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.logo-mark rect {
  fill: rgba(37, 99, 235, 0.18);
  stroke: #38bdf8;
  stroke-width: 2;
}

.logo-mark path {
  fill: none;
  stroke: #bfdbfe;
  stroke-width: 3;
  stroke-linecap: round;
}

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

.nav-link,
.nav-dropdown button,
.mobile-link {
  border: 0;
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 14px;
  background: transparent;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown button:hover,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.82);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: #cbd5e1;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  color: white;
  background: rgba(51, 65, 85, 0.9);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-panel {
  display: none;
  padding: 10px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

main {
  min-height: 70vh;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.15) contrast(1.1);
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.96) 100%),
    radial-gradient(circle at 72% 36%, rgba(37, 99, 235, 0.42), transparent 30rem),
    radial-gradient(circle at 20% 82%, rgba(34, 211, 238, 0.24), transparent 22rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 170px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.56fr);
  align-items: center;
  gap: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 830px;
  margin: 22px 0 14px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.06;
  color: #e0f2fe;
}

.hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 26px 0 30px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-actions,
.detail-actions,
.page-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.text-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn,
.hero-search button {
  color: white;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.32);
}

.primary-btn:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.45);
}

.ghost-btn,
.page-hero-links a {
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(15, 23, 42, 0.62);
}

.text-btn {
  color: #67e8f9;
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(37, 99, 235, 0.88);
  font-weight: 800;
}

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

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: white;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dots button {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.hero-dots button.is-active {
  width: 48px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(860px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
}

.hero-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.18);
  outline: 0;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
}

.hero-search input {
  min-height: 52px;
  padding: 0 18px;
}

.hero-category-links {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 4;
  width: min(1280px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-category-links a {
  padding: 8px 12px;
  color: #dbeafe;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(147, 197, 253, 0.2);
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 32px;
  align-items: start;
}

.intro-copy,
.filter-card,
.rank-panel,
.category-card-large,
.detail-text article,
.info-table,
.category-tile {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.54));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro-copy {
  padding: 32px;
  border-radius: var(--radius);
}

.intro-copy h2,
.section-heading h2,
.filter-card h2,
.page-hero h1,
.detail-info h1,
.detail-text h2,
.category-card-large h2 {
  margin: 12px 0;
  line-height: 1.08;
}

.intro-copy h2,
.page-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
}

.intro-copy p,
.page-hero p,
.filter-card p,
.category-card-large p,
.detail-text p,
.footer-brand p,
.site-footer p {
  color: var(--muted-strong);
}

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

.category-tile {
  min-height: 168px;
  padding: 24px;
  border-radius: 22px;
  transition: 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.38);
}

.category-tile span,
.category-card-large span,
.section-heading span {
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.category-tile strong {
  display: block;
  margin: 10px 0;
  font-size: 22px;
}

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

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-heading a,
.inline-links a {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transition: 0.2s ease;
}

.movie-card a {
  display: block;
  height: 100%;
}

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

.poster-frame::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.78));
}

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

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

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

.poster-year {
  top: 12px;
  left: 12px;
  color: white;
  background: rgba(37, 99, 235, 0.88);
}

.poster-type {
  right: 12px;
  top: 12px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  color: #020617;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #93c5fd;
  font-size: 13px;
  margin-bottom: 12px;
}

.tag-row span {
  font-size: 12px;
  padding: 5px 8px;
}

.rank-panel {
  border-radius: var(--radius);
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-line span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
}

.rank-line strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-line em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px 30px;
}

.slim-hero,
.category-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-hero-links {
  margin-top: 24px;
}

.page-hero-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
}

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

.category-card-large {
  padding: 28px;
  border-radius: 26px;
  transition: 0.2s ease;
}

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

.mini-links a {
  padding: 7px 10px;
  color: #dbeafe;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
}

.filter-card {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) 1fr;
  gap: 24px;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
}

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

.empty-state {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  color: #fca5a5;
}

.filter-card.is-empty .empty-state {
  display: block;
}

.inline-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.detail-hero {
  min-height: 670px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px) saturate(1.15);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.breadcrumbs a {
  color: #67e8f9;
}

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

.detail-poster {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  max-width: 850px;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 21px;
  line-height: 1.65;
}

.detail-tags {
  margin: 24px 0 30px;
}

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

.player-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer span {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.45);
  position: relative;
}

.play-layer span::after {
  position: absolute;
  left: 38px;
  top: 29px;
  content: "";
  border-left: 24px solid white;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-text article,
.info-table {
  border-radius: var(--radius);
  padding: 28px;
}

.detail-text article p {
  line-height: 1.9;
}

.info-table {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.info-table dl {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.info-table dt {
  color: #93c5fd;
  font-weight: 800;
  margin-bottom: 6px;
}

.info-table dd {
  margin: 0;
  color: #e2e8f0;
}

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

.site-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #020617);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

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

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: #94a3b8;
  text-align: center;
  padding: 18px 24px;
}

@media (max-width: 1180px) {
  .catalog-grid,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .sticky-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 128px;
    gap: 32px;
  }

  .hero-poster {
    width: min(320px, 72vw);
    margin: 0 auto;
    transform: none;
  }

  .hero-category-links {
    justify-content: flex-start;
    top: 86px;
  }

  .intro-grid,
  .filter-card,
  .detail-layout,
  .detail-text,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .category-strip,
  .category-overview {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(320px, 78vw);
  }

  .info-table {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand span {
    font-size: 18px;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding: 128px 18px 210px;
  }

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

  .hero h2 {
    font-size: 30px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 28px;
  }

  .hero-controls {
    bottom: 134px;
  }

  .hero-category-links {
    width: calc(100% - 32px);
  }

  .section-block,
  .page-hero,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog-grid,
  .ranking-grid,
  .home-grid,
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-one-line {
    font-size: 18px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
