:root {
  color-scheme: dark;
  --bg: #050817;
  --bg-soft: #080d22;
  --panel: rgba(12, 18, 39, 0.78);
  --panel-strong: rgba(17, 24, 52, 0.92);
  --line: rgba(171, 132, 255, 0.16);
  --text: #f6f2ff;
  --muted: #a8a3b8;
  --muted-2: #736f84;
  --primary: #8B5CFF;
  --primary-2: #B64DFF;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-glow: 0 0 28px rgba(139, 92, 255, 0.28);
  --max: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(78, 21, 160, 0.35), transparent 38rem),
    linear-gradient(180deg, #040511 0%, var(--bg) 48%, #03050f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    radial-gradient(circle, rgba(159, 100, 255, 0.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(79, 183, 255, 0.22) 1px, transparent 1px);
  background-position: 0 0, 38px 52px;
  background-size: 120px 120px, 180px 180px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

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

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

button, input, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(230px, 360px);
  align-items: center;
  gap: 32px;
  width: min(100% - 32px, var(--max));
  margin: 10px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  background: rgba(5, 8, 23, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.brand,
.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo,
.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(139, 92, 255, 0.62));
}

.brand-name,
.footer-logo-row strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a568ff 42%, #e05cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.nav-link {
  position: relative;
  padding: 10px 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

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

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 16px var(--primary);
}

.nav-link-muted { cursor: default; }

.header-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 28, 0.74);
}

.header-search {
  padding: 0 14px;
  height: 42px;
  border-radius: 15px;
}

.search-icon { color: var(--muted); font-size: 1.2rem; }

.header-search input,
.hero-search input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search input::placeholder,
.hero-search input::placeholder { color: #8d88a0; }

#main-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero,
.catalog-hero,
.policy-hero,
.work-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(7, 10, 28, 0.96) 0%, rgba(11, 12, 36, 0.78) 48%, rgba(82, 23, 168, 0.28) 100%),
    var(--hero-bg-image, radial-gradient(circle at 74% 40%, rgba(139, 92, 255, 0.55), transparent 22rem)),
    #070a1c;
  background-position: center;
  background-size: cover;
}

.hero > *,
.catalog-hero > *,
.policy-hero > *,
.work-hero > * {
  position: relative;
  z-index: 1;
}

.hero::after,
.catalog-hero::after,
.policy-hero::after,
.work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 52%, rgba(139, 92, 255, 0.08)),
    repeating-linear-gradient(120deg, transparent 0 24px, rgba(255, 255, 255, 0.025) 25px 26px);
  mix-blend-mode: screen;
}

.hero-home {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  margin-top: 0;
  padding: 62px 54px;
  min-height: 360px;
  border-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.eyebrow {
  margin: 0 0 10px;
  color: #c07bff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h1 span,
.results-toolbar span,
.policy-section h2::first-letter { color: var(--primary); }

.hero-copy p:not(.eyebrow),
.catalog-hero p,
.policy-hero p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.hero-search {
  min-height: 76px;
  padding: 0 30px;
  border-radius: 999px;
  border-color: rgba(183, 95, 255, 0.72);
  box-shadow: 0 0 28px rgba(139, 92, 255, 0.38), inset 0 0 26px rgba(139, 92, 255, 0.08);
}

.hero-search span { color: #d9c9ff; font-size: 2.2rem; }
.hero-search input { font-size: 1.35rem; }

.section-block {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(5, 9, 24, 0.54);
}

.section-head,
.results-toolbar,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.results-toolbar h2,
.panel-head h2,
.info-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.section-head a,
.panel-head a { color: #c47dff; font-weight: 800; }

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 46%);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent), transparent 72%), transparent 70%), rgba(9, 15, 34, 0.78);
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--accent), transparent 88%);
}

.category-card:hover,
.media-card:hover,
.catalog-card:hover,
.external-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent), transparent 68%);
}

.category-icon {
  color: var(--accent);
  font-size: 2.4rem;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent);
}

.category-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent), transparent 35%));
}

.category-card strong { color: var(--accent); font-size: 1.12rem; }
.category-card span:last-child { color: var(--muted); font-size: 0.9rem; }

.media-row,
.catalog-grid {
  display: grid;
  gap: 18px;
}

.media-row { grid-template-columns: repeat(6, 1fr); }
.catalog-grid { grid-template-columns: repeat(4, 1fr); }

.media-card,
.catalog-card,
.info-card,
.filters-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.media-card,
.catalog-card { position: relative; overflow: hidden; }

.media-card a,
.catalog-card a { display: block; padding: 14px; min-height: 100%; }

.cover-title {
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  margin: -14px -14px 14px;
  padding: 18px;
  color: white;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.68) 100%),
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--accent), transparent 28%), transparent 68%),
    linear-gradient(135deg, #11152e, #050716);
}

.media-card .cover-title { min-height: 178px; font-size: 1.18rem; }
.catalog-card .cover-title { min-height: 240px; font-size: 1.42rem; }

.badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--accent), transparent 18%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 56%);
}

.media-card .badge,
.catalog-card .badge { position: absolute; margin: 8px; }

.media-card h3,
.catalog-card h3 {
  margin: 0 0 8px;
  line-height: 1.15;
  font-size: 1.02rem;
}

.catalog-card h3 { font-size: 1.2rem; }
.media-card p,
.catalog-card p,
.card-meta,
.catalog-card-foot { color: var(--muted); font-size: 0.88rem; }
.catalog-card-foot { color: var(--accent); font-weight: 800; }


.share-title-btn,
.work-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 34%);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 12, 30, 0.82);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 72%);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.share-title-btn::before,
.work-share-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-title-btn:hover,
.work-share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.media-card .share-title-btn,
.catalog-card .share-title-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
}

.catalog-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-top: 26px;
  padding: 46px;
  border-radius: var(--radius-xl);
}

.catalog-hero h1,
.policy-hero h1 { margin-bottom: 12px; }

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.type-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(9, 14, 32, 0.72);
  font-weight: 800;
}

.type-tab.is-active,
.type-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent, var(--primary)), transparent 34%);
  background: color-mix(in srgb, var(--accent, var(--primary)), transparent 82%);
}

.catalog-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 44px;
}

.filters-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.filter-form {
  display: grid;
  gap: 12px;
}

.filter-form label {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.filter-form input,
.sort-form select {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 7, 20, 0.7);
  outline: 0;
}

.filter-form input { height: 42px; padding: 0 12px; }

.sort-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort-form select { min-height: 44px; padding: 0 40px 0 14px; }

.invert-sort {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(12, 18, 39, 0.9);
  cursor: pointer;
}

.work-page { margin-bottom: 44px; }


.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumbs a { color: var(--text); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:last-child { color: var(--accent); }

.work-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.work-title-row h1 { margin-bottom: 18px; }
.work-share-btn { margin-top: 12px; }

.work-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 26px;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.title-poster {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 36%);
  border-radius: 22px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--accent), transparent 22%), transparent 70%),
    #090d22;
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--accent), transparent 82%);
}

.title-poster strong {
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.07em;
}

.title-poster small,
.original-title { color: var(--muted); }

.copyable-title,
.copyable-line,
.copyable-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.copyable-title:hover,
.copyable-line:hover,
.copyable-inline:hover { color: var(--accent); }

.copyable-line {
  margin: -4px 0 18px;
  font-size: 1.12rem;
}

.copyable-inline {
  font-size: inherit;
}

.copy-icon {
  flex: 0 0 auto;
  width: 0.78em;
  height: 0.78em;
  min-width: 14px;
  min-height: 14px;
  color: var(--accent);
  background: currentColor;
  opacity: 0.78;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.genre-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-row span:not(.badge),
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(6, 10, 25, 0.68);
}

.genre-row span:not(.badge) { padding: 8px 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.fact-strip div,
.details-list div {
  display: grid;
  gap: 4px;
}

.fact-strip dt,
.details-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.fact-strip dd,
.details-list dd { margin: 0; }

.work-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 24px;
  margin-top: 24px;
}

.work-left { display: grid; gap: 18px; }

.info-card,
.empty-state {
  padding: 22px;
}

.info-card p {
  color: #c9c4d5;
  line-height: 1.72;
}

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

.external-grid a {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 9, 24, 0.76);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sticky-info { position: sticky; top: 92px; }

.details-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.policy-page { margin-bottom: 44px; }

.policy-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 46px;
  border-radius: var(--radius-xl);
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 28px;
  color: #d7c4ff;
  background: rgba(139, 92, 255, 0.14);
  border: 1px solid rgba(139, 92, 255, 0.32);
  box-shadow: var(--shadow-glow);
  font-size: 2.2rem;
}

.policy-hero small { color: var(--muted-2); font-weight: 800; }

.policy-content {
  width: min(920px, 100%);
  margin: 30px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(5, 9, 24, 0.62);
}

.policy-section + .policy-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.policy-section p { color: #cbc6d6; line-height: 1.72; }

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  width: min(100% - 32px, var(--max));
  margin: 40px auto 0;
  padding: 34px 36px 44px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(5, 8, 22, 0.86);
}

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

.footer-col h2 {
  margin: 0 0 12px;
  color: #c47dff;
  font-size: 1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a:hover { color: var(--text); }

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 20, 44, 0.94);
  border: 1px solid rgba(139, 92, 255, 0.42);
  box-shadow: var(--shadow-glow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.error-page {
  width: min(760px, 100%);
  margin: 56px auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 92, 255, 0.26), transparent 28rem),
    var(--panel);
}

.error-page p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr; gap: 14px; }
  .main-nav { justify-content: flex-start; overflow-x: auto; }
  .hero-home,
  .work-hero,
  .work-layout,
  .catalog-shell { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .media-row,
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-panel,
  .sticky-info { position: static; }
}

@media (max-width: 640px) {
  #main-content,
  .site-header,
  .site-footer { width: min(100% - 20px, var(--max)); }
  .hero-home,
  .catalog-hero,
  .policy-hero,
  .work-hero,
  .section-block,
  .policy-content { padding: 22px; }
  .hero-home { min-height: auto; }
  .category-grid,
  .media-row,
  .catalog-grid,
  .external-grid,
  .fact-strip,
  .site-footer,
  .policy-hero { grid-template-columns: 1fr; }
  .title-poster { min-height: 250px; }
  .results-toolbar,
  .work-title-row { align-items: flex-start; flex-direction: column; }
  .work-share-btn { margin-top: 0; }
}


.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-weight: 800;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 14, 32, 0.72);
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pagination-current {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary), transparent 45%);
}

.pagination .is-disabled {
  opacity: 0.42;
}
