@charset "UTF-8";
/* 07.10.2026: страница канала - новый дизайн (TV.md §1.5).
   Цвета: красный - эфир сейчас, зелёный - действие / выбранное, серый - интерфейс, синий - ссылки */
.tvc { --tvc-red: #d93a3a; --tvc-green: #2f9e57; --tvc-text: #16181d; --tvc-muted: #5b6270; --tvc-line: #eceef1; --tvc-border: #dfe2e7; --tvc-link: #1d5fbf;
    color: var(--tvc-text); background: #f4f5f7; border-radius: 18px; padding: 16px 24px 24px; margin: 8px 0 20px; }
@media screen and (max-width: 767px) { .tvc { padding: 12px 12px 20px; border-radius: 0; margin: 0 -0.625rem 16px; } }
.tvc [hidden], .tvc-sheet[hidden] { display: none !important; }
.tvc a { color: var(--tvc-link); }

.tvc-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 18px; }
.tvc-logo { width: auto; height: 60px; max-width: 150px; object-fit: contain; flex: 0 0 auto; }
.tvc-h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; }
.tvc-sub { margin-top: 4px; font-size: 14px; color: var(--tvc-muted); }

/* дни недели (десктоп) */
.tvc-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tvc-day { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--tvc-border); background: #fff; color: var(--tvc-text); cursor: pointer; }
.tvc-day.is-active { background: var(--tvc-green); border-color: var(--tvc-green); color: #fff; font-weight: 700; }

/* фильтры */
.tvc-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tvc-chip { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tvc-border); background: #fff; color: var(--tvc-text); cursor: pointer; }
.tvc-chip.is-active { background: var(--tvc-green); border-color: var(--tvc-green); color: #fff; font-weight: 600; }
.tvc-switch-label { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3b414c; cursor: pointer; }
.tvc-switch { width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--tvc-border); position: relative; padding: 0; cursor: pointer; flex: 0 0 auto; }
.tvc-switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.tvc-switch[aria-checked="true"] { background: var(--tvc-green); }
.tvc-switch[aria-checked="true"] span { left: 21px; }

/* раскладка: лента + сайдбар */
.tvc-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.tvc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tvc-side { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }

/* текущий матч в эфире */
.tvc-hero { background: #16181d; color: #fff; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.tvc-hero-top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tvc-hero-time { font-weight: 600; }
.tvc-hero-meta { margin-left: auto; color: #aab0bb; }
.tvc-hero-title { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; }
.tvc-live, .tvc-now-badge { background: var(--tvc-red); color: #fff; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 5px; letter-spacing: .3px; }
.tvc-progress { height: 6px; background: #343944; border-radius: 6px; overflow: hidden; }
.tvc-progress div { height: 100%; background: var(--tvc-red); border-radius: 6px; }
.tvc .tvc-btn-forecast { display: inline-block; text-decoration: none; background: var(--tvc-green); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 12px; }

/* лента программы: один контейнер, строки с разделителями */
.tvc-list { background: #fff; border: 1px solid var(--tvc-line); border-radius: 16px; overflow: hidden; }
.tvc-past-toggle { font: inherit; width: 100%; text-align: left; font-size: 14px; color: var(--tvc-muted); background: #fafbfc; border: 0; border-bottom: 1px solid var(--tvc-line); padding: 12px 20px; cursor: pointer; }
.tvc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--tvc-line); font-size: 15px; }
.tvc-row:last-of-type { border-bottom: 0; }
.tvc-row.is-past { color: var(--tvc-muted); }
.tvc-row.is-now { background: #fff5f5; }
.tvc-row.is-now .tvc-title { font-weight: 700; }
.tvc-time { font-weight: 700; display: flex; flex-direction: column; line-height: 1.2; }
.tvc-time small { font-size: 11px; font-weight: 400; color: var(--tvc-muted); }
.tvc-title a { color: var(--tvc-text); text-decoration: none; font-weight: 600; }
.tvc-title a:hover { color: var(--tvc-link); }
.tvc-now-badge { display: none; margin-right: 8px; vertical-align: 2px; }
.tvc-row.is-now[data-live="1"] .tvc-now-badge { display: inline-block; } /* LIVE - только прямой эфир, повтор просто выделен */
.tvc-tag { font-size: 12px; color: var(--tvc-muted); margin-left: 6px; white-space: nowrap; }
.tvc-tag-live { color: #1f7a43; background: #e6f4ec; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.tvc-cta a { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tvc-empty { padding: 18px 20px; color: var(--tvc-muted); font-size: 15px; }
.tvc-allonline { font-size: 14px; }

/* сайдбар */
.tvc-card { background: #fff; border: 1px solid var(--tvc-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tvc-card-h { font-size: 15px; font-weight: 800; }
.tvc .tvc-now-item, .tvc .tvc-pop { text-decoration: none; color: var(--tvc-text); display: flex; }
.tvc-now-item { flex-direction: column; gap: 2px; }
.tvc-now-ch { font-size: 12px; color: var(--tvc-red); font-weight: 700; }
.tvc-now-title { font-size: 15px; font-weight: 600; }
.tvc-pop { gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--tvc-line); }
.tvc-pop img { width: auto; height: 24px; max-width: 48px; object-fit: contain; flex: 0 0 auto; margin-top: 2px; }
.tvc-pop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.tvc-pop-name { font-size: 14px; font-weight: 700; }
.tvc-pop-now b { color: var(--tvc-red); }
.tvc-pop-next { color: var(--tvc-muted); }
.tvc-card-more { font-size: 14px; }

/* телефон: липкая строка «день + фильтры», панель фильтров */
.tvc-mbar { display: none; }
.tvc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tvc-sheet { position: fixed; inset: 0; z-index: 1000; }
.tvc-sheet-back { position: absolute; inset: 0; background: rgba(22,24,29,.55); }
.tvc-sheet-box { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 16px 0; display: flex; flex-direction: column; gap: 14px; max-height: 85vh; overflow-y: auto; }
.tvc-sheet-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--tvc-border); }
.tvc-sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 800; }
.tvc-sheet-reset { font: inherit; font-size: 14px; color: var(--tvc-link); background: none; border: 0; min-height: 44px; }
.tvc-sheet-reset:disabled { color: #aab0bb; }
.tvc-sheet-label { font-size: 13px; font-weight: 700; color: var(--tvc-muted); }
.tvc-sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tvc-sheet-chips .tvc-chip { min-height: 44px; }
.tvc-sheet-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 15px; font-weight: 600; border-top: 1px solid var(--tvc-line); padding-top: 12px; }
.tvc-sheet-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--tvc-line); margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.tvc-sheet-apply { font: inherit; width: 100%; font-size: 16px; font-weight: 700; min-height: 52px; border-radius: 14px; border: 0; background: var(--tvc-green); color: #fff; }

@media screen and (max-width: 767px) {
    .tvc-head { gap: 12px; margin-bottom: 10px; }
    .tvc-logo { height: 44px; }
    .tvc-h1 { font-size: 20px; }
    .tvc-sub { font-size: 12px; }
    .tvc-days, .tvc-filters { display: none; }
    .tvc-mbar { display: flex; gap: 8px; position: sticky; top: 0; z-index: 20; background: #fff; padding: 8px 0 12px; margin-bottom: 4px; }
    .tvc-mbar-day { flex: 1; }
    .tvc-day-select { width: 100%; height: 44px; margin: 0; border-radius: 12px; border: 0; background: var(--tvc-green); color: #fff; font-weight: 700; font-size: 14px; padding: 0 12px; }
    .tvc-mbar-filters { font: inherit; flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--tvc-border); background: #fff; color: var(--tvc-text); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .tvc-mbar-badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--tvc-green); border-radius: 999px; padding: 2px 8px; }
    .tvc-hero { padding: 14px 16px; gap: 8px; border-radius: 16px; }
    .tvc-hero-top { font-size: 12px; }
    .tvc-hero-title { font-size: 22px; }
    .tvc-progress { height: 4px; }
    .tvc .tvc-btn-forecast { display: block; text-align: center; padding: 11px; }
    .tvc-row { grid-template-columns: 52px minmax(0, 1fr); padding: 12px 14px; font-size: 14px; }
    .tvc-cta { grid-column: 2; margin-top: 4px; }
    .tvc-cta:empty { display: none; }
    .tvc-tag { display: inline-block; margin: 3px 0 0; }
    .tvc-side { max-width: none; }
}
