/*
 * Стили сайта Жмилевский.РФ
 *
 * 1. Шрифты
 * 2. Основа
 * 3. Навигация (вкладки)
 * 4. Страница со скроллом
 * 5. Главная: выборы, шапка, таймер, ссылки, аудиокниги, подвал
 * 6. Стримы: фильтры, карточки записей, плеер
 * 7. Реакции по сериям: карточки и окно
 * 8. Помойный аукцион под стрим
 * 9. Телефоны
 *
 * Цвета: фон #000, карточки rgb(33, 34, 35), рамки #272727,
 * серый текст #808080, красный #fe0000, синий #064fda.
 */

/* ==================== 1. ШРИФТЫ ==================== */
@font-face {
   font-family: "Better VCR";
   src: url("../fonts/Better-VCR.ttf");
}
@font-face {
   font-family: "Sexsmith";
   src: url("../fonts/Sexsmith.otf");
}

/* ==================== 2. ОСНОВА ==================== */
* {
   box-sizing: border-box;
}

body {
   background: #000;
   margin: 0;
   color: #fff;
   width: 100%;
   height: 100vh;
   overflow: hidden !important;
   font-family: "Golos Text", Arial, sans-serif;
}

[hidden] {
   display: none !important;
}

.sprite {
   position: absolute;
   width: 0;
   height: 0;
   overflow: hidden;
}

.site {
   position: relative;
   z-index: 2;
   width: 100%;
   height: 100%;
}

/* Подписи разделов: «ДОНАТ», «СТРИМ», «БАНК»… */
.links-title {
   letter-spacing: 1px;
   font-weight: 600;
   opacity: 0.5;
   text-transform: uppercase;
   margin: 32px 0 2px;
   font-size: 16px;
}

/* Красная кнопка */
.vote-btn,
a.vote-btn {
   text-decoration: none;
   display: flex;
   padding: 0 32px;
   height: 52px;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   background: #fe0000;
   border: none;
   color: #fff;
   text-align: center;
   font-family: inherit;
   font-size: 20px;
   font-weight: 600;
   text-transform: uppercase;
   cursor: pointer;
   transition: all 0.5s;
   white-space: nowrap;
}

.vote-btn:hover {
   transform: scale(1.05);
   box-shadow: 1px 3px 41px 17px #fe000044;
}

.vote-btn.is-disabled {
   background: #2b2b2b;
   color: #808080;
   cursor: default;
   pointer-events: none;
}

/* Синяя кнопка «Слушать» / «Смотреть» */
.btn-play,
a.btn-play {
   text-decoration: none;
   border-radius: 58px;
   background: #064fda;
   display: inline-flex;
   height: 44px;
   padding: 10px 32px;
   align-items: center;
   gap: 10px;
   flex-shrink: 0;
   border: none;
   color: #fff;
   font-family: "Golos Text";
   font-size: 20px;
   font-style: normal;
   font-weight: 600;
   line-height: normal;
   cursor: pointer;
   transition: all 0.5s;
}

.btn-play:hover {
   transform: scale(1.05);
   box-shadow: 1px 3px 41px 17px #0650da44;
}

/* ==================== 3. НАВИГАЦИЯ ==================== */
.tabs-nav {
   position: static;
   min-width: 0;
   display: flex;
   align-items: center;
   gap: clamp(8px, 1.5vw, 18px);
   height: auto;
   color: #fff;
}

.tab-button,
.nav-link {
   all: unset;
   position: relative;
   padding: 0 2px;
   font-size: 18px;
   font-weight: 500;
   color: #ffffff70;
   cursor: pointer;
   transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   white-space: nowrap;
   text-decoration: none;
}

.tab-button:hover,
.nav-link:hover,
.tab-button[aria-selected="true"] {
   color: #fff;
}

.tab-button:focus-visible,
.nav-link:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 2px;
}

.tab-panel {
   display: none;
   height: 100%;
   transform-origin: top;
   animation: slideIn 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel[aria-hidden="false"] {
   display: block;
}

@keyframes slideIn {
   from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
   }
   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* ==================== 4. СТРАНИЦА СО СКРОЛЛОМ ==================== */
.page {
   width: 100%;
   height: 100%;
   overflow-y: scroll;
   overflow-x: hidden;
   padding-top: 80px;
}

.page::-webkit-scrollbar {
   position: relative;
   z-index: 9999;
   cursor: pointer;
   width: 8px;
}
.page::-webkit-scrollbar-track {
   background: rgb(36, 36, 36);
}
.page::-webkit-scrollbar-thumb {
   background-color: rgba(99, 99, 99, 0.449);
   border-radius: 0;
   border: none;
}

/* Чёрная полоса под навигацией */
.page::before {
   content: "";
   position: absolute;
   z-index: 11;
   background-color: #000;
   height: 32px;
   width: 100%;
   top: 0;
   left: -8px;
}

/* Заголовок страницы, как «ЖМИЛЕВСКИЙ.РФ» на главной */
.page-head {
   text-align: center;
   padding: 0 18px;
   margin: 0 auto;
   width: 36em;
   max-width: 100%;
   font-size: 18px;
}

.page-title {
   font-family: "Sexsmith", sans-serif;
   font-weight: normal;
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 3em;
   margin: 0.5em 0 0;
}

.page-desc {
   margin: 0 auto 1em;
   line-height: 150%;
   color: #808080;
}

/* Поля ввода — в стиле карточек-ссылок */
.field {
   width: 100%;
   min-width: 0;
   height: 52px;
   background-color: rgb(33, 34, 35);
   border: 2px solid rgb(33, 34, 35);
   border-radius: 6px;
   padding: 0 12px;
   color: #eee;
   font-family: inherit;
   font-size: 20px;
   font-weight: 500;
   outline: none;
   transition: 0.5s;
}

.field::placeholder {
   color: #ffffff50;
}

.field:hover,
.field:focus {
   background-color: #2b2b2b;
   border-color: #c1c1c130;
}

/* ==================== 5. ГЛАВНАЯ ==================== */
.home {
   display: flex;
   align-items: center;
   flex-direction: column;
   gap: 20px;
}

/* Обычные ссылки на главной — красные (у кнопок и карточек свой цвет) */
.home a:not([class]) {
   color: #fe0000;
}

.home h4,
.home h1 {
   font-family: "Sexsmith", sans-serif;
   font-weight: normal;
   text-transform: uppercase;
   letter-spacing: 2px;
}
.home h1 {
   font-size: 3em;
   margin: 0.5em 0 0;
}
.home h4 {
   font-size: 44px;
}

.home img.mem-main {
   margin-top: 3em;
   width: 30%;
}

.home-text {
   width: 36em;
   text-align: center;
   padding: 0 18px;
   font-size: 18px;
}

.home-text p {
   margin: 0 auto 1em;
   line-height: 150%;
}

/* --- Архив стримов --- */
.stream-calendar {
   margin: 24px 0 42px;
}

.stream-calendar__head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   margin-bottom: 14px;
}

.stream-calendar__head .links-title {
   margin: 0;
}

.stream-calendar__schedule {
   margin: 5px 0 0;
   color: #92939a;
   font-size: 14px;
}

.stream-calendar__toggle {
   flex: 0 0 auto;
   padding: 10px 16px;
   border: 1px solid #ffffff24;
   border-radius: 6px;
   background: #ffffff0a;
   color: #eee;
   cursor: pointer;
   font: inherit;
}

.stream-calendar__toggle:hover,
.stream-calendar__toggle[aria-expanded="true"] {
   border-color: #8653ff;
   background: #8653ff22;
}

.stream-calendar__dates {
   display: grid;
   grid-auto-columns: minmax(104px, 132px);
   grid-auto-flow: column;
   gap: 10px;
   overflow-x: auto;
   padding: 2px 0 12px;
   overscroll-behavior-inline: contain;
   scrollbar-width: thin;
}

.stream-calendar__date {
   display: flex;
   min-height: 98px;
   flex-direction: column;
   align-items: flex-start;
   justify-content: center;
   padding: 10px 14px;
   border: 1px solid #ffffff1b;
   border-radius: 7px;
   background: linear-gradient(145deg, #1d1e23, #101115);
   color: #fff;
   cursor: pointer;
   text-align: left;
}

.stream-calendar__date:hover,
.stream-calendar__date:focus-visible,
.stream-calendar__date[aria-pressed="true"] {
   border-color: #8653ff;
   outline: none;
}

.stream-calendar__date[aria-pressed="true"] {
   background: linear-gradient(145deg, #342459, #171321);
}

.stream-calendar__date-day {
   font-size: 32px;
   font-weight: 800;
   line-height: 1;
}

.stream-calendar__date-month {
   margin-top: 3px;
   color: #c5c5cc;
   font-size: 14px;
   text-transform: uppercase;
}

.stream-calendar__date-count {
   margin-top: 8px;
   color: #92939a;
   font-size: 11px;
}

.stream-calendar__selection,
.stream-calendar__archive {
   margin-top: 18px;
}

.stream-calendar__selection h3 {
   margin: 0 0 10px;
   font-size: 20px;
}

.stream-calendar__entries {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
   gap: 8px;
}

.stream-calendar__entry {
   display: flex;
   min-width: 0;
   align-items: center;
   justify-content: space-between;
   gap: 14px;
   padding: 11px 13px;
   border: 1px solid #ffffff14;
   border-radius: 6px;
   background: #ffffff08;
   color: #e8e8ec;
   text-decoration: none;
}

.stream-calendar__entry:hover {
   border-color: #8653ff88;
   background: #ffffff10;
}

.stream-calendar__entry span {
   overflow: hidden;
   text-overflow: ellipsis;
}

.stream-calendar__entry small {
   flex: 0 0 auto;
   color: #999aa1;
}

.stream-calendar__month {
   margin-top: 8px;
   border: 1px solid #ffffff18;
   border-radius: 7px;
   background: #ffffff05;
}

.stream-calendar__month > summary {
   display: flex;
   justify-content: space-between;
   gap: 12px;
   padding: 13px 15px;
   cursor: pointer;
   font-weight: 700;
   list-style-position: inside;
}

.stream-calendar__month > summary span {
   color: #92939a;
   font-size: 13px;
   font-weight: 400;
}

.stream-calendar__month-days,
.stream-calendar__month--undated > .stream-calendar__entries {
   display: grid;
   gap: 14px;
   padding: 0 14px 14px;
}

.stream-calendar__archive-day h4 {
   margin: 0 0 7px;
   color: #c5c5cc;
   font-size: 14px;
}

.stream-calendar__empty,
.stream-calendar__status {
   color: #aaa;
}

.stream-calendar__status:not([hidden]) {
   margin: 14px 0 0;
   color: #ff9a8f;
}

/* --- Выборы: бюллетень --- */
.vote {
   width: 100%;
   padding: 0 20vw;
}

.vote > .links-title {
   margin-top: 12px;
   margin-bottom: 6px;
}

/* Бумага с защитной сеткой, шрифт как у настоящего бюллетеня */
.ballot {
   position: relative;
   overflow: hidden;
   padding: 22px 32px 28px;
   border-radius: 2px;
   background-color: #f3efe4;
   background-image: repeating-linear-gradient(
         45deg,
         transparent 0 9px,
         #8a7a5512 9px 10px
      ),
      repeating-linear-gradient(-45deg, transparent 0 9px, #8a7a5512 9px 10px);
   color: #141414;
   font-family: "Times New Roman", Times, serif;
   box-shadow: 0 30px 90px -30px #fe000055;
   transform-origin: top center;
}

.ballot__top {
   display: flex;
   justify-content: space-between;
   gap: 16px;
   padding-bottom: 10px;
   border-bottom: 1px solid #141414;
   font-size: 13px;
   letter-spacing: 1px;
   text-transform: uppercase;
   color: #555;
}

.ballot__title {
   margin-top: 20px;
   text-align: center;
   font-size: 30px;
   font-weight: 700;
   letter-spacing: 4px;
   text-transform: uppercase;
}

.ballot__subtitle {
   margin-top: 4px;
   text-align: center;
   font-size: 18px;
}

.ballot__question {
   margin: 16px 0 4px;
   text-align: center;
   font-family: "Sexsmith", sans-serif;
   font-size: 60px;
   line-height: 1;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.ballot__rules {
   margin: 16px 0 20px;
   padding: 10px 14px;
   border: 1px solid #141414;
   font-size: 15px;
   font-style: italic;
   line-height: 1.45;
}

.candidate {
   all: unset;
   box-sizing: border-box;
   position: relative;
   display: grid;
   grid-template-columns: 88px minmax(0, 1fr) auto 56px;
   align-items: center;
   gap: 20px;
   width: 100%;
   padding: 14px 10px;
   border-top: 1px solid #141414;
   cursor: pointer;
   transition: background-color 0.3s, opacity 0.3s;
}

.candidate:last-child {
   border-bottom: 1px solid #141414;
}

/* Заливка: строка закрашивается на свой процент голосов */
.candidate::before {
   content: "";
   position: absolute;
   top: 0;
   bottom: 0;
   left: 0;
   width: var(--pct, 0%);
   background: var(--tint, transparent);
   transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.candidate > * {
   position: relative;
}

.candidate__pct {
   font-size: 30px;
   font-weight: 700;
   white-space: nowrap;
}

.candidate:hover {
   background-color: #0000000a;
}

.candidate:focus-visible {
   outline: 2px solid #1f3fbf;
   outline-offset: -2px;
}

.ballot.has-choice .candidate[aria-checked="false"] {
   opacity: 0.45;
}

.candidate__photo {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 88px;
   height: 88px;
   overflow: hidden;
   background: #d9d3c4;
   border: 1px solid #141414;
   color: #8a8270;
   font-family: "Sexsmith", sans-serif;
   font-size: 52px;
}

.candidate__photo img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: grayscale(0.3) contrast(1.05);
}

.candidate__surname {
   display: block;
   font-size: 28px;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
}

.candidate__name {
   display: block;
   font-size: 19px;
}

.candidate__about {
   display: block;
   margin-top: 4px;
   font-size: 15px;
   color: #555;
}

/* Квадрат и галочка «синей ручкой» */
.candidate__box {
   position: relative;
   width: 52px;
   height: 52px;
   background: #fff;
   border: 2.5px solid #141414;
}

.candidate__box svg {
   position: absolute;
   inset: -10px;
   width: calc(100% + 20px);
   height: calc(100% + 20px);
   overflow: visible;
}

.candidate__box path {
   fill: none;
   stroke: #1f3fbf;
   stroke-width: 4.5;
   stroke-linecap: round;
   stroke-linejoin: round;
   stroke-dasharray: 70;
   stroke-dashoffset: 70;
   transition: stroke-dashoffset 0.4s ease-out;
}

.candidate[aria-checked="true"] .candidate__box path {
   stroke-dashoffset: 0;
}

.ballot__bottom {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   gap: 24px;
   margin-top: 24px;
   font-size: 13px;
   color: #555;
}

.ballot__line {
   display: block;
   width: 220px;
   max-width: 100%;
   height: 24px;
   border-bottom: 1px solid #141414;
}

/* «М.П.» стоит слева от печати, чтобы не сливаться с ней */
.ballot__mp {
   margin-right: 180px;
   font-size: 15px;
}

.ballot__stamp {
   position: absolute;
   right: 30px;
   bottom: -26px;
   width: 150px;
   height: 150px;
   color: #c8102e;
   opacity: 0.8;
   transform: rotate(-14deg);
   mix-blend-mode: multiply;
   pointer-events: none;
}

/* Бюллетень складывается и уходит в урну */
.ballot.is-cast {
   animation: ballotCast 0.9s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

@keyframes ballotCast {
   0% {
      transform: none;
      opacity: 1;
   }
   40% {
      transform: scaleY(0.5);
      opacity: 1;
   }
   100% {
      transform: translateY(80px) scaleY(0.04);
      opacity: 0;
   }
}

.vote__actions {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 16px;
   margin-top: 16px;
}

.vote__note {
   margin: 0;
   color: #808080;
   font-size: 16px;
}

.vote__done {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 12px;
   padding: 36px 24px;
   background-color: rgb(33, 34, 35);
   border-radius: 6px;
   text-align: center;
   animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.urn {
   width: 120px;
   color: #eee;
   overflow: visible;
}

.urn__paper {
   fill: #f3efe4;
   animation: paperDrop 1.2s 0.2s cubic-bezier(0.5, 0, 0.75, 0) both;
}

@keyframes paperDrop {
   from {
      transform: translateY(-40px);
   }
   to {
      transform: translateY(30px);
   }
}

.vote__done-title {
   font-family: "Sexsmith", sans-serif;
   font-size: 44px;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.vote__done-text {
   margin: 0;
   color: #808080;
   font-size: 18px;
}

.vote__done-buttons {
   display: flex;
   gap: 8px;
   margin-top: 8px;
}

.vote__done-buttons .auction-btn {
   background-color: #2b2b2b;
   border-color: #2b2b2b;
}

/* Полоска «кто за кого» над бюллетенем */
.tug {
   margin-bottom: 16px;
}

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

.tug__side {
   display: grid;
   grid-template-columns: auto auto;
   align-items: baseline;
   column-gap: 12px;
}

.tug__side:last-child {
   text-align: right;
}

.tug__side:last-child .tug__name {
   order: 2;
}

.tug__name {
   font-family: "Sexsmith", sans-serif;
   font-size: 40px;
   line-height: 1;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.tug__pct {
   font-family: "Better VCR", monospace;
   font-size: 32px;
   line-height: 1;
   color: var(--color);
}

.tug__votes {
   grid-column: 1 / -1;
   order: 3;
   color: #808080;
   font-size: 14px;
}

.tug__bar {
   display: flex;
   height: 18px;
   overflow: hidden;
   border-radius: 2px;
   background: #ffffff14;
}

.tug__fill {
   height: 100%;
   transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tug__fill + .tug__fill {
   border-left: 2px solid #000;
}

.tug__meta {
   margin-top: 8px;
   color: #808080;
   font-size: 14px;
   text-align: center;
}

.tug__chart {
   height: 180px;
   display: grid;
   grid-template-columns: repeat(2, minmax(80px, 1fr));
   align-items: end;
   gap: 16px;
   padding: 16px 24px 0;
   border-radius: 8px;
   background: #ffffff08;
}

.tug__column {
   height: 100%;
   display: grid;
   grid-template-rows: 24px minmax(30px, 1fr) 44px;
   align-items: end;
   text-align: center;
}

.tug__value {
   color: var(--color);
   font-size: 20px;
   font-weight: 800;
}

.tug__bar {
   height: calc(var(--height) - 8%);
   min-height: 30px;
   align-self: end;
   border-radius: 6px 6px 0 0;
   background: #ffffff10;
   overflow: hidden;
}

.tug__bar span {
   display: block;
   height: 100%;
   background: var(--color);
}

.tug__label {
   display: flex;
   flex-direction: column;
   gap: 2px;
   padding: 6px 0;
   color: #aaa;
   font-size: 12px;
}

/* --- Ссылки --- */
.links {
   display: flex;
   flex-direction: column;
   gap: 4px;
   justify-content: center;
   width: 100%;
   padding: 8px 20vw;
}

.links .link {
   width: 100%;
   background-color: rgb(33, 34, 35);
   border: 2px solid rgb(33, 34, 35);
   padding: 12px;
   color: #eee;
   text-decoration: none;
   font-weight: 500;
   font-size: 20px;
   transition: 0.5s;
   border-radius: 6px;
   position: relative;
   padding-left: 52px;
}

.links .link:hover {
   background-color: #2b2b2b;
   border: 2px solid #c1c1c130;
   transition: all 0.5s;
}

.link i {
   height: 28px;
   width: 28px;
   position: absolute;
   top: 9px;
   left: 12px;
   background-size: contain !important;
   background-repeat: no-repeat;
}

i.logo-vk {
   background-image: url(../assets/logos/vk.svg);
}
i.logo-da {
   background-image: url(../assets/logos/da.svg);
}
i.logo-dp {
   background-image: url(../assets/logos/dpay.png);
}
i.logo-ma {
   background-image: url(../assets/logos/mem-alert.png);
}
i.logo-yt {
   background-image: url(../assets/logos/yt.png);
}
i.logo-vkp {
   background-image: url(../assets/logos/vkplay.png);
}
i.logo-kk {
   background-image: url(../assets/logos/kick.jpg);
}
i.logo-tg {
   background-image: url(../assets/logos/telegram.svg);
}
i.logo-tw {
   background-image: url(../assets/logos/twitch.svg);
}
i.logo-bo {
   background-image: url(../assets/logos/boosty.svg);
}
i.logo-rt {
   background-image: url(../assets/logos/rutube.svg);
}
i.logo-ar {
   background-image: url(../assets/logos/weba.jpg);
}
i.logo-gd {
   background-image: url(../assets/logos/gdrive.svg);
}

/* --- Аудиокниги --- */
.brend-ads {
   width: 100%;
}

.brend-ads__books {
   border-top: 1px solid #272727;
   border-bottom: 1px solid #272727;
}

.swiper {
   width: 100%;
   min-height: 300px;
}

.swiper-slide {
   display: flex;
   justify-content: center;
   align-items: center;
}

.swiper-slide img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.swiper-pagination-bullet {
   background-color: #fff;
   opacity: 0.2;
   transition: all 0.5s;
   margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
   background-color: #fff;
   opacity: 1;
   transform: scale(1.5);
}

.swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
   bottom: 1.5em;
}

.swiper-button-prev,
.swiper-button-next {
   color: #fff;
   font-size: 20px;
   padding: 8px 16px;
   border-radius: 100%;
   transform: translateY(-20px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
   color: #fff;
   font-size: 24px;
}

.book {
   padding: 2em 20vw 5em;
   display: flex;
   gap: 24px;
}

.book__cover {
   height: 240px;
   width: 240px;
   min-width: 240px;
   max-height: 240px;
   border-radius: 8px;
   background: #2b2b2b;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   position: relative;
}

.book__cover img {
   height: 100%;
}

/* Плашка «Новинка» на обложке */
.book.new-book .book__cover::after {
   content: "Новинка";
   display: flex;
   justify-content: center;
   align-items: center;
   background-color: red;
   padding: 2px 8px 4px 6px;
   border-radius: 0;
   position: absolute;
   bottom: 0;
   left: 0;
   text-align: center;
   font-weight: 600;
   font-size: 10px;
   letter-spacing: 2px;
   text-transform: uppercase;
   z-index: 10;
   width: 100%;
}

.book-title {
   font-size: 32px;
   font-style: normal;
   font-weight: 600;
   line-height: normal;
   margin: 0;
   margin-top: 4px;
}

.book-desc {
   margin-top: 0.5em;
   margin-bottom: 1em;
   line-height: 160%;
}

.book-btns {
   display: flex;
   margin: 20px 0;
   gap: 16px;
}

.book-dop {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.book-dop__item {
   display: flex;
   gap: 6px;
   color: #fff;
   font-family: "Golos Text";
   font-size: 16px;
   font-style: normal;
   font-weight: 400;
   line-height: normal;
}

.book-dop__title {
   color: #808080;
}

/* --- Подвал --- */
.footer {
   padding: 3em 20vw 1em;
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 100%;
}

.footer p {
   text-transform: uppercase;
   opacity: 0.5;
   margin: 0;
}

nav.nav {
    /* background: red; */
    height: 100%;
    display: flex;
    gap: 14px;
    margin-right: 16px;
    color: #ffffff70;
}

.nav-dropdown {
   position: relative;
   display: inline-block;
}

.nav-toggle {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   background: none;
   border: 0;
   font: inherit;
   color: inherit;
   cursor: pointer;
}

.nav-caret {
   transition: transform 0.2s ease;
}

.dropdown-menu {
   position: absolute;
   top: 100%;
   left: 0;
   min-width: 220px;
   padding: 6px;
   margin-top: 6px;
   display: flex;
   flex-direction: column;
   gap: 2px;
   background: var(--bg-elevated, #1b1b22);
   border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
   border-radius: 12px;
   box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
   z-index: 100;

   opacity: 0;
   visibility: hidden;
   transform: translateY(-6px);
   transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* невидимый «мостик», чтобы меню не закрывалось при движении мыши */
.dropdown-menu::before {
   content: "";
   position: absolute;
   inset: -8px 0 auto 0;
   height: 8px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret,
.nav-dropdown.open .nav-caret {
   transform: rotate(180deg);
}

.dropdown-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 9px 12px;
   border-radius: 8px;
   color: inherit;
   text-decoration: none;
   font-size: 14px;
   white-space: nowrap;
   transition: background 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
   background: var(--hover, rgba(255, 255, 255, 0.08));
   outline: none;
}

.dropdown-item i {
   flex: 0 0 20px;
   width: 20px;
   height: 20px;
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
}

.dropdown-item small {
   opacity: 0.6;
   font-size: 12px;
}

.dropdown-item.is-muted {
   opacity: 0.6;
}

/* на узких экранах меню выравниваем по правому краю, чтобы не вылезало */
@media (max-width: 600px) {
   .nav-dropdown:last-child .dropdown-menu {
      left: auto;
      right: 0;
   }
}

.site-header {
   position: fixed;
   z-index: 80;
   top: 0;
   right: 0;
   left: 0;
   display: flex;
   height: 44px;
   align-items: center;
   justify-content: space-between;
   padding: 0 12px;
   border-bottom: 1px solid #ffffff10;
   background: linear-gradient(180deg, #000000ed, #000000a8);
   backdrop-filter: blur(14px);
}

.site-header__brand-wrap {
   display: flex;
   align-items: center;
   gap: 0;
   padding: 2px 0;
}

.site-header__brand {
   color: #fff;
   font-family: "Sexsmith", sans-serif;
   font-size: 28px;
   line-height: 1;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   text-decoration: none;
   padding: 6px 6px 0 8px;
}

.site-header__actions {
   display: flex;
   width: auto;
   align-items: center;
   justify-content: flex-end;
   gap: 10px;
}

.site-header__benefits {
   margin-right: 6px;
   color: #aaa;
   font-size: 12px;
   letter-spacing: 1px;
   text-transform: uppercase;
}

.site-header__donate {
   padding: 9px 12px;
   border-radius: 5px;
   background: #fe0000;
   color: #fff;
   font-size: 13px;
   font-weight: 800;
   text-decoration: none;
}

.site-header__qr {
   display: grid;
   width: 42px;
   height: 42px;
   place-items: center;
   overflow: hidden;
   border: 2px solid #fff;
   background: #fff;
}

.site-header__qr img {
   width: 38px;
   height: 38px;
}

/* ==================== 6. КАТАЛОГ: РЯДЫ, ЖАНРЫ, ЗАПИСИ, ПЛЕЕР ==================== */
.streams {
   --catalog-gutter: clamp(20px, 4vw, 64px);
   padding-bottom: 5em;
}

/* Шапка: «Каталог» + поиск */
.catalog-head {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 16px 24px;
   flex-wrap: wrap;
   padding: 0 var(--catalog-gutter) 24px;
}

.catalog-head .page-title {
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 0.4em 0 0;
}

.catalog-head__context {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   color: #eee;
   font-family: "Golos Text", Arial, sans-serif;
   font-size: clamp(18px, 2.4vw, 28px);
   font-weight: 600;
   line-height: 1.1;
   text-transform: none;
}

.catalog-head__context[hidden] {
   display: none;
}

.catalog-head__context::before {
   content: "/";
   color: #808080;
   font-weight: 400;
}

.catalog-head__context-art {
   display: grid;
   width: 30px;
   height: 38px;
   flex: 0 0 auto;
   place-items: center;
   overflow: hidden;
   border-radius: 4px;
   background: #2b2b2b;
   color: #fff;
   font-family: "Golos Text", Arial, sans-serif;
   font-size: 20px;
}

.catalog-head__context-art.is-person {
   width: 36px;
   height: 36px;
   border-radius: 50%;
}

.catalog-head__context-art img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.catalog-head__search {
   display: flex;
   gap: 8px;
}

.catalog-head .catalog__search {
   width: 320px;
}

.catalog-head__search {
   display: flex;
   align-items: center;
   gap: 8px;
   /* width: 100%; */
   max-width: 520px;
}

/* обёртка input + меню: от неё позиционируется выпадашка */
.catalog-head__search > div:first-child {
   position: relative;
   flex: 1;
   min-width: 0;
}

.catalog__search {
   width: 100%;
   height: 42px;
   padding: 0 14px 0 40px;
   font: inherit;
   font-size: 14px;
   color: inherit;
   background: var(--bg-elevated, #1b1b22)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
      no-repeat 14px center;
   border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
   border-radius: 12px;
   outline: none;
   transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog__search::placeholder {
   color: rgba(255, 255, 255, 0.4);
}

.catalog__search:focus {
   border-color: var(--accent, #7c5cff);
   box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

/* ===== выпадающие подсказки ===== */
.catalog-search-menu {
   position: absolute;
   top: calc(100% + 6px);
   left: 0;
   right: 0;
   z-index: 50;
   max-height: min(70vh, 460px);
   overflow-y: auto;
   padding: 6px;
   display: flex;
   flex-direction: column;
   gap: 2px;
   background: var(--bg-elevated, #1b1b22);
   border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
   border-radius: 12px;
   box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
   overscroll-behavior: contain;
}

.catalog-search-menu[hidden] {
   display: none;
}

.catalog-search-menu > p {
   margin: 0;
   padding: 14px 12px;
   font-size: 14px;
   text-align: center;
   opacity: 0.6;
}

.search-result {
   display: flex;
   align-items: center;
   gap: 12px;
   width: 100%;
   padding: 6px 8px;
   font: inherit;
   color: inherit;
   text-align: left;
   background: none;
   border: 0;
   border-radius: 8px;
   cursor: pointer;
   transition: background 0.15s ease;
}

.search-result:hover,
.search-result:focus-visible {
   background: var(--hover, rgba(255, 255, 255, 0.08));
   outline: none;
}

.search-result__poster {
   flex: 0 0 auto;
   display: grid;
   place-items: center;
   overflow: hidden;
   background: rgba(255, 255, 255, 0.06);
   border-radius: 6px;
   font-size: 10px;
   line-height: 1.2;
   text-align: center;
   padding: 2px;
}

/* постер фильма — вертикальный, обложка стрима — горизонтальная */
.search-result--title .search-result__poster {
   width: 36px;
   height: 52px;
}

.search-result--stream .search-result__poster {
   width: 72px;
   height: 41px;
}

.search-result__poster img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.search-result__info {
   display: flex;
   flex-direction: column;
   gap: 2px;
   min-width: 0;
}

.search-result__info > span {
   font-size: 12px;
   opacity: 0.55;
}

.search-result__info > strong {
   font-size: 14px;
   font-weight: 600;
   overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
}

/* ===== кнопка настроек ===== */
.catalog-settings {
   flex: 0 0 42px;
   width: 42px;
   height: 42px;
   display: grid;
   place-items: center;
   font-size: 18px;
   color: inherit;
   background: var(--bg-elevated, #1b1b22);
   border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
   border-radius: 12px;
   cursor: pointer;
   transition: background 0.15s ease, transform 0.2s ease;
}

.catalog-settings:hover {
   background: var(--hover, rgba(255, 255, 255, 0.08));
   transform: rotate(30deg);
}

.catalog-head {
   position: relative;
}

.catalog-search-menu {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
   gap: 12px;
   max-height: 390px;
   overflow: auto;
   margin: 18px var(--catalog-gutter) 0;
   padding: 14px;
   border: 1px solid #ffffff18;
   border-radius: 10px;
   background: #111216;
}

.catalog-search-menu[hidden] {
   display: none;
}

.catalog-search-menu .search-result {
   all: unset;
   box-sizing: border-box;
   display: flex;
   min-width: 0;
   gap: 12px;
   padding: 8px;
   border-radius: 8px;
   cursor: pointer;
}

.catalog-search-menu .search-result:hover,
.catalog-search-menu .search-result:focus-visible {
   background: #ffffff0d;
   outline: none;
}

.search-result__poster {
   position: relative;
   display: grid;
   flex: 0 0 76px;
   aspect-ratio: 2 / 3;
   place-items: center;
   overflow: hidden;
   border-radius: 5px;
   background: #292a30;
}

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

.search-result__poster > span {
   padding: 6px;
   color: #ddd;
   font-size: 11px;
   text-align: center;
}

.search-result--stream .search-result__poster {
   flex-basis: 110px;
   aspect-ratio: 16 / 9;
}

.search-result__info {
   display: flex;
   min-width: 0;
   flex-direction: column;
   justify-content: center;
   gap: 6px;
}

.search-result__info > span {
   color: #777;
   font-size: 11px;
   text-transform: uppercase;
}

.search-result__info strong {
   display: -webkit-box;
   overflow: hidden;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 3;
   color: #eee;
   font-size: 14px;
   line-height: 1.3;
}

.catalog-search-menu p {
   grid-column: 1 / -1;
   padding: 12px;
   color: #777;
}

.filter-bar {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px 12px;
   padding: 20px var(--catalog-gutter) 0;
}

/* Секция с заголовком «Аниме ›» */
.catalog-section {
   margin-top: 36px;
}

.row-head {
   all: unset;
   display: inline-flex;
   align-items: baseline;
   gap: 8px;
   margin: 0 var(--catalog-gutter) 0;
   font-size: 22px;
   font-weight: 700;
   color: #fff;
}

button.row-head {
   cursor: pointer;
}

.row-head span {
   color: #808080;
   font-size: 16px;
   font-weight: 500;
}

.row-head i {
   font-style: normal;
   font-weight: 400;
   transition: transform 0.4s;
}

button.row-head:hover i {
   transform: translateX(4px);
}

.row-head--back {
   margin: 0;
   font-size: 16px;
   color: #808080;
}

.row-head--back:hover {
   color: #fff;
}

/* Кинопоиск-подобные ряды со свайпом и кнопочным управлением */
.catalog-row {
   position: relative;
}

.row {
   display: grid;
   grid-auto-flow: column;
   grid-auto-columns: 168px;
   gap: 12px;
   overflow-x: auto;
   padding: 14px var(--catalog-gutter) 16px;
   scroll-padding: 0 var(--catalog-gutter);
   scroll-snap-type: x proximity;
   overscroll-behavior-inline: contain;
   touch-action: pan-x;
   scrollbar-width: none;
}

.catalog-section--featured {
   position: relative;
   height: calc(40vh - 80px);
   min-height: 560px;
   margin-top: 0;
}

.catalog-section--featured > .row-head {
   position: absolute;
   z-index: 4;
   top: 22px;
   left: var(--catalog-gutter);
   margin: 0;
   color: #ffffff9c;
   font-size: 12px;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.catalog-row--featured {
   height: 100%;
}

.catalog-row--featured .row {
   height: 100%;
}

.row--featured {
   grid-auto-columns: 100%;
   gap: 0;
   padding: 0;
   scroll-padding: 0;
   scroll-snap-type: x mandatory;
}

.row--featured > .title-card--featured {
   width: 100%;
}

.title-card.title-card--featured {
   position: relative;
   display: block;
   box-sizing: border-box;
   height: 100%;
   min-height: 560px;
   overflow: hidden;
   border: 0;
   border-radius: 0;
   background: #07080a;
   scroll-snap-align: start;
   text-align: left;
}

.title-card__featured-art,
.title-card__featured-scrim {
   position: absolute;
   inset: 0;
}

.title-card__featured-art img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center 35%;
   transition: transform 0.6s ease;
}

.title-card__featured-placeholder {
   display: grid;
   width: 100%;
   height: 100%;
   place-items: center;
   background: radial-gradient(ellipse at 68% 50%, #303238, #08090b 70%);
   color: #ffffff20;
   font-family: "Sexsmith", sans-serif;
   font-size: clamp(36px, 8vw, 120px);
   text-align: center;
}

.title-card__featured-scrim {
   background: linear-gradient(
         90deg,
         #000 0%,
         #000 23%,
         #000d 39%,
         #0004 61%,
         transparent 83%
      ),
      linear-gradient(0deg, #000b 0%, transparent 32%);
}

.title-card--featured:hover .title-card__featured-art img {
   transform: scale(1.025);
}

.title-card__featured-body {
   position: absolute;
   z-index: 2;
   top: 50%;
   left: clamp(28px, 7vw, 112px);
   display: flex;
   width: min(42%, 640px);
   min-width: 320px;
   flex-direction: column;
   align-items: flex-start;
   gap: 16px;
   transform: translateY(-45%);
}

.title-card__featured-type {
   color: #c4c4c8;
   font-size: 15px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
}

.title-card--featured .title-card__name {
   margin: 0;
   color: #fff;
   font-size: clamp(42px, 6vw, 88px);
   font-weight: 800;
   line-height: 0.98;
}

.title-card__featured-ratings {
   display: flex;
   gap: 8px;
}

.title-card__featured-rating {
   padding: 5px 10px;
   border: 2px solid currentColor;
   border-radius: 5px;
   font-size: 18px;
   font-weight: 800;
}

.title-card__featured-rating--kp {
   color: #ff922b;
}

.title-card__featured-rating--zhmil {
   color: #8653ff;
}

.title-card__featured-original,
.title-card__featured-genres {
   color: #d0d0d4;
   font-size: clamp(15px, 1.5vw, 20px);
}

.title-card__featured-action {
   margin-top: 10px;
   padding: 14px 34px;
   border-radius: 7px;
   background: #8653ff;
   color: #fff;
   font-size: 18px;
   font-weight: 800;
   text-transform: uppercase;
}

.title-card--featured:focus-visible {
   outline: 3px solid #fff;
   outline-offset: -5px;
}

.my-list-section {
   margin-top: 28px;
}

.my-list-empty {
   margin: 0 var(--catalog-gutter);
   color: #777;
   font-size: 14px;
}

.row--genres {
   grid-auto-columns: 170px;
}

.row::-webkit-scrollbar {
   display: none;
}

.row > * {
   scroll-snap-align: start;
}

.catalog-row__control {
   position: absolute;
   z-index: 1;
   top: 50%;
   display: grid;
   width: 44px;
   height: 44px;
   place-items: center;
   border: 1px solid #ffffff30;
   border-radius: 50%;
   background: #111e;
   color: #fff;
   font: inherit;
   font-size: 30px;
   line-height: 1;
   cursor: pointer;
   transform: translateY(-50%);
}

.catalog-row__control--prev {
   left: max(4px, calc(var(--catalog-gutter) / 2 - 22px));
}

.catalog-row__control--next {
   right: max(4px, calc(var(--catalog-gutter) / 2 - 22px));
}

.catalog-row__control:hover:not(:disabled),
.catalog-row__control:focus-visible {
   background: #333;
}

.catalog-row__control:disabled {
   opacity: 0.35;
   cursor: default;
}

.catalog-row__control:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 2px;
}

.row--streams {
   grid-auto-columns: 300px;
}

.row--people {
   grid-auto-columns: 96px;
   gap: 16px;
}

/* Персоны — кружки с аватарками */
.person {
   all: unset;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   cursor: pointer;
   text-align: center;
}

.person__avatar {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 88px;
   height: 88px;
   overflow: hidden;
   border-radius: 50%;
   background: rgb(33, 34, 35);
   font-family: "Sexsmith", sans-serif;
   font-size: 44px;
   color: #ffffff90;
   transition: all 0.5s;
}

.person__avatar img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.person:hover .person__avatar,
.person:focus-visible .person__avatar {
   transform: scale(1.05);
   box-shadow: 0 0 0 2px #fff;
}

.person__name {
   font-size: 15px;
   font-weight: 500;
   line-height: 1.2;
}

.person__count {
   margin-top: -4px;
   color: #808080;
   font-size: 13px;
}

/* Плитки жанров: чёрный квадрат, пунктир, у каждого жанра свой шрифт */
.genres {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
   gap: 12px;
   padding: 0 var(--catalog-gutter);
}

.genre {
   all: unset;
   box-sizing: border-box;
   position: relative;
   container-type: inline-size;
   display: flex;
   align-items: center;
   justify-content: center;
   aspect-ratio: 1;
   padding: 12px;
   border: 1px dashed #3a3a3a;
   cursor: pointer;
   text-align: center;
   transition: all 0.5s;
}

.genre:hover,
.genre:focus-visible {
   border-color: #ffffff80;
   background: #ffffff08;
}

/* Размер подбирается под ширину плитки: --len — самое длинное слово, --k — ширина буквы шрифта */
.genre__name {
   --k: 0.7;
   font-size: min(
      var(--max, 34px),
      calc((100cqi - 24px) / (var(--len, 8) * var(--k)))
   );
   line-height: 0.95;
}

.genre__count {
   position: absolute;
   right: 8px;
   bottom: 6px;
   color: #808080;
   font-size: 12px;
}

.genre--heavy .genre__name {
   --k: 0.74;
   font-weight: 900;
   text-transform: uppercase;
   letter-spacing: -1px;
}

.genre--gothic .genre__name {
   --k: 0.56;
   font-family: "Times New Roman", Times, serif;
   font-style: italic;
   font-weight: 700;
   letter-spacing: -1px;
}

.genre--condensed .genre__name {
   --k: 0.42;
   --max: 46px;
   font-family: "Sexsmith", sans-serif;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.genre--college .genre__name {
   --k: 0.8;
   font-family: "Better VCR", monospace;
   text-transform: uppercase;
   -webkit-text-stroke: 1px #fff;
}

.genre--outline .genre__name {
   --k: 0.74;
   font-weight: 900;
   text-transform: uppercase;
   color: transparent;
   -webkit-text-stroke: 1.5px #fff;
}

.genre--vcr .genre__name {
   --k: 0.8;
   font-family: "Better VCR", monospace;
   text-transform: uppercase;
}

.genre--serif .genre__name {
   --k: 0.86;
   font-family: "Times New Roman", Times, serif;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 2px;
}

.genre--thin .genre__name {
   --k: 0.9;
   font-weight: 300;
   text-transform: uppercase;
   letter-spacing: 4px;
}

.genre--horror .genre__name {
   --k: 0.42;
   --max: 48px;
   font-family: "Sexsmith", sans-serif;
   text-transform: uppercase;
   color: #fe0000;
   transform: skewY(-6deg);
}

.genre--anime .genre__name {
   --k: 0.76;
   font-weight: 900;
   text-transform: uppercase;
   font-style: italic;
}

.genre--anime .genre__name::after {
   content: "アニメ";
   display: block;
   margin-top: 4px;
   font-size: 14px;
   font-style: normal;
   letter-spacing: 6px;
   color: #fe0000;
}

/* Сетка по фильтру */
.catalog-results .catalog__grid,
.catalog-results .streams__grid {
   padding-top: 0;
}

.streams__grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
   gap: 28px 16px;
   padding: 0 var(--catalog-gutter);
}

.streams__more {
   display: flex;
   justify-content: center;
   padding-top: 32px;
}

.stream-card {
   display: flex;
   flex-direction: column;
   gap: 6px;
   min-width: 0;
   color: #eee;
   text-decoration: none;
}

.stream-card:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 4px;
   border-radius: 8px;
}

.stream-card__thumb {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   aspect-ratio: 16 / 9;
   overflow: hidden;
   border-radius: 8px;
   background: #2b2b2b;
   transition: all 0.5s;
}

.stream-card.is-open .stream-card__thumb {
   box-shadow: 0 0 0 2px #fe0000;
}

.stream-card:hover .stream-card__thumb {
   transform: scale(1.03);
   box-shadow: 1px 3px 41px 17px #ffffff0d;
}

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

.stream-card__thumb .cover-placeholder {
   font-size: 24px;
   padding: 12px;
}

.stream-card__duration {
   position: absolute;
   right: 6px;
   bottom: 8px;
   padding: 2px 6px;
   border-radius: 4px;
   background: #000000c0;
   font-family: "Better VCR", monospace;
   font-size: 13px;
}

/* Процент просмотра поверх обложки */
.stream-card__progress-label {
   position: absolute;
   top: 8px;
   right: 8px;
   z-index: 3;
   padding: 3px 6px;
   border-radius: 4px;
   background: #000b;
   color: #fff;
   font-size: 12px;
   font-weight: 700;
}

.media-status {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-top: 14px;
   color: #9b9ca1;
   font-size: 13px;
}

.media-status select {
   width: 200px;
   /* padding: 8px 10px; */
   border: none;
   /* border-radius: 6px; */
   background: #141415;
   color: #eee;
   font: inherit;
   cursor: pointer;

       color: #a9afb9;
    font-size: 18px;
    letter-spacing: -1px;
    text-transform: lowercase;
    outline: none;
        translate: -4px 0;
}

.media-status--stream {
   margin: 0;
}

.media-status--stream select {
   max-width: 180px;
   padding: 6px 8px;
   font-size: 12px;
}

.title-card__progress {
   position: absolute;
   z-index: 3;
   top: 6px;
   right: 6px;
   padding: 3px 6px;
   border-radius: 4px;
   background: #000b;
   color: #fff;
   font-size: 12px;
   font-weight: 700;
   line-height: 1;
}

.title-card--featured .title-card__progress {
   top: 8px;
   right: 8px;
}

.stream-card__title {
   margin-top: 4px;
   font-size: 18px;
   font-weight: 500;
   line-height: 1.25;
}

.stream-card__meta {
   font-size: 14px;
   color: #808080;
}

.stream-card__opened {
   color: #808080;
   font-size: 13px;
}

.stream-card__highlight {
   padding: 0 2px;
   border-radius: 2px;
   background: #fe000050;
   color: #fff;
}

.stream-card__title .theme {
   color: #ffb84d;
}

.stream-card__title .theme--podcast {
   color: #d8b9ff;
}

.stream-card__title .theme--film {
   color: #ff6b6b;
}

.stream-card__title .theme--anime {
   color: #78a9ff;
}

.stream-card__title .theme--series {
   color: #ff9b50;
}

.stream-card__title .theme--cartoon {
   color: #70d7a1;
}

.stream-card__title .theme--game {
   color: #67d2d2;
}

.stream-card__title .theme--interview {
   color: #d8cf70;
}

.stream-card__title .theme--videos {
   color: #b7a8ff;
}

.stream-card__comma {
   color: #808080;
}

.tags {
   display: flex;
   flex-wrap: wrap;
   gap: 4px;
}

.tag {
   padding: 3px 8px 4px;
   border-radius: 4px;
   background: #ffffff14;
   color: #ccc;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
}

/* --- Просмотр записи: всё на одном экране --- */
.stream-windows {
   display: contents;
}

.stream-inline {
   position: relative;
   inset: auto;
   width: auto;
   height: min(620px, 72vh);
   margin: 16px var(--catalog-gutter) 28px;
   overflow: hidden;
   transform: none;
   border-radius: 10px;
   box-shadow: 0 18px 48px #0008;
}

.stream-inline.is-visible {
   transform: none;
}

.stream-window {
   --window-offset: 0px;
   position: absolute;
   left: calc(18px + var(--window-offset));
   right: calc(18px + var(--window-offset));
   top: calc(64px + var(--window-offset));
   bottom: calc(18px + var(--window-offset));
   display: flex;
   flex-direction: column;
   overflow: hidden;
   border: 1px solid #ffffff1a;
   border-radius: 14px;
   background: #111216f7;
   box-shadow: 0 24px 80px #000b;
   opacity: 0;
   transform: translateY(18px) scale(0.985);
   transition: opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.2, 0.75, 0.25, 1);
   pointer-events: auto;
   backdrop-filter: blur(18px);
}

.stream-window.is-visible {
   opacity: 1;
   transform: translateY(0) scale(1);
}

.site-header {
   height: 44px;
   padding: 0 2px 0 clamp(12px, 3vw, 12px);
   justify-content: space-between;
}

.site-header__brand {
   flex: 0 0 auto;
   font-size: clamp(17px, 2.4vw, 40px);
}

.site-header__benefits {
   display: none;
}

.site-header__donate {
   padding: 7px 8px;
   font-size: 11px;
}

.site-header__qr {
   width: 36px;
   height: 36px;
}

.site-header__qr img {
   width: 32px;
   height: 32px;
}

.stream-window.stream-inline,
.stream-window.stream-inline.is-visible,
.stream-window.stream-inline.is-closing {
   position: relative;
   left: auto;
   right: auto;
   top: auto;
   bottom: auto;
   width: 100%;
   height: 80vh;
   margin: 16px 0 28px;
   transform: none;
   opacity: 1;
   scroll-margin-top: 84px;
}

.title-inline {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-rows: minmax(0, 90%) minmax(180px, 10%);
   width: 100%;
   height: 80vh;
   min-height: 620px;
   margin: 0 28px;
   padding: 22px;
   padding: 0 var(--catalog-gutter);
   /* border: 1px solid #ffffff18; */
   /* border-radius: 10px; */
   background: linear-gradient(135deg, #17181d 0%, #111216 70%);
   /* box-shadow: 0 18px 48px #0008; */
   animation: stream-panel-in 0.18s ease-out;
   scroll-margin-top: 84px;
   background: rgba(113, 113, 114, 0.182);
   position: relative;
}

/* section.title-inline::before {
   content: "";
   display: block;
   background: #000;
   background: linear-gradient(90deg, rgb(0 0 0) 0%, rgb(183 65 65 / 0%) 100%);
   position: absolute;
   top: 0;
   left: 0;
   height: 100%;
   width: 60%;
   z-index: 1;
   /* translate: -40%; */
   /* border: 2px solid green; */
} */

.title-inline__top {
   display: grid;
   grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
   gap: 18px;
   min-height: 0;
}

.title-inline__media,
.title-inline__player,
.title-inline__body {
   min-height: 0;
}

.title-inline__media {
  position: absolute;
  top: 80px;
  right: 80px;
  width: 45%;
  aspect-ratio: 16 / 9;
  z-index: 2;

  display: flex;
  overflow: hidden;
  border-radius: 16px;

  /* убираем любые рамки */
  border: none;
  outline: none;
  background: transparent;

  /* 3D */
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1),
              box-shadow .5s ease;
  will-change: transform;

  /* тень + лёгкое свечение */
  box-shadow:
    18px 28px 50px rgba(0, 0, 0, .40),
    0 0 24px rgba(132, 86, 254, .22);
}

.title-inline__media:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, .45),
    0 0 36px rgba(132, 86, 254, .35),
    0 0 80px rgba(132, 86, 254, .20);
}

.title-inline__media:focus,
.title-inline__media:focus-visible,
.title-inline__media:focus-within {
  outline: none;
}

.title-inline__media video,
.title-inline__media img,
.title-inline__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: none;
  display: block;
}  

.title-inline__cover {
   width: 100%;
   height: 100%;
   max-height: 100%;
   aspect-ratio: auto;
}

.title-inline__player {
   /* position: absolute; */
   height: 100%;
   overflow: hidden;
   border-radius: 8px;
   background: #08090b;
   top: 0;
   right: 0;
   width: 100%;
   /* border: 6px solid green; */
   z-index: -1;

   
}

.title-inline__player > div[data-inline-player] {
   /* position: absolute; */
   inset: 0;
   height: 100%;
}

.title-inline__player iframe {
   width: 100%;
   height: 100%;
   border: 0;
}

.title-inline__loading {
   position: absolute;
   inset: 0;
   z-index: 2;
   display: grid;
   place-items: center;
   background: #111216;
   color: #aaa;
}

.title-inline__loading[hidden] {
   display: none;
}

.title-inline__body {
   overflow: auto;
   padding: 8px 36px 0 8px;
}

.title-inline__bottom {
   min-height: 0;
   margin-top: 16px;
   padding-top: 14px;
   border-top: 1px solid #ffffff12;
   overflow: auto;

   min-height: 0; */
    margin-top: 16px;
    /* padding-top: 14px; */
    border-top: 1px solid #ffffff12;
    overflow: auto;
    position: absolute;
    bottom: 0;
    /* background: red; */
    width: 100%;    
    padding: 16px var(--catalog-gutter) 40px;
}

.title-inline__bottom .episodes {
   /* grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); */
   margin-top: 8px;
}

.title-inline__bottom .episode.is-active {
   /* border-color: #fe0000; */
   background: #8456FE;
}

.title-inline__close {
   all: unset;
   position: absolute;
   top: 12px;
   right: 12px;
   z-index: 2;
   display: grid;
   width: 36px;
   height: 36px;
   place-items: center;
   border-radius: 50%;
   background: transparent;
   color: #fff;
   font-size: 36px;
   cursor: pointer;
   opacity: 0.5;
}

.title-inline__close:hover,
.title-inline__close:focus-visible {
   opacity: 1;
}

.title-inline__badges {
   display: flex;
   gap: 10px;
   align-items: center;
}

.title-inline__type {
   
    color: #a9afb9;
    font-size: 18px;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.title-inline__rating,
.title-inline__zhmil {
    padding: 4px 16px;
    border-radius: 4px;
    border: 2px solid #D26111;
    color: #0FD205;
    font-size: 22px;
    font-weight: 700;
    gap: 8px;
    display: flex;
    align-items: center;
}

.title-inline__zhmil {
   border: 2px solid #8456FE;
}

.title-inline__body {
   min-width: 0;
   padding-right: 36px;
}

.title-inline__name {
    margin: 0;
    margin-top: 100px;
    font-size: 80px;
    line-height: 1.05;
    letter-spacing: -3px;
}

.title-inline__subcaption {
   display: flex;
   gap: 12px;
       align-items: center;
}

.title-inline__caption {
   display: flex;
   min-width: 0;
   align-items: center;
   flex-direction: column;
    align-items: start;
    gap: 16px;
}

.title-inline__caption .title-inline__name {
   overflow-wrap: anywhere;
}

.title-card {
   position: relative;
}

.title-card.is-open::before {
   content: "";
   display: block;
   height: 20px;
   width: 12px;
   background: #8351fa;
   position: absolute;
   bottom: -8px;
   z-index: 100;
   right: 50%;
   width: 18px;
   height: 10px;
   clip-path: polygon(0 0, 100% 0, 50% 100%);
   translate: 9px;
}

.title-card.is-open .title-card__cover {
   border: 3px solid #8653ff;
}

.title-inline__original {
   margin-top: 6px;
   color: #909096;
}

.title-inline__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px 18px;
    margin-top: 8px;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -1px;
    width: 440px;
}

.title-inline__facts span {
   display: flex;
   flex-direction: column;
   gap: 3px;
   color: #e2e2e4;
}

.title-inline__facts b {
   color: #85868b;
   font-size: 12px;
   font-weight: 500;
}

.title-inline__seasons,
.title-inline__episodes,
.title-inline__watch {
   /* margin-top: 14px; */
}

.title-inline__seasons,
.title-modal__seasons {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 16px;
}

/* =END============================ */
/* =END============================ */

.stream-window.is-closing {
   opacity: 0;
   transform: translateY(12px) scale(0.985);
}

.stream-window.is-active {
   border-color: #ffffff25;
}

.stream-window__top {
   display: flex;
   height: 64px;
   flex: 0 0 64px;
   align-items: center;
   justify-content: space-between;
   padding: 0 18px 0 28px;
   border-bottom: 1px solid #ffffff12;
   background: linear-gradient(180deg, #1a1b20f2, #15161af2);
}

.stream-window__tabs {
   display: flex;
   align-self: stretch;
   gap: 28px;
}

.stream-window__tab {
   all: unset;
   position: relative;
   display: flex;
   align-items: center;
   color: #98999f;
   font-size: 15px;
   font-weight: 650;
   cursor: pointer;
}

.stream-window__tab::after {
   content: "";
   position: absolute;
   right: 0;
   bottom: 0;
   left: 0;
   height: 2px;
   background: #fe0000;
   opacity: 0;
   transform: scaleX(0.4);
   transition: 0.18s ease;
}

.stream-window__tab[aria-selected="true"] {
   color: #fff;
}

.stream-window__tab[aria-selected="true"]::after {
   opacity: 1;
   transform: scaleX(1);
}

.stream-window__close {
   all: unset;
   display: grid;
   width: 40px;
   height: 40px;
   place-items: center;
   border-radius: 0;
   background: transparent;
   color: #fff;
   font-size: 28px;
   line-height: 1;
   cursor: pointer;
   transition: 0.15s ease;
}

.stream-window__close:hover,
.stream-window__close:focus-visible {
   color: #fe0000;
}

.stream-window__body {
   position: relative;
   flex: 1;
   min-height: 0;
}

.stream-window__panel {
   position: absolute;
   inset: 0;
   display: none;
   overflow: auto;
   opacity: 0;
}

.stream-window__panel.is-active {
   display: grid;
   opacity: 1;
   animation: stream-panel-in 0.18s ease-out;
}

@keyframes stream-panel-in {
   from {
      opacity: 0;
      transform: translateY(5px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.stream-window__panel[data-tab="about"] {
   grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
   gap: 32px;
   padding: 28px 32px 36px;
}

.stream-window__main {
   display: flex;
   min-width: 0;
   flex-direction: column;
}

.stream-window__player {
   position: relative;
   width: 100%;
   min-height: 240px;
   aspect-ratio: 16 / 9;
   overflow: hidden;
   border-radius: 10px;
   background: #090909;
}

.stream-window__player iframe {
   position: absolute;
   inset: 0;
   z-index: 2;
   width: 100%;
   height: 100%;
   border: 0;
}

.stream-window__player-controls {
   position: absolute;
   z-index: 5;
   right: 10px;
   bottom: 10px;
   display: flex;
   gap: 6px;
   opacity: 0;
   transition: opacity 0.2s;
}

.stream-window__player:hover .stream-window__player-controls,
.stream-window__player-controls:focus-within {
   opacity: 1;
}

@media (hover: none) {
   .stream-window__player-controls {
      opacity: 1;
   }
}

.stream-window__player-controls button {
   all: unset;
   width: 38px;
   height: 38px;
   display: grid;
   place-items: center;
   border-radius: 5px;
   background: #000000b8;
   color: #fff;
   cursor: pointer;
   text-align: center;
}

.stream-window__player-controls svg {
   width: 20px;
   height: 20px;
   fill: currentColor;
}

.stream-window__loading,
.stream-window__error {
   position: absolute;
   inset: 0;
   z-index: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   background: radial-gradient(circle at 50% 40%, #26282d, #101114 70%);
   color: #ccc;
}

.stream-window__loading[hidden],
.stream-window__error[hidden] {
   display: none;
}

.stream-window__loading span {
   width: 18px;
   height: 18px;
   border: 2px solid #ffffff30;
   border-top-color: #fff;
   border-radius: 50%;
   animation: stream-spin 0.8s linear infinite;
}

@keyframes stream-spin {
   to {
      transform: rotate(360deg);
   }
}

.stream-window__error {
   z-index: 3;
   flex-direction: column;
}

.stream-window__error a {
   color: #fff;
}

.stream-window__actions {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px;
   margin-top: 12px;
}

.stream-window__favorite,
.stream-window__vk {
   min-height: 40px;
   padding: 0 14px;
   border: 1px solid #ffffff18;
   border-radius: 6px;
   background: #24262b;
   color: #eee;
   font: 600 14px "Golos Text", Arial, sans-serif;
   text-decoration: none;
   cursor: pointer;
}

.stream-window__favorite {
   all: unset;
   box-sizing: border-box;
   display: inline-flex;
   min-height: 40px;
   align-items: center;
   padding: 0 14px;
   border: 1px solid #ffffff18;
   border-radius: 6px;
   background: #24262b;
   color: #eee;
   font-size: 14px;
   cursor: pointer;
}

.stream-window__favorite.is-active {
   border-color: #fe000080;
   color: #ffb3b3;
}

.stream-window__vk {
   display: inline-flex;
   align-items: center;
}

.stream-window__chapter-line {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   margin-top: 12px;
}

.stream-window__chapter-line:empty {
   display: none;
}

.stream-window__chapter-line button {
   display: inline-flex;
   align-items: baseline;
   gap: 8px;
   padding: 7px 10px;
   border: 1px solid #ffffff12;
   border-radius: 6px;
   background: #1d1e22;
   color: #ccc;
   font: inherit;
   cursor: pointer;
}

.stream-window__chapter-line button time {
   color: #fe0000;
   font-variant-numeric: tabular-nums;
}

.stream-window__summary {
   min-width: 0;
   padding-top: 4px;
}

.stream-window__title {
   margin: 14px 0 0;
   font-size: clamp(22px, 2.4vw, 36px);
   line-height: 1.12;
}

.stream-window__summary h1 {
   margin: 0;
   font-size: clamp(28px, 3vw, 52px);
   line-height: 1.02;
}

.stream-window__meta {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 16px;
   color: #a3a3a8;
}

.stream-window__meta i {
   font-style: normal;
   color: #555;
}

.stream-window__description {
   margin: 18px 0 0;
   color: #bbb;
   line-height: 1.55;
   white-space: pre-wrap;
}

.stream-recordings {
   width: 100%;
   padding: 28px 32px 40px;
}

.stream-recordings__grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
   gap: 8px;
}

.stream-recording {
   all: unset;
   box-sizing: border-box;
   display: flex;
   min-height: 82px;
   flex-direction: column;
   justify-content: space-between;
   gap: 10px;
   padding: 12px;
   border: 1px solid #ffffff12;
   border-radius: 7px;
   background: #1b1c20;
   cursor: pointer;
   transition: 0.15s ease;
}

.stream-recording:hover,
.stream-recording:focus-visible {
   border-color: #ffffff40;
   background: #24252a;
}

.stream-recording[aria-pressed="true"] {
   border-color: #fe0000;
   box-shadow: inset 3px 0 #fe0000;
}

.stream-recording__title {
   color: #eee;
   font-size: 15px;
   line-height: 1.25;
}

.stream-recording__meta {
   color: #8d8e93;
   font-size: 13px;
}

.stream-details {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   align-content: start;
   gap: 12px 32px;
   width: 100%;
   padding: 32px;
}

.stream-detail {
   display: grid;
   grid-template-columns: 140px minmax(0, 1fr);
   gap: 12px;
   min-height: 54px;
   align-items: baseline;
   border-bottom: 1px solid #ffffff10;
}

.stream-detail span {
   color: #85868b;
}

.stream-detail strong {
   color: #eee;
   font-weight: 500;
}

.streams.is-watching {
   overflow: hidden;
   padding-bottom: 0;
}

.stream-view {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 320px;
   gap: 24px;
   height: 100%;
   padding: 12px 24px 20px;
}

.stream-view__main {
   display: flex;
   flex-direction: column;
   gap: 12px;
   min-height: 0;
}

/* Плеер занимает всё свободное место, но остаётся 16:9 */
.stream-view__player {
   flex: 1;
   min-height: 0;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   container-type: size;
}

.stream-view__player iframe {
   display: block;
   width: min(100cqw, 100cqh * 16 / 9);
   height: min(100cqh, 100cqw * 9 / 16);
   border: none;
   border-radius: 8px;
   background: #111;
}

.stream-view__info {
   flex-shrink: 0;
}

.stream-view__title {
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
   margin: 0;
   font-size: 22px;
   font-weight: 600;
   line-height: 1.3;
}

.stream-view__meta {
   display: flex;
   flex-wrap: wrap;
   gap: 4px 16px;
   margin: 6px 0 8px;
   color: #808080;
}

.stream-view__resume button {
   all: unset;
   cursor: pointer;
   color: #fe0000;
}

.stream-view__desc {
   display: flex;
   flex-direction: column;
   max-height: 150px;
   gap: 4px;
   overflow: auto;
   margin: 8px 0 0;
   color: #ccc;
}

.stream-view__description-line {
   white-space: pre-wrap;
}

.stream-view__chapter {
   display: flex;
   align-items: baseline;
   gap: 10px;
   width: fit-content;
   padding: 0;
   border: 0;
   background: transparent;
   color: #ccc;
   font: inherit;
   text-align: left;
   cursor: pointer;
}

.stream-view__chapter time {
   color: #fe0000;
   font-variant-numeric: tabular-nums;
}

.stream-view__chapter:hover span {
   color: #fff;
   text-decoration: underline;
}

.stream-view__side {
   display: flex;
   flex-direction: column;
   gap: 8px;
   min-height: 0;
}

.stream-view__back {
   margin-bottom: 4px;
   color: #808080;
   font-size: 16px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
   text-decoration: none;
   transition: color 0.4s;
}

.stream-view__back:hover {
   color: #fff;
}

a.stream-view__vk {
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
}

.stream-view__hint {
   margin: 0;
   color: #808080;
   font-size: 14px;
   line-height: 1.45;
}

/* Таймкоды — ниже, со своей прокруткой */
.stream-view__marks {
   flex: 1;
   min-height: 0;
   display: flex;
   flex-direction: column;
   gap: 8px;
   margin-top: 16px;
   padding-top: 16px;
   border-top: 1px solid #272727;
}

.stream-view__marks .links-title {
   margin: 0;
}

.stream-view__marks .auction-btn {
   height: 44px;
   font-size: 16px;
}

.stream-view__marks [data-mark] {
   flex: 2;
}

.stream-view__marks .marks {
   flex: 1;
   min-height: 0;
   overflow-y: auto;
}

.marks {
   list-style: none;
   margin: 8px 0 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.marks__empty {
   color: #808080;
   font-size: 15px;
   padding: 8px 0;
}

.mark {
   display: grid;
   grid-template-columns: auto minmax(0, 1fr) 36px;
   align-items: center;
   gap: 6px;
   padding: 4px 4px 4px 6px;
   background-color: rgb(33, 34, 35);
   border-radius: 6px;
}

.mark__time {
   all: unset;
   cursor: pointer;
   padding: 6px 8px;
   border-radius: 4px;
   font-family: "Better VCR", monospace;
   font-size: 16px;
   color: #fe0000;
   transition: background-color 0.4s;
}

.mark__time:hover,
.mark__time:focus-visible {
   background-color: #ffffff14;
}

.mark__label {
   min-width: 0;
   height: 36px;
   padding: 0 8px;
   background: transparent;
   border: 2px solid transparent;
   border-radius: 6px;
   color: #eee;
   font-family: inherit;
   font-size: 15px;
   outline: none;
   transition: 0.5s;
}

.mark__label:hover,
.mark__label:focus {
   border-color: #c1c1c130;
}

/* ==================== 7. РЕАКЦИИ ПО СЕРИЯМ (карточки и окно) ==================== */

.catalog__filters,
.title-modal__seasons {
   display: flex;
   flex-wrap: wrap;
   gap: 4px 20px;
}

/* Фильтры выглядят как пункты навигации */
.catalog__filter {
   all: unset;
   cursor: pointer;
   letter-spacing: 1px;
   font-weight: 600;
   font-size: 16px;
   text-transform: uppercase;
   color: #ffffff70;
   padding: 6px 0;
   border-bottom: 2px solid transparent;
   transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog__filter span {
   opacity: 0.5;
}

.catalog__filter:hover,
.catalog__filter[aria-pressed="true"] {
   color: #fff;
}

.catalog__filter[aria-pressed="true"] {
   /* border-bottom-color: #fe0000; */
       background: #272727;
    padding: 10px 20px 7px;
    border-radius: 4px;
}

.catalog__filter:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 2px;
}

.catalog__search {
   width: 280px;
   height: 44px;
   padding: 0 12px;
   background-color: rgb(33, 34, 35);
   border: 2px solid rgb(33, 34, 35);
   border-radius: 6px;
   color: #eee;
   font-family: inherit;
   font-size: 18px;
   outline: none;
   transition: 0.5s;
}

.catalog__search::placeholder {
   color: #ffffff50;
}

.catalog__search:hover,
.catalog__search:focus {
   background-color: #2b2b2b;
   border-color: #c1c1c130;
}

.catalog__grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
   gap: 28px 16px;
   padding: 28px var(--catalog-gutter) 0;
}

.catalog__empty {
   padding: 3em var(--catalog-gutter) 0;
   margin: 0;
   color: #808080;
   font-size: 18px;
   text-align: center;
}

.catalog-head__meta {
   display: flex;
   align-items: center;
   gap: 18px;
   margin-top: 8px;
   color: #8d8e93;
   font-size: 16px;
}

.catalog-head__meta > span:first-child {
   color: #ddd;
   font-size: 16px;
   font-weight: 300;
}

.catalog-sources {
   display: flex;
   gap: 6px;
}

.catalog-sources span {
   position: relative;
   padding: 4px 7px;
   border-radius: 4px;
   background: #ffffff10;
   color: #bbb;
   font-size: 14px;
}

.catalog-sources span::after {
   content: attr(title);
}

.catalog-mode {
   display: flex;
   gap: 4px;
   padding: 14px var(--catalog-gutter) 0;
}

.catalog-mode button {
   all: unset;
   padding: 8px 12px;
   border-radius: 6px;
   color: #777;
   font-size: 14px;
   cursor: pointer;
}

.catalog-mode button[aria-pressed="true"] {
   background: #ffffff12;
   color: #fff;
}

.catalog-settings {
   all: unset;
   width: 44px;
   height: 44px;
   display: grid;
   place-items: center;
   border-radius: 6px;
   background: #212223;
   color: #bbb;
   cursor: pointer;
}

.catalog-settings-modal {
   position: fixed;
   z-index: 300;
   right: 24px;
   bottom: 24px;
   width: min(420px, calc(100vw - 48px));
   display: none;
   flex-direction: column;
   gap: 12px;
   padding: 22px;
   border: 1px solid #ffffff18;
   border-radius: 10px;
   background: #17181c;
   box-shadow: 0 24px 80px #000b;
}

.catalog-settings-modal.is-open {
   display: flex;
}

.catalog-settings-modal h2 {
   margin: 0 28px 4px 0;
}

.catalog-settings-modal__hint {
   margin: 0;
   color: #999;
   font-size: 13px;
   line-height: 1.5;
}

.catalog-settings-modal label {
   display: flex;
   flex-direction: column;
   gap: 6px;
   color: #bbb;
}

.catalog-settings-modal label:has(input[type="checkbox"]) {
   flex-direction: row;
   align-items: center;
}

.catalog-settings-modal input,
.catalog-settings-modal select {
   min-height: 42px;
   border: 1px solid #ffffff18;
   border-radius: 6px;
   background: #24252a;
   color: #fff;
   padding: 0 10px;
}

.catalog-settings-modal__close {
   all: unset;
   position: absolute;
   top: 10px;
   right: 10px;
   width: 32px;
   height: 32px;
   text-align: center;
   cursor: pointer;
}

.catalog-settings-modal__save {
   min-height: 42px;
   border: 0;
   border-radius: 6px;
   background: #fe0000;
   color: #fff;
   cursor: pointer;
}

.catalog-statistics {
   margin-top: 48px;
   padding: 28px var(--catalog-gutter);
   border-top: 1px solid #ffffff10;
}

.catalog-statistics__head {
   display: flex;
   justify-content: space-between;
   align-items: baseline;
}

.catalog-statistics__head h2 {
   margin: 0;
}

.catalog-statistics__head span {
   color: #777;
}

.catalog-statistics__grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 18px;
   margin-top: 20px;
}

.catalog-statistics__chart {
   min-height: 180px;
   padding: 16px;
   border: 1px solid #ffffff10;
   border-radius: 8px;
   background: #111216;
}

.catalog-statistics__chart h3 {
   margin: 0 0 14px;
   font-size: 16px;
}

.mini-bars {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.mini-bars__item {
   display: grid;
   grid-template-columns: 58px minmax(30px, 1fr) 90px;
   align-items: center;
   gap: 8px;
   color: #aaa;
   font-size: 12px;
}

.mini-bars__track {
   height: 5px;
   overflow: hidden;
   border-radius: 3px;
   background: #ffffff10;
}

.mini-bars__track i {
   display: block;
   height: 100%;
   background: #fe0000;
}

.title-card {
   all: unset;
   display: flex;
   flex-direction: column;
   gap: 6px;
   cursor: pointer;
   min-width: 0;
   position: relative;
}

.title-card:focus-visible {
   outline: 2px solid #fff;
   outline-offset: 4px;
   border-radius: 8px;
}

.title-card__name {
   font-size: 18px;
   font-weight: 500;
   line-height: 1.25;
   color: #eee;
   margin-top: 4px;
   display: none;
}

.title-card__meta {
   font-size: 14px;
   color: #808080;
   display: none;
}

/* Обложка: постер или название, снизу плашка с типом как «Новинка» у книг */
.cover {
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   border-radius: 8px;
   background: #2b2b2b;
   --type-color: #fe0000;
}

.cover--film {
   --type-color: #fe0000;
}
.cover--series {
   --type-color: #ff7a00;
}
.cover--anime {
   --type-color: #064fda;
}
.cover--cartoon {
   --type-color: #00a651;
}
.cover--animated {
   --type-color: #0f9d8a;
}

.title-card__cover {
   aspect-ratio: 2 / 3;
   transition: all 0.5s;
}

.title-card:hover .title-card__cover {
   /* transform: scale(1.03); */
   box-shadow: 0px 6px 11px 3px #8150f5bf;
}

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

.cover-placeholder {
   padding: 16px 12px 28px;
   font-family: "Sexsmith", sans-serif;
   font-size: 28px;
   line-height: 1.05;
   letter-spacing: 1px;
   text-transform: uppercase;
   text-align: center;
   color: #ffffff90;
   overflow-wrap: anywhere;
}

.cover-type {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   padding: 2px 8px 4px 6px;
   background-color: var(--type-color);
   text-align: center;
   font-weight: 600;
   font-size: 10px;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #fff;
}

.cover-rating {
   position: absolute;
   top: 6px;
   left: 6px;
   padding: 2px 6px 3px;
   border-radius: 4px;
   background: #ff922b;
   color: #fff;
   font-size: 13px;
   font-weight: 700;
}

.cover-rating--zhmil {
   top: 34px;
   background: #8653ff;
}

.cover-draft {
   position: absolute;
   top: 6px;
   left: 6px;
   padding: 2px 6px 3px;
   border-radius: 4px;
   background: #000000b0;
   color: #808080;
   font-size: 10px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
}

/* --- Окно тайтла: размер не меняется, прокручивается только список серий --- */
.title-modal {
   position: fixed;
   inset: 0;
   z-index: 100;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 44px 2em 2em;
}

.title-modal__backdrop {
   position: absolute;
   inset: 0;
   background: #000000d9;
}

.title-modal__window {
   position: relative;
   display: grid;
   grid-template-columns: 240px minmax(0, 1fr);
   gap: 32px;
   width: min(1040px, 94vw);
   height: min(700px, 86vh);
   padding: 40px 0 0 32px;
   overflow: hidden;
   background: #000;
   border: 1px solid #272727;
   border-radius: 8px;
   animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-modal__close {
   all: unset;
   position: absolute;
   top: 14px;
   right: 20px;
   z-index: 1;
   cursor: pointer;
   color: #808080;
   font-size: 16px;
   font-weight: 600;
   letter-spacing: 1px;
   text-transform: uppercase;
   transition: color 0.4s;
}

.title-modal__close:hover,
.title-modal__close:focus-visible {
   color: #fff;
}

.title-modal__aside {
   display: flex;
   flex-direction: column;
   gap: 16px;
   min-height: 0;
   overflow-y: auto;
   padding-bottom: 32px;
   scrollbar-width: none;
}

.title-modal__cover {
   height: 360px;
   max-height: 360px;
}

.title-modal__cover .cover-placeholder {
   font-size: 36px;
}

.title-modal__aside .book-dop {
   gap: 6px;
}

.title-modal__main {
   display: flex;
   flex-direction: column;
   min-width: 0;
   min-height: 0;
}

.title-modal__name {
   flex-shrink: 0;
   margin: 4px 0 0;
   padding-right: 120px;
   font-family: "Sexsmith", sans-serif;
   font-weight: normal;
   font-size: 44px;
   line-height: 1.05;
   letter-spacing: 2px;
   text-transform: uppercase;
}

.title-modal__original {
   flex-shrink: 0;
   margin-top: 6px;
   color: #808080;
}

.title-modal__seasons {
   flex-shrink: 0;
   margin-top: 16px;
}

/* Прокрутка только тут; место под полосу прокрутки занято всегда — ширина не прыгает */
.title-modal__scroll {
   flex: 1;
   min-height: 0;
   margin-top: 12px;
   padding: 0 24px 32px 0;
   overflow-y: auto;
   scrollbar-gutter: stable;
}

.title-modal__kp {
   display: inline-block;
   margin-top: 2px;
   color: #808080;
   font-size: 15px;
}

.title-modal__subtitle {
   margin: 28px 0 8px;
}

.watch-list {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.source-link {
    all: unset;
    display: inline-flex;
    /* margin-top: 18px; */
    color: #a9afb9;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-color: #687080;
    text-underline-offset: 3px;
    cursor: pointer;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.source-link:hover,
.source-link:focus-visible {
   color: #fff;
}

.source-modal {
   width: min(620px, calc(100vw - 32px));
   max-height: min(78vh, 720px);
   padding: 20px;
   overflow: hidden;
   border: 1px solid #ffffff20;
   border-radius: 10px;
   background: #17181d;
   color: #eee;
   box-shadow: 0 24px 80px #000b;
}

.source-modal::backdrop {
   background: #000b;
   backdrop-filter: blur(5px);
}

.source-modal__head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   margin-bottom: 12px;
}

.source-modal__head h2 {
   margin: 0;
   font-size: 20px;
}

.source-modal__head button {
   all: unset;
   color: #aaa;
   font-size: 28px;
   line-height: 1;
   cursor: pointer;
}

.source-modal__list {
   max-height: calc(78vh - 90px);
   overflow: auto;
}

.season-picker__label {
   align-self: center;
   margin-right: 4px;
   color: #8d8e93;
   font-size: 13px;
}

.episodes {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
   gap: 4px;
   margin-top: 16px;
}

.episode {
       display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px 56px 14px 18px;
    background-color: #2c2d2e;
    border: 0;
    border-radius: 6px;
    color: #eee;
    text-decoration: none;
    transition: 0.5s;
    width: fit-content;
    position: relative;
}

a.episode:hover {
   background-color: #2b2b2b;
   border-color: #c1c1c130;
}

.episode__num {
   font-size: 20px;
   font-weight: 500;
}

.episode__time {
   font-size: 13px;
   color: #ffffff8f;
   position: absolute;
   top: 2px;
   right: 4px;
}

.episode.is-empty {
   opacity: 0.35;
   cursor: default;
}

/* «На стримах»: где смотрели, от новых к старым */
.watch-row {
   display: grid;
   grid-template-columns: 150px auto minmax(0, 1fr);
   align-items: baseline;
   gap: 12px;
   padding: 10px 12px;
   background-color: rgb(33, 34, 35);
   border-radius: 6px;
   color: #eee;
   text-decoration: none;
   transition: 0.5s;
}

.watch-row:hover {
   background-color: #2b2b2b;
}

.watch-row__date {
   font-weight: 500;
   white-space: nowrap;
}

.watch-row__what {
   color: #fe0000;
   font-size: 14px;
   white-space: nowrap;
}

.watch-row__title {
   overflow: hidden;
   color: #808080;
   font-size: 14px;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.title-modal__time,
.title-modal__empty {
   margin: 0;
   color: #808080;
}

.title-modal__empty {
   margin-top: 20px;
}

/* ==================== 8. ПОМОЙНЫЙ АУКЦИОН ==================== */
/* Разметка под стрим: | чат | таймер + слоты | нейросеть / камера | */
.auction {
   position: relative;
   height: 100%;
   overflow: hidden;
}

.auction__bg {
   display: none;
   position: absolute;
   inset: 0;
   background: #0b0f1a center / cover no-repeat;
}

.auction__bg video {
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity 1.2s;
}

.auction__bg.has-video video {
   opacity: 1;
}

/* Лёгкое затемнение, чтобы текст читался на любом кадре */
.auction__bg::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, #00000066, #00000026 40%, #00000059);
}

.auction__layout {
   position: relative;
   display: grid;
   grid-template-columns: 25% minmax(0, 1fr) 23%;
   gap: 16px;
   height: 100%;
   padding: 52px 16px 16px;
}

.auction__center {
   display: flex;
   flex-direction: column;
   gap: 12px;
   min-height: 0;
}

.auction__right {
   display: grid;
   grid-template-rows: 1fr 1fr;
   gap: 16px;
   padding: 6% 0 0;
}

/* Стеклянные панели */
.auction__panel {
   background: #000000a6;
   border: 1px solid #ffffff1f;
   border-radius: 8px;
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
}

/* --- Таймер и комментарий --- */
.auction__timer-box {
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
   padding: 14px 20px 16px;
}

.auction__comment {
   align-self: stretch;
   min-height: 1.4em;
   padding: 2px 6px;
   border-radius: 4px;
   text-align: center;
   font-size: 18px;
   font-weight: 500;
   line-height: 1.4;
   color: #eee;
   outline: none;
   cursor: text;
}

.auction__comment:empty::before {
   content: attr(data-placeholder);
   color: #ffffff4d;
}

.auction__comment:hover,
.auction__comment:focus {
   background: #ffffff12;
}

.auction__clock {
   display: flex;
   align-items: center;
   gap: 20px;
}

.auction__play {
   all: unset;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 56px;
   height: 56px;
   border-radius: 50%;
   background: #22b24c;
   cursor: pointer;
   transition: all 0.5s;
}

.auction__play:hover {
   transform: scale(1.05);
   box-shadow: 1px 3px 41px 17px #22b24c44;
}

.auction__play svg {
   width: 30px;
   height: 30px;
   fill: #fff;
}

.auction__time {
   font-family: "Better VCR", monospace;
   font-size: clamp(56px, 6.2vw, 120px);
   line-height: 1;
   white-space: nowrap;
   text-shadow: 0 4px 30px #00000080;
   transition: color 0.4s;
}

.auction__time.is-ending {
   color: #fe0000;
}

/* Больше часа: h:mm:ss.mmm не влезает крупно */
.auction__time.is-long {
   font-size: clamp(44px, 4.6vw, 88px);
}

.auction__row {
   display: flex;
   gap: 4px;
}

.auction__row .auction-btn {
   flex: 1;
   padding: 0 8px;
}

.auction__row--time {
   justify-content: center;
}

.auction__row--time .auction-btn {
   flex: 0 0 auto;
   height: 40px;
   min-width: 52px;
   padding: 0 12px;
   font-size: 16px;
   background-color: #ffffff14;
   border-color: transparent;
}

/* --- Слоты --- */
.auction__slots {
   flex: 1;
   min-height: 0;
   display: flex;
   flex-direction: column;
   gap: 10px;
   padding: 12px;
}

.auction__add {
   display: flex;
   gap: 4px;
}

.auction__add .field--sum {
   width: 180px;
   flex-shrink: 0;
}

.auction__slots .field {
   background-color: #ffffff14;
   border-color: transparent;
}

.auction__tools {
   display: flex;
   gap: 4px;
   flex-wrap: wrap;
}

.auction__tools .auction-btn {
   height: 36px;
   padding: 0 14px;
   font-size: 15px;
   background-color: #ffffff14;
   border-color: transparent;
}

.auction__tools .auction-btn.is-active {
   background-color: #fff;
   color: #000;
}

.auction-btn {
   flex-shrink: 0;
   height: 52px;
   padding: 0 20px;
   background-color: rgb(33, 34, 35);
   border: 2px solid rgb(33, 34, 35);
   border-radius: 6px;
   color: #eee;
   font-family: inherit;
   font-size: 18px;
   font-weight: 500;
   cursor: pointer;
   transition: 0.5s;
}

.auction-btn:hover {
   background-color: #2b2b2b;
   border-color: #c1c1c130;
}

.auction-btn:disabled {
   opacity: 0.35;
   cursor: default;
   pointer-events: none;
}

.auction-btn--accent {
   background: #fe0000;
   border-color: #fe0000;
   color: #fff;
   font-weight: 600;
   text-transform: uppercase;
}

.auction-btn--accent:hover {
   background: #fe0000;
   border-color: #fe0000;
   box-shadow: 1px 3px 41px 17px #fe000044;
}

.auction-btn--danger:hover {
   color: #fe0000;
}

.auction-btn--square {
   width: 40px;
   height: 40px;
   padding: 0;
   font-size: 22px;
}

.lots {
   flex: 1;
   min-height: 0;
   overflow-y: auto;
   list-style: none;
   margin: 0;
   padding: 0 2px 0 0;
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.lots__empty {
   margin: 0;
   padding: 12px 4px;
   color: #ffffff80;
   font-size: 18px;
}

.lot {
   flex-shrink: 0;
   display: grid;
   grid-template-columns: 28px minmax(0, 1fr) 150px 150px 32px;
   align-items: center;
   gap: 8px;
   min-height: 52px;
   padding: 0 6px 0 12px;
   background-color: #ffffff12;
   border: 2px solid transparent;
   border-radius: 6px;
}

.lot__place {
   font-family: "Better VCR", monospace;
   font-size: 18px;
   color: #ffffff80;
}

/* Название — по левому краю, правится прямо в строке */
.lot__name {
   min-width: 0;
   height: auto;
   min-height: 40px;
   max-height: 72px;
   padding: 0 8px;
   margin-left: -8px;
   background: transparent;
   border: 2px solid transparent;
   border-radius: 6px;
   color: #fff;
   font-family: inherit;
   font-size: 20px;
   font-weight: 500;
   text-align: left;
   text-align: right;
   resize: none;
   overflow: auto;
   line-height: 1.25;
   outline: none;
   transition: 0.5s;
}

.lot__name:hover,
.lot__name:focus,
.lot__sum:hover,
.lot__sum:focus-within {
   border-color: #c1c1c140;
}

/* Сумма — тоже поле: можно исправить руками */
.lot__sum {
   display: flex;
   align-items: center;
   gap: 4px;
   height: 40px;
   padding: 0 8px;
   border: 2px solid transparent;
   border-radius: 6px;
   font-family: "Better VCR", monospace;
   font-size: 20px;
   cursor: text;
   transition: 0.5s;
}

.lot__sum input {
   width: 100%;
   min-width: 0;
   padding: 0;
   background: transparent;
   border: none;
   color: inherit;
   font: inherit;
   text-align: right;
   outline: none;
}

.lot__add {
   display: flex;
   gap: 4px;
}

.field--small {
   height: 40px;
   font-size: 16px;
   background-color: #00000040;
   border-color: transparent;
}

.lot__remove {
   all: unset;
   cursor: pointer;
   width: 32px;
   height: 32px;
   text-align: center;
   line-height: 32px;
   color: #ffffff80;
   border-radius: 6px;
   transition: color 0.4s;
}

.lot__remove:hover {
   color: #fe0000;
}

/* Золото, серебро и бронза — как в старом помойном аукционе */
.lot--first {
   background-color: #ffd70026;
   border-color: #ffd700b3;
}
.lot--first .lot__place,
.lot--first .lot__sum {
   color: #ffd700;
}

.lot--second {
   background-color: #d4d4d41f;
   border-color: #d4d4d480;
}
.lot--second .lot__place,
.lot--second .lot__sum {
   color: #e4e4e4;
}

.lot--third {
   background-color: #cd7f3226;
   border-color: #cd7f3299;
}
.lot--third .lot__place,
.lot--third .lot__sum {
   color: #e0995a;
}

/* --- Зоны под OBS: видны только по кнопке «Разметка» --- */
.auction__zone {
   position: relative;
   border-radius: 8px;
}

.show-zones .auction__zone {
   border: 2px dashed #ffffffb3;
   background: #ffffff14;
}

.show-zones .auction__zone::after {
   content: attr(data-zone);
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 22px;
   font-weight: 600;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #ffffffcc;
}

/* --- Победитель --- */
.auction__winner {
   position: fixed;
   inset: 0;
   z-index: 20000;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 16px;
   padding: 2em;
   background: #000000eb;
   text-align: center;
   animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auction__winner .links-title {
   margin: 0;
}

.auction__winner-name {
   font-family: "Sexsmith", sans-serif;
   font-size: clamp(56px, 9vw, 140px);
   line-height: 1;
   letter-spacing: 2px;
   text-transform: uppercase;
   overflow-wrap: anywhere;
}

.auction__winner-sum {
   font-family: "Better VCR", monospace;
   font-size: 36px;
   color: #ffd700;
   margin-bottom: 16px;
}

/* ==================== 9. ТЕЛЕФОНЫ ==================== */
@media (max-width: 768px) {
   .title-inline {
      grid-template-columns: 1fr;
      grid-template-rows: minmax(280px, 60%) minmax(170px, 40%);
      width: 100%;
      height: 80vh;
      min-height: 0;
      margin: 12px 0 20px;
      padding: 16px 12px;
      border-radius: 0;
   }

   .title-inline__top {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr) auto;
   }

   .title-inline__body {
      display: block;
      padding: 0;
   }

   .title-inline__caption {
      align-items: flex-start;
      flex-direction: column;
      gap: 6px;
   }

   .title-inline__name {
      font-size: 28px;
   }

   .site-header {
      height: 56px;
      gap: 8px;
      padding: 0 10px;
   }

   .site-header__brand {
      font-size: clamp(14px, 4vw, 20px);
   }

   .stream-window {
      left: 0;
      right: 0;
      top: 52px;
      bottom: 0;
      border: 0;
      border-radius: 0;
   }

   .stream-window__top {
      height: 56px;
      flex-basis: 56px;
      padding: 0 12px 0 16px;
   }

   .stream-window__tabs {
      gap: 14px;
      overflow-x: auto;
   }

   .stream-window__tab {
      flex: 0 0 auto;
      font-size: 13px;
   }

   .stream-window__close {
      width: 36px;
      height: 36px;
      flex: 0 0 36px;
   }

   .stream-window__panel[data-tab="about"] {
      display: none;
      grid-template-columns: 1fr;
      gap: 16px;
      padding: 12px 12px 28px;
   }

   .stream-window__panel[data-tab="about"].is-active {
      display: block;
   }

   .stream-window__player {
      min-height: 0;
   }

   .stream-window__summary {
      padding-top: 16px;
   }

   .stream-window__summary h1 {
      font-size: 30px;
   }

   .stream-recordings {
      padding: 16px 12px 28px;
   }

   .stream-recordings__grid {
      grid-template-columns: 1fr;
   }

   .stream-details {
      grid-template-columns: 1fr;
      padding: 18px 16px 28px;
   }

   /* Навигация — чёрная полоса сверху */
   .stream-window.stream-inline,
   .stream-window.stream-inline.is-visible {
      position: relative;
      left: auto;
      right: auto;
      top: auto;
      bottom: auto;
      width: auto;
      height: auto;
      min-height: 520px;
      margin: 12px 0 20px;
      border-radius: 0;
      border-left: 0;
      border-right: 0;
   }
   .tabs-nav {
      position: static;
      width: auto;
      height: auto;
      flex: 1 1 auto;
      padding: 0;
      align-items: center;
      gap: clamp(5px, 1.5vw, 12px);
      overflow-x: auto;
      background: transparent;
      border: 0;
   }

   .tab-button {
      font-size: clamp(11px, 3vw, 15px);
   }

   .nav-link {
      display: none;
   }

   .page {
      padding-top: 72px;
   }

   .page::before {
      display: none;
   }

   .home img.mem-main {
      width: 100%;
      margin-top: 72px;
   }

   .home-text {
      width: 100%;
      text-align: left;
   }

   .vote,
   .links {
      padding: 8px 20px;
   }

   .ballot {
      padding: 16px 16px 24px;
   }

   .ballot__top {
      font-size: 10px;
   }

   .ballot__title {
      font-size: 20px;
      letter-spacing: 2px;
   }

   .ballot__subtitle {
      font-size: 15px;
   }

   .ballot__question {
      font-size: 44px;
   }

   .candidate {
      grid-template-columns: 64px minmax(0, 1fr) auto 44px;
      gap: 12px;
      padding: 12px 4px;
   }

   .candidate__photo {
      width: 64px;
      height: 64px;
      font-size: 40px;
   }

   .candidate__surname {
      font-size: 21px;
   }

   .candidate__box {
      width: 44px;
      height: 44px;
   }

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

   .ballot__mp {
      margin-right: 0;
   }

   .ballot__stamp {
      width: 120px;
      height: 120px;
   }

   .vote__actions,
   .vote__done-buttons {
      flex-direction: column;
      align-items: stretch;
   }

   /* Полоска голосов и проценты в бюллетене */
   .tug__name {
      font-size: 28px;
   }

   .tug__pct {
      font-size: 22px;
   }

   .candidate__pct {
      font-size: 20px;
   }

   /* Каталог */
   .catalog-head,
   .filter-bar,
   .genres,
   .streams__grid,
   .catalog__grid,
   .catalog__empty {
      padding-left: 20px;
      padding-right: 20px;
   }

   .streams {
      --catalog-gutter: 20px;
   }

   .catalog-head .catalog__search {
      width: 100%;
   }

   .row-head {
      margin-left: 20px;
      margin-right: 20px;
   }

   .row {
      grid-auto-columns: 140px;
   }

   .catalog-section--featured {
      height: calc(100vh - 80px);
      min-height: 500px;
   }

   .title-card.title-card--featured {
      min-height: 500px;
   }

   .title-card__featured-scrim {
      background: linear-gradient(
            0deg,
            #000 0%,
            #000d 36%,
            #0005 72%,
            transparent 100%
         ),
         linear-gradient(90deg, #0005, transparent 70%);
   }

   .title-card__featured-body {
      top: 58%;
      left: 22px;
      width: min(88%, 540px);
      min-width: 0;
      gap: 11px;
      transform: translateY(-35%);
   }

   .title-card--featured .title-card__name {
      font-size: clamp(36px, 11vw, 62px);
   }

   .title-card__featured-type {
      font-size: 12px;
   }

   .title-card__featured-rating {
      padding: 4px 8px;
      font-size: 15px;
   }

   .title-card__featured-action {
      padding: 12px 22px;
      font-size: 15px;
   }

   .title-card__featured-original,
   .title-card__featured-genres {
      font-size: 14px;
   }

   .stream-calendar__head {
      align-items: flex-start;
   }

   .stream-calendar__toggle {
      padding: 9px 11px;
      font-size: 13px;
   }

   .stream-calendar__dates {
      grid-auto-columns: 108px;
   }

   .stream-calendar__entry {
      padding: 10px;
   }

   .catalog-search-menu {
      grid-template-columns: 1fr;
   }

   .row--streams {
      grid-auto-columns: 260px;
   }

   .row--people {
      grid-auto-columns: 80px;
   }

   .catalog-row__control {
      width: 40px;
      height: 40px;
   }

   .person__avatar {
      width: 72px;
      height: 72px;
   }

   .genres {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
   }

   .row--genres {
      grid-auto-columns: 132px;
   }

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

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

   /* Просмотр записи на телефоне — обычная прокрутка */
   .streams.is-watching {
      overflow-y: auto;
   }

   .stream-view {
      display: flex;
      flex-direction: column;
      height: auto;
      padding: 0 0 4em;
   }

   .stream-view__player {
      flex: none;
      container-type: normal;
      aspect-ratio: 16 / 9;
   }

   .stream-view__player iframe {
      width: 100%;
      height: 100%;
      border-radius: 0;
   }

   .stream-view__info,
   .stream-view__side {
      padding: 0 20px;
   }

   /* Окно тайтла — на весь экран */
   .title-modal {
      padding: 0;
   }

   .title-modal__window {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      padding: 52px 0 0 20px;
      border: none;
      border-radius: 0;
      overflow-y: auto;
   }

   .title-modal__aside {
      flex-direction: row;
      flex-shrink: 0;
      overflow: visible;
      padding: 0 20px 0 0;
   }

   .title-modal__cover {
      width: 120px;
      min-width: 120px;
      height: 180px;
   }

   .title-modal__main {
      flex-shrink: 0;
      min-height: auto;
      margin-top: 16px;
   }

   .title-modal__name {
      font-size: 32px;
      padding-right: 20px;
   }

   .title-modal__scroll {
      overflow: visible;
      padding-right: 20px;
   }

   .watch-row {
      grid-template-columns: auto minmax(0, 1fr);
   }

   .watch-row__title {
      grid-column: 1 / -1;
   }

   /* Аукцион: на телефоне без зон под OBS, всё в одну колонку */
   .auction {
      overflow-y: auto;
   }

   .auction__bg {
      position: fixed;
   }

   .auction__layout {
      display: flex;
      flex-direction: column;
      height: auto;
      padding: 64px 12px 24px;
   }

   .auction__zone,
   .auction__right {
      display: none;
   }

   .auction__row--time {
      flex-wrap: wrap;
   }

   .auction__clock {
      gap: 12px;
   }

   .auction__time,
   .auction__time.is-long {
      font-size: 36px;
   }

   .auction__play {
      width: 44px;
      height: 44px;
   }

   .auction__add {
      flex-wrap: wrap;
   }

   .auction__add .field--sum {
      width: auto;
      flex: 1;
   }

   .lots {
      overflow: visible;
   }

   .lot {
      grid-template-columns: 24px minmax(0, 1fr) 120px 32px;
      padding: 6px 6px 6px 10px;
      row-gap: 4px;
   }

   .lot__add {
      grid-column: 2 / 4;
   }
}
