/* ==========================================================================
   OTV — оформление телепрограммы и «Сейчас в эфире»
   Уникальный namespace .otv-* (не пересекается с другими модулями)
   Дизайн-система сайта: #1480d9 / #0f1419 / карточки 8px + мягкая тень
   ========================================================================== */

:root {
    --otv-blue: #1480d9;
    --otv-blue-dark: #0d6abf;
    --otv-blue-light: #3394e6;
    --otv-blue-soft: #e8f2fd;
    --otv-ink: #0f1419;
    --otv-ink-soft: #2a3340;
    --otv-muted: #5a6a78;
    --otv-muted-light: #8a97a5;
    --otv-line: #e3e9ef;
    --otv-bg: #f3f6f9;
    --otv-card: rgba(255, 255, 255, 0.92);
    --otv-radius: 8px;
    --otv-radius-sm: 6px;
    --otv-radius-lg: 14px;
    --otv-shadow: 0 8px 32px rgba(0, 0, 0, .06);
    --otv-shadow-hover: 0 14px 40px rgba(20, 128, 217, .16);
    --otv-ring: 0 0 0 3px rgba(20, 128, 217, .16);
    --otv-speed: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- общий контейнер страницы ---------- */
.otv-page {
    background: var(--otv-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--otv-radius);
    box-shadow: var(--otv-shadow);
    padding: 26px 20px 32px;
    margin: 0 0 20px;
}

.otv-page__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--otv-line);
}

.otv-page__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--otv-ink);
    letter-spacing: -.2px;
}

.otv-page__title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--otv-blue) 0%, var(--otv-blue-dark) 100%);
}

.otv-page__count {
    font-size: 13px;
    color: var(--otv-muted-light);
}

/* ---------- фильтр ---------- */
.otv-filter { margin: 0 0 22px; }

.otv-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.otv-filter__input {
    flex: 1 1 220px;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    color: var(--otv-ink);
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    transition: border-color var(--otv-speed), box-shadow var(--otv-speed);
}

.otv-filter__input::placeholder { color: var(--otv-muted-light); }

.otv-filter__input:focus {
    outline: none;
    border-color: var(--otv-blue);
    box-shadow: var(--otv-ring);
}

.otv-filter__select {
    height: 42px;
    min-width: 190px;
    padding: 0 34px 0 13px;
    font: inherit;
    font-size: 14px;
    color: var(--otv-ink);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6a78' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E") no-repeat right 13px center;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color var(--otv-speed), box-shadow var(--otv-speed);
}

.otv-filter__select:focus {
    outline: none;
    border-color: var(--otv-blue);
    box-shadow: var(--otv-ring);
}

.otv-filter__btn {
    height: 42px;
    padding: 0 26px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--otv-blue) 0%, var(--otv-blue-dark) 100%);
    border: none;
    border-radius: var(--otv-radius-sm);
    cursor: pointer;
    transition: transform var(--otv-speed), box-shadow var(--otv-speed), filter var(--otv-speed);
}

.otv-filter__btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(20, 128, 217, .28);
    transform: translateY(-1px);
}

.otv-filter__btn:active { transform: translateY(0); }

/* ---------- сетка карточек ---------- */
.otv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- карточка «сейчас в эфире» ---------- */
.otv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius);
    overflow: hidden;
    transition: transform var(--otv-speed), box-shadow var(--otv-speed), border-color var(--otv-speed);
}

.otv-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 128, 217, .38);
    box-shadow: var(--otv-shadow-hover);
}

.otv-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fafcfe 0%, #f3f6f9 100%);
    border-bottom: 1px solid var(--otv-line);
}

.otv-card__logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    overflow: hidden;
}

.otv-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.otv-card__heading {
    min-width: 0;
    flex: 1 1 auto;
}

.otv-card__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--otv-ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--otv-speed);
}

.otv-card__title:hover { color: var(--otv-blue); }

.otv-card__country {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--otv-muted-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* постер текущей передачи */
.otv-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eef3f8 0%, #e2eaf2 100%);
    overflow: hidden;
}

.otv-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.otv-card:hover .otv-card__media img { transform: scale(1.05); }

.otv-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f5fa 0%, #e4ecf4 100%);
}

.otv-card__media--empty::after {
    content: "";
    width: 34px;
    height: 34px;
    opacity: .34;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a6a78'%3E%3Cpath d='M21 6.5v11a2.5 2.5 0 0 1-3.6 2.2l-3.4-1.7v-12l3.4-1.7A2.5 2.5 0 0 1 21 6.5zM12 6.1 6.9 3.6A2.5 2.5 0 0 0 3 5.9v12.2a2.5 2.5 0 0 0 3.9 2.3L12 17.9z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.otv-card__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(20, 128, 217, .94);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.otv-card__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fffb0;
    box-shadow: 0 0 0 0 rgba(127, 255, 176, .8);
    animation: otvPulse 2s infinite;
}

@keyframes otvPulse {
    0%   { box-shadow: 0 0 0 0 rgba(127, 255, 176, .75); }
    70%  { box-shadow: 0 0 0 7px rgba(127, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(127, 255, 176, 0); }
}

/* программа под постером */
.otv-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}

.otv-card__program {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--otv-ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.otv-card__rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.otv-card__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    line-height: 1.35;
}

.otv-card__label {
    flex: 0 0 auto;
    color: var(--otv-muted-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.otv-card__value {
    min-width: 0;
    color: var(--otv-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.otv-card__value--now { color: var(--otv-blue); font-weight: 600; }

/* прогресс передачи */
.otv-card__bar {
    position: relative;
    height: 4px;
    margin-top: 8px;
    background: var(--otv-bg);
    border-radius: 3px;
    overflow: hidden;
}

.otv-card__bar i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    background: linear-gradient(90deg, var(--otv-blue) 0%, var(--otv-blue-light) 100%);
    border-radius: 3px;
    transition: width .6s ease;
}

.otv-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.otv-card__time {
    font-size: 11.5px;
    color: var(--otv-muted-light);
    font-variant-numeric: tabular-nums;
}

.otv-card__left {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--otv-blue);
    padding: 3px 8px;
    background: var(--otv-blue-soft);
    border-radius: 20px;
}

.otv-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--otv-blue) 0%, var(--otv-blue-dark) 100%);
    border-radius: var(--otv-radius-sm);
    text-decoration: none;
    transition: filter var(--otv-speed), box-shadow var(--otv-speed);
}

.otv-card__btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 6px 16px rgba(20, 128, 217, .3);
}

/* «показать ещё» */
.otv-more {
    display: flex;
    justify-content: center;
    margin: 26px 0 4px;
}

.otv-more__btn {
    min-width: 190px;
    padding: 12px 30px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--otv-blue);
    background: #fff;
    border: 1.5px solid rgba(20, 128, 217, .42);
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--otv-speed);
}

.otv-more__btn:hover {
    color: #fff;
    background: var(--otv-blue);
    border-color: var(--otv-blue);
    box-shadow: 0 8px 22px rgba(20, 128, 217, .26);
}

.otv-more__btn[disabled] { opacity: .55; cursor: default; }

/* ---------- пустое состояние ---------- */
.otv-empty {
    padding: 52px 20px;
    text-align: center;
    color: var(--otv-muted-light);
    font-size: 14px;
    background: var(--otv-bg);
    border-radius: var(--otv-radius);
}

/* ---------- SEO-описание ---------- */
.otv-seo {
    margin: 22px 0 0;
    padding: 22px 24px;
    background: var(--otv-bg);
    border-left: 3px solid var(--otv-blue);
    border-radius: 0 var(--otv-radius) var(--otv-radius) 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--otv-ink-soft);
}

.otv-seo h2,
.otv-seo h3,
.otv-seo h4 {
    margin: 18px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--otv-ink);
}

.otv-seo h2:first-child,
.otv-seo h3:first-child { margin-top: 0; }

.otv-seo p { margin: 0 0 10px; }
.otv-seo p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Расписание передач (блок в посте)
   ========================================================================== */
.otv-sched {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 0;
    padding: 20px;
    background: var(--otv-card);
    border-radius: var(--otv-radius);
    box-shadow: var(--otv-shadow);
}

.otv-sched__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--otv-line);
}

.otv-sched__heading {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--otv-ink);
}

.otv-sched__heading::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 15px;
    margin-right: 9px;
    vertical-align: -2px;
    border-radius: 2px;
    background: var(--otv-blue);
}

.otv-sched__item {
    display: flex;
    gap: 13px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    cursor: pointer;
    transition: border-color var(--otv-speed), box-shadow var(--otv-speed), transform var(--otv-speed);
}

.otv-sched__item:hover {
    border-color: rgba(20, 128, 217, .4);
    box-shadow: 0 6px 18px rgba(20, 128, 217, .1);
    transform: translateX(2px);
}

.otv-sched__item--now {
    background: linear-gradient(135deg, #f4faff 0%, #e9f4fe 100%);
    border-color: rgba(20, 128, 217, .42);
    box-shadow: 0 4px 16px rgba(20, 128, 217, .1);
}

.otv-sched__poster {
    flex: 0 0 82px;
    width: 82px;
    height: 52px;
    border-radius: var(--otv-radius-sm);
    background: var(--otv-bg);
    overflow: hidden;
}

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

.otv-sched__body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.otv-sched__time {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--otv-blue);
    font-variant-numeric: tabular-nums;
}

.otv-sched__title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--otv-ink);
}

.otv-sched__sub {
    font-size: 12px;
    color: var(--otv-muted);
}

.otv-sched__desc {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--otv-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.otv-sched__link {
    align-self: flex-start;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--otv-blue);
    text-decoration: none;
    border-bottom: 1px dashed rgba(20, 128, 217, .4);
    transition: border-color var(--otv-speed);
}

.otv-sched__link:hover { border-bottom-color: var(--otv-blue); }

.otv-sched__more {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.otv-sched__more-btn {
    padding: 9px 22px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--otv-blue);
    background: #fff;
    border: 1.5px solid rgba(20, 128, 217, .4);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--otv-speed);
}

.otv-sched__more-btn:hover {
    color: #fff;
    background: var(--otv-blue);
    border-color: var(--otv-blue);
}

/* ==========================================================================
   Каталог каналов
   ========================================================================== */
.otv-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.otv-ch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px 13px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius);
    text-align: center;
    transition: transform var(--otv-speed), box-shadow var(--otv-speed), border-color var(--otv-speed);
}

.otv-ch:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 128, 217, .38);
    box-shadow: var(--otv-shadow-hover);
}

.otv-ch__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    overflow: hidden;
    transition: border-color var(--otv-speed);
}

.otv-ch:hover .otv-ch__logo { border-color: rgba(20, 128, 217, .34); }

.otv-ch__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.otv-ch__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--otv-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--otv-speed);
}

.otv-ch__name:hover { color: var(--otv-blue); }

.otv-ch__country {
    font-size: 11px;
    color: var(--otv-muted-light);
}

/* ---------- карточка канала (страница канала) ---------- */
.otv-channel-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    padding: 22px;
    margin: 0 0 20px;
    background: var(--otv-card);
    border-radius: var(--otv-radius);
    box-shadow: var(--otv-shadow);
}

.otv-channel-hero__logo {
    flex: 0 0 108px;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius);
}

.otv-channel-hero__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.otv-channel-hero__body { flex: 1 1 260px; min-width: 0; }

.otv-channel-hero__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--otv-ink);
}

.otv-channel-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.otv-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    font-size: 12px;
    color: var(--otv-muted);
    background: var(--otv-bg);
    border-radius: 20px;
}

.otv-tag img { width: 15px; height: 11px; border-radius: 2px; }

.otv-channel-hero__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--otv-muted);
}

/* ---------- блок «в эфире» на странице канала ---------- */
.otv-onair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.otv-onair__item {
    display: flex;
    gap: 11px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
}

.otv-onair__item--now {
    background: linear-gradient(135deg, #f4faff 0%, #e9f4fe 100%);
    border-color: rgba(20, 128, 217, .4);
}

.otv-onair__poster {
    flex: 0 0 66px;
    width: 66px;
    height: 44px;
    border-radius: 5px;
    background: var(--otv-bg);
    overflow: hidden;
}

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

.otv-onair__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.otv-onair__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--otv-muted-light); }
.otv-onair__title { font-size: 13px; font-weight: 600; color: var(--otv-ink); }
.otv-onair__time { font-size: 11.5px; color: var(--otv-blue); font-variant-numeric: tabular-nums; }

/* ---------- программа по дням ---------- */
.otv-days {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
}

.otv-days__item {
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--otv-muted);
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--otv-speed);
}

.otv-days__item:hover {
    color: var(--otv-blue);
    border-color: rgba(20, 128, 217, .4);
}

.otv-days__item--active {
    color: #fff;
    background: var(--otv-blue);
    border-color: var(--otv-blue);
    font-weight: 600;
}

/* ---------- строка программы ---------- */
.otv-prog {
    display: flex;
    gap: 13px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    transition: border-color var(--otv-speed), box-shadow var(--otv-speed);
}

.otv-prog:hover {
    border-color: rgba(20, 128, 217, .34);
    box-shadow: 0 5px 16px rgba(20, 128, 217, .08);
}

.otv-prog--now {
    background: linear-gradient(135deg, #f4faff 0%, #e9f4fe 100%);
    border-color: rgba(20, 128, 217, .42);
}

.otv-prog--past { opacity: .58; }

.otv-prog__poster {
    flex: 0 0 96px;
    width: 96px;
    height: 60px;
    border-radius: 5px;
    background: var(--otv-bg);
    overflow: hidden;
}

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

.otv-prog__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }

.otv-prog__time {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--otv-blue);
    font-variant-numeric: tabular-nums;
}

.otv-prog__title { font-size: 13.5px; font-weight: 600; color: var(--otv-ink); line-height: 1.35; }
.otv-prog__sub { font-size: 12px; color: var(--otv-muted); }

.otv-prog__cat {
    align-self: flex-start;
    padding: 2px 8px;
    font-size: 10.5px;
    color: var(--otv-blue);
    background: var(--otv-blue-soft);
    border-radius: 10px;
}

.otv-prog__desc {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--otv-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.otv-prog__live {
    align-self: flex-start;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
    background: #e8453c;
    border-radius: 10px;
}

/* ---------- пагинация ---------- */
.otv-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 26px 0 4px;
}

.otv-pager__item {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--otv-muted);
    background: #fff;
    border: 1px solid var(--otv-line);
    border-radius: var(--otv-radius-sm);
    text-decoration: none;
    transition: all var(--otv-speed);
}

.otv-pager__item:hover {
    color: var(--otv-blue);
    border-color: rgba(20, 128, 217, .42);
}

.otv-pager__item--active {
    color: #fff;
    background: var(--otv-blue);
    border-color: var(--otv-blue);
    font-weight: 600;
}

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
    .otv-page { padding: 20px 15px 24px; }
    .otv-page__title { font-size: 20px; }
    .otv-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .otv-channels { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; }
}

@media (max-width: 600px) {
    .otv-page { padding: 16px 12px 20px; border-radius: 0; }
    .otv-page__title { font-size: 18px; }
    .otv-filter__row { flex-direction: column; }
    .otv-filter__input,
    .otv-filter__select,
    .otv-filter__btn { width: 100%; flex: 1 1 auto; }
    .otv-grid { grid-template-columns: 1fr; gap: 12px; }
    .otv-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .otv-ch { padding: 12px 8px 10px; }
    .otv-ch__logo { width: 60px; height: 60px; }
    .otv-sched { padding: 14px; }
    .otv-sched__poster { flex-basis: 64px; width: 64px; height: 42px; }
    .otv-prog { flex-direction: column; }
    .otv-prog__poster { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .otv-channel-hero { padding: 16px; gap: 14px; }
    .otv-channel-hero__logo { flex-basis: 78px; width: 78px; height: 78px; }
    .otv-channel-hero__title { font-size: 18px; }
}

/* для тёмных тем, если появятся */
@media (prefers-color-scheme: dark) {
    .otv-page,
    .otv-sched { background: rgba(28, 34, 42, .9); }
    .otv-card,
    .otv-ch,
    .otv-prog,
    .otv-onair__item,
    .otv-sched__item { background: #1f252e; border-color: #2c3540; }
    .otv-card__title,
    .otv-ch__name,
    .otv-prog__title,
    .otv-sched__title,
    .otv-page__title,
    .otv-sched__heading { color: #f2f6fa; }
    .otv-card__top { background: linear-gradient(180deg, #232b35 0%, #1c232c 100%); border-color: #2c3540; }
    .otv-card__logo,
    .otv-ch__logo,
    .otv-channel-hero__logo { background: #262e38; border-color: #2c3540; }
    .otv-seo { background: #1c232c; color: #c3ccd6; }
}
/* ---------- кнопка «смотреть» (иконка play в шапке карточки) ---------- */
.otv-card__play {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    color: var(--otv-blue);
    background: rgba(20, 128, 217, .1);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--otv-speed);
}

.otv-card__play:hover {
    color: #fff;
    background: var(--otv-blue);
    box-shadow: 0 5px 14px rgba(20, 128, 217, .34);
    transform: scale(1.06);
}

.otv-card__play-icon {
    display: block;
    width: 26px;
    height: 26px;
}

/* ---------- мини-карточки (блок «сейчас в эфире» на главной) ---------- */
.otv-grid--mini { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

.otv-card--mini .otv-card__top { padding: 9px 11px; }
.otv-card--mini .otv-card__logo { flex-basis: 34px; width: 34px; height: 34px; padding: 4px; }
.otv-card--mini .otv-card__title { font-size: 12.5px; }
.otv-card--mini .otv-card__body { padding: 9px 11px 11px; gap: 6px; }
.otv-card--mini .otv-card__program { font-size: 12.5px; -webkit-line-clamp: 1; }
.otv-card--mini .otv-card__time { font-size: 11px; }

/* ---------- сетка программы ---------- */
.otv-prog-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.otv-grid--prog { grid-template-columns: 1fr; }

/* ---------- дни программы ---------- */
.otv-days__item { display: inline-flex; align-items: center; gap: 6px; }
.otv-days__date { font-size: 11px; opacity: .72; }

/* ---------- обёртка блока «в эфире» ---------- */
.otv-onair-wrap { margin: 0 0 20px; }

/* ---------- скелетоны загрузки ---------- */
.otv-skeletons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.otv-card--skeleton { pointer-events: none; }
.otv-card--skeleton .otv-skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f6f9fc 50%, #eef2f6 75%); background-size: 200% 100%; animation: otvShimmer 1.4s infinite; border-radius: 6px; }

.otv-skeleton--logo { width: 44px; height: 44px; flex: 0 0 44px; }
.otv-skeleton--poster { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.otv-skeleton--col { height: 12px; width: 100%; }
.otv-skeleton-row { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; }

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

/* ---------- фокус-доступность ---------- */
.otv-card__title:focus-visible,
.otv-card__btn:focus-visible,
.otv-ch__name:focus-visible,
.otv-filter__input:focus-visible,
.otv-filter__select:focus-visible,
.otv-filter__btn:focus-visible,
.otv-more__btn:focus-visible,
.otv-pager__item:focus-visible {
    outline: 2px solid var(--otv-blue);
    outline-offset: 2px;
}