/*
 * LolaSigh Noir — компонентный слой.
 * Все значения берутся из tokens.css (подключается раньше этого файла).
 * Здесь не должно быть "магических чисел" — только переменные.
 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  /* Мягкая многослойная глубина фона вместо плоской заливки. */
  background-image:
    radial-gradient(ellipse 900px 480px at 12% -10%, rgba(255, 79, 163, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255, 79, 163, 0.05), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

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

::selection {
  background: var(--lola-pink-700);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 900px) {
  .container {
    padding: 0 var(--space-8);
  }
}

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

/* ============ Фирменный символ: розовая точка ============ */

.lola-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: var(--glow-soft);
  flex-shrink: 0;
}

.lola-dot--pulse {
  animation: lola-pulse 2.2s var(--ease-lola) infinite;
}

@keyframes lola-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .lola-dot--pulse {
    animation: none;
  }
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--motion-base) var(--ease-lola);
}

.site-header.is-scrolled {
  background: rgba(11, 11, 14, 0.94);
  box-shadow: 0 1px 0 rgba(255, 79, 163, 0.06);
}

.site-header .row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-extrabold);
  font-size: var(--text-md);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--motion-fast) var(--ease-lola);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-links a.is-active {
  color: var(--text-primary);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: var(--glow-soft);
}

.header-search {
  display: flex;
  gap: var(--space-2);
  flex: 1 1 260px;
  max-width: 360px;
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
}

/* ============ Формы / инпуты ============ */

input[type="search"],
input[type="text"],
input[type="number"],
select,
textarea {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--motion-fast) var(--ease-lola), box-shadow var(--motion-fast) var(--ease-lola);
}

input[type="search"] {
  border-radius: var(--radius-pill);
}

input::placeholder {
  color: var(--text-muted);
}

input:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow-focus);
}

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #1a0510;
  font-family: var(--font-family);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-lola),
    box-shadow var(--motion-fast) var(--ease-lola),
    background var(--motion-fast) var(--ease-lola);
}

.btn:hover,
.btn:focus-visible {
  background: var(--lola-pink-400);
  box-shadow: var(--glow-soft);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: none;
}

.header-search button {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--motion-fast) var(--ease-lola);
}

.header-search button:hover,
.header-search button:focus-visible {
  border-color: var(--accent);
}

/* Микро-состояние загрузки на форме (полностью серверный рендеринг —
   честная замена "скелетона": кнопка визуально откликается на клик, пока
   грузится следующая страница). См. motion.js. */
.btn.is-submitting {
  opacity: 0.75;
  cursor: progress;
  pointer-events: none;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: var(--space-24) var(--space-4) var(--space-16);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255, 79, 163, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 50% at 85% 15%, rgba(255, 79, 163, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--text-display);
  max-width: 18ch;
  margin: 0 auto var(--space-4);
}

.hero .lede {
  color: var(--text-secondary);
  font-size: var(--text-md);
  max-width: 46ch;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-search {
  max-width: 620px;
  margin: 0 auto var(--space-6);
}

.hero-search form {
  display: flex;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--space-2);
  transition: border-color var(--motion-base) var(--ease-lola), box-shadow var(--motion-base) var(--ease-lola);
}

.hero-search form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
}

.hero-search input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
}

.hero-search input[type="search"]:focus-visible {
  box-shadow: none;
}

.hero-search .btn {
  flex-shrink: 0;
}

.hero-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-prompt {
  font-family: var(--font-family);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease-lola),
    border-color var(--motion-fast) var(--ease-lola),
    background var(--motion-fast) var(--ease-lola);
}

.hero-prompt:hover,
.hero-prompt:focus-visible {
  color: var(--text-primary);
  border-color: var(--lola-pink-700);
  background: rgba(255, 79, 163, 0.08);
}

/* ============ Секции ============ */

.section {
  padding: var(--space-12) var(--space-4);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: var(--text-xl);
}

.section-header .section-lede {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.section-header .section-link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent);
  white-space: nowrap;
  transition: color var(--motion-fast) var(--ease-lola);
}

.section-header .section-link:hover {
  color: var(--lola-pink-300);
}

/* Плавное появление секций при прокрутке — см. motion.js */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-slow) var(--ease-lola), transform var(--motion-slow) var(--ease-lola);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Сетка карточек ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: var(--space-4) var(--space-3);
}

/* ============ Горизонтальные подборки ============ */

.row-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: var(--space-1) var(--space-1) var(--space-4);
  margin: calc(var(--space-1) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--noir-600) transparent;
}

.row-scroll::-webkit-scrollbar {
  height: 6px;
}

.row-scroll::-webkit-scrollbar-thumb {
  background: var(--noir-600);
  border-radius: var(--radius-pill);
}

.row-scroll .series-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .row-scroll .series-card {
    flex-basis: 192px;
  }
}

/* ============ Карточка сериала ============ */

.series-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-base) var(--ease-lola),
    border-color var(--motion-base) var(--ease-lola),
    box-shadow var(--motion-base) var(--ease-lola);
}

.series-card:hover,
.series-card:focus-visible {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--lola-pink-700);
  box-shadow: var(--glow-soft);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .series-card:hover,
  .series-card:focus-visible {
    transform: none;
  }
}

.series-card .poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--noir-700), var(--noir-850));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-2);
  overflow: hidden;
}

.series-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-lola), filter var(--motion-slow) var(--ease-lola);
}

.series-card:hover .poster img,
.series-card:focus-visible .poster img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.series-card .info {
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.series-card .title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.series-card .meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.series-card .tags {
  margin-top: var(--space-1);
}

/* ============ Teen Score / фирменная оценка ============ */

.teen-score {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--lola-pink-300);
  margin-top: var(--space-1);
}

.teen-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 79, 163, 0.08);
  border: 1px solid rgba(255, 79, 163, 0.28);
  box-shadow: var(--glow-soft);
}

.teen-score-badge .value {
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  color: var(--lola-pink-200);
}

.teen-score-badge .label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.teen-score-empty {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.score-criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2) var(--space-4);
}

.score-criteria li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}

.score-criteria li.is-active {
  color: var(--text-secondary);
}

.score-criteria .mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-criteria li.is-active .mark {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-soft);
  color: #1a0510;
  font-size: 11px;
  font-weight: var(--font-bold);
}

/* ============ Tags / chips (отображение) ============ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255, 79, 163, 0.10);
  border: 1px solid rgba(255, 79, 163, 0.28);
  color: var(--lola-pink-200);
}

.tag-neutral {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* ============ Фильтры (чипы формы) ============ */

.chip-group {
  margin-bottom: var(--space-6);
}

.chip-group h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip-row input[type="checkbox"],
.chip-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip-row label {
  padding: var(--space-2) var(--space-4);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: var(--text-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color var(--motion-fast) var(--ease-lola),
    background var(--motion-fast) var(--ease-lola),
    color var(--motion-fast) var(--ease-lola);
}

.chip-row label:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip-row input:checked + label {
  background: var(--accent);
  color: #1a0510;
  border-color: transparent;
  font-weight: var(--font-semibold);
  box-shadow: var(--glow-soft);
}

.chip-row input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.range-fields {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.range-fields label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.range-fields input,
.range-fields select {
  width: 130px;
}

/* ============ Empty state ============ */

.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-md);
  max-width: 44ch;
  margin: 0 auto;
}

.empty-state .lola-dot {
  display: block;
  margin: 0 auto var(--space-4);
}

/* ============ Скелетон-состояние (для будущих async-сценариев) ============ */

.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.skeleton-card .poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(100deg, var(--noir-850) 40%, var(--noir-700) 50%, var(--noir-850) 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card .poster {
    animation: none;
  }
}

/* ============ Mood layer (атмосферный фон страницы сериала) ============ */

.mood-layer {
  position: relative;
  overflow: hidden;
}

.mood-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 560px;
  background:
    radial-gradient(ellipse 55% 60% at 20% 0%, var(--mood-color, rgba(255, 79, 163, 0.14)), transparent 65%),
    radial-gradient(ellipse 45% 50% at 90% 10%, rgba(255, 79, 163, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background var(--motion-scene) var(--ease-lola);
}

.mood-layer > * {
  position: relative;
  z-index: 1;
}

/* ============ Featured (атмосферный выбор дня на главной) ============ */

.featured {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

@media (max-width: 640px) {
  .featured {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    text-align: center;
  }
}

.featured .poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow-soft);
}

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

.featured .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

@media (max-width: 640px) {
  .featured .eyebrow {
    justify-content: center;
  }
}

.featured h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.featured .lede {
  color: var(--text-secondary);
  margin: var(--space-3) 0 var(--space-4);
  max-width: 56ch;
}

@media (max-width: 640px) {
  .featured .lede {
    margin-left: auto;
    margin-right: auto;
  }
}

.featured .tags {
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .featured .tags {
    justify-content: center;
  }
}

/* ============ Каталог / пагинация ============ */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

.pagination .is-current {
  background: var(--accent);
  border-color: transparent;
  color: #1a0510;
  font-weight: var(--font-bold);
}

/* ============ Страница сериала ============ */

.series-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

@media (max-width: 760px) {
  .series-detail {
    grid-template-columns: 1fr;
  }
}

.series-detail .poster-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-soft);
}

.series-detail .poster-wrap .poster {
  border-radius: var(--radius-lg);
  aspect-ratio: 2 / 3;
}

.series-detail h1 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-1);
}

.series-detail .original-title {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-4);
}

.series-detail .lede {
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  margin: var(--space-4) 0;
  max-width: 62ch;
}

.detail-block {
  margin: var(--space-6) 0;
}

.detail-block h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.detail-block p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 68ch;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.rating-list {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-4) 0;
}

.rating-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.rating-pill b {
  display: block;
  font-size: var(--text-md);
  color: var(--text-primary);
  font-weight: var(--font-bold);
}

.watch-options {
  margin: var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.watch-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  transition: border-color var(--motion-fast) var(--ease-lola);
}

.watch-options a:hover {
  border-color: var(--accent);
}

details.tag-details summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
}

/* ============ Footer ============ */

footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* ============ Утилиты layout для страниц-списков ============ */

.page-header {
  padding: var(--space-12) var(--space-4) var(--space-6);
}

.page-header h1 {
  font-size: var(--text-2xl);
}

.page-header .lede {
  color: var(--text-secondary);
  margin-top: var(--space-2);
  max-width: 60ch;
}

.result-count {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.section--tight {
  padding-top: 0;
}

.link-accent {
  color: var(--accent);
  font-weight: var(--font-semibold);
}

.link-accent:hover {
  color: var(--lola-pink-300);
}

.text-center {
  text-align: center;
}
