/* ==========================================================================
   gttv.ge — site stylesheet
   The same GTTV (boxed page, grey navigation bar with red accents, ALK Sanet
   display type, grey-tab section headings), refreshed. No framework, no build.
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 components · 6 home
             7 article · 8 listings · 9 pages · 10 footer · 11 utilities · 12 print
   ========================================================================== */

/* 1 ── tokens ─────────────────────────────────────────────────────────── */
@font-face {
    font-family: "ALK Sanet";
    src: url("../fonts/alk-sanet.woff2") format("woff2"), url("../fonts/alk-sanet.woff") format("woff");
    font-display: swap;
}
:root {
    --red: #be1d25;
    --red-dark: #8f0a10;
    --nav: #a7a7a9;
    --nav-dark: #8e9194;
    --nav-ink: #111;           /* text on the grey bar: 8.4:1 (white was 2.4:1) */
    --page: #f9f9f9;
    --paper: #fff;
    --ink: #1c1c1e;
    --text: #2b2b2e;
    --muted: #6d6d72;
    --line: #e5e5e5;
    --chip: #e5e5e5;
    --video: #111;
    --radius: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-hover: 0 6px 18px rgba(0, 0, 0, .12);
    --wrap: 1140px;
    --gutter: 16px;
    --display: "ALK Sanet", "BPG Arial Caps", system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", "Noto Sans Georgian", "BPG Arial", Sylfaen, Roboto, Arial, sans-serif;
    --focus: 0 0 0 3px rgba(190, 29, 37, .45);
}

/* 2 ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 16px/1.6 var(--body);
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; box-shadow: var(--focus); border-radius: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
::selection { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 3 ── layout ─────────────────────────────────────────────────────────── */
.site {
    max-width: var(--wrap);
    margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .03), 0 2px 24px rgba(0, 0, 0, .05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.wrap { width: 100%; padding: 0 var(--gutter); }
.main { flex: 1; padding-top: 24px; padding-bottom: 40px; }
.main:focus { outline: none; }
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    :root { --gutter: 20px; }
    .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
    .side { border-left: 1px solid var(--line); padding-left: 24px; }
}
@media (min-width: 1140px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }

/* 4 ── header ─────────────────────────────────────────────────────────── */
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }

/* top bar: TOP news ticker + top menu (as on the WordPress theme) */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 42px; }
.ticker { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.ticker-ctrl { display: flex; gap: 2px; }
.ticker-ctrl button {
    width: 24px; height: 24px; display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--paper); border-radius: 2px; padding: 0;
}
.ticker-ctrl button:hover { border-color: var(--red); }
.ticker-ctrl svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 3; }
.ticker-label {
    flex: none; background: var(--red); color: #fff; font-family: var(--display);
    font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 2px; white-space: nowrap;
}
.ticker-label:hover { color: #fff; background: var(--red-dark); }
.ticker-items { list-style: none; margin: 0; padding: 0; min-width: 0; flex: 1; }
.ticker-items a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
.ticker-items li { animation: ticker-in .35s ease-out; }
@keyframes ticker-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.topmenu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topmenu a { font-family: var(--display); color: var(--red); font-size: 14px; letter-spacing: .02em; }
.topmenu a:hover, .topmenu a[aria-current] { color: var(--red-dark); }

/* masthead: grey bar, logo, main navigation */
.masthead {
    background: var(--nav);
    border-bottom: 3px solid var(--red);
    position: relative; z-index: 50;
}
.masthead.is-stuck { position: sticky; top: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.masthead-inner { display: flex; align-items: center; gap: 12px; min-height: 80px; }
.logo { flex: none; display: block; line-height: 0; }
.logo img { width: 168px; height: auto; }
.mainnav { flex: 1; min-width: 0; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu > li > a {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--display); color: var(--nav-ink); font-size: 16px; letter-spacing: .02em;
}
.menu-icon { width: 17px; height: 17px; fill: currentColor; flex: none; }
.submenu { list-style: none; margin: 0; padding: 0; }
.menu-mobile-extra { list-style: none; margin: 0; padding: 0; }
.nav-toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; border-radius: var(--radius);
}
.nav-toggle-bars { display: grid; gap: 5px; width: 24px; margin: 0 auto; }
.nav-toggle-bars span { height: 3px; background: var(--nav-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.header-search { position: relative; flex: none; }
.search-toggle { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; }
.search-toggle svg { width: 20px; height: 20px; fill: var(--nav-ink); }
.search-toggle:hover { background: rgba(255, 255, 255, .25); }
.search-form {
    position: absolute; right: 0; top: calc(100% + 18px); z-index: 60;
    display: none; gap: 6px; width: min(380px, calc(100vw - 32px));
    background: var(--paper); padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-hover); border-top: 3px solid var(--red);
}
.search-form.is-open { display: flex; }
.search-form input { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: var(--radius); padding: 8px 10px; }
.search-form button { border: 0; background: var(--red); color: #fff; border-radius: var(--radius); padding: 8px 14px; font-weight: 600; }
.sub-toggle { display: none; }

/* desktop navigation */
@media (min-width: 1000px) {
    .menu { display: flex; justify-content: flex-end; gap: 4px; }
    .menu > li { position: relative; }
    .menu > li > a { padding: 0 14px; line-height: 80px; transition: color .15s, box-shadow .15s; }
    .menu > li > a:hover, .menu > li:focus-within > a { color: #000; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }
    .menu > li.is-active > a { color: #000; box-shadow: inset 0 -4px 0 var(--red); }
    .has-sub > a::after {
        content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0;
        transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .8;
    }
    .submenu {
        position: absolute; left: 0; top: 100%; min-width: 240px; z-index: 70;
        background: var(--paper); border-top: 3px solid var(--red); box-shadow: var(--shadow-hover);
        padding: 6px 0; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    }
    .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .submenu.is-open { visibility: visible; opacity: 1; transform: none; }
    .menu > li:last-child .submenu { left: auto; right: 0; }
    .submenu a { display: block; padding: 8px 18px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
    .submenu a:hover, .submenu a[aria-current] { background: #f4f4f4; color: var(--red); }
    .menu-mobile-extra { display: none; }
}
@media (min-width: 1000px) and (max-width: 1100px) { .menu > li > a { padding: 0 9px; font-size: 15px; } }

/* mobile navigation: drawer under the bar */
@media (max-width: 999px) {
    .masthead-inner { min-height: 64px; }
    .logo img { width: 140px; }
    .nav-toggle { display: block; }
    .header-search { order: 3; }
    .mainnav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--paper); box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
        max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain;
        display: none; border-top: 3px solid var(--red);
    }
    .mainnav.is-open { display: block; }
    .menu > li { position: relative; border-bottom: 1px solid var(--line); }
    .menu > li > a { color: var(--ink); padding: 14px var(--gutter); font-size: 16px; }
    .menu > li.is-active > a { color: var(--red); }
    .sub-toggle {
        display: block; position: absolute; right: 6px; top: 6px; width: 40px; height: 40px;
        border: 0; background: transparent; border-radius: var(--radius);
    }
    .sub-toggle::before {
        content: ""; display: block; width: 9px; height: 9px; margin: 0 auto; border: solid var(--ink);
        border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
    }
    .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
    .submenu { display: none; background: #f7f7f7; padding: 4px 0; }
    .submenu.is-open { display: block; }
    .submenu a { display: block; padding: 10px calc(var(--gutter) + 26px); font-size: 15px; }
    .menu-mobile-extra { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px var(--gutter) 16px; }
    .menu-mobile-extra a { font-family: var(--display); color: var(--red); font-size: 14px; }
    .search-form { top: calc(100% + 11px); }
}
@media (max-width: 640px) {
    .topmenu { display: none; }
    .topbar-inner { min-height: 38px; }
}

/* 5 ── components ─────────────────────────────────────────────────────── */
/* section heading: grey tab with red display text over a light rule (WordPress "divider") */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    border-bottom: 4px solid var(--chip); margin: 0 0 18px;
}
.section-title {
    display: inline-block; margin: 0; background: var(--chip); color: var(--red);
    font-family: var(--display); font-size: 16px; font-weight: 400; letter-spacing: .03em;
    line-height: 1.2; padding: 9px 14px 7px;
}
.section-title a { color: inherit; }
.section-title a:hover { color: var(--red-dark); }
.section-more { font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.section-more:hover { color: var(--red); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--chip); color: var(--red); border: 1px solid #d4d4d6; border-radius: 6px;
    font-family: var(--display); font-size: 14px; letter-spacing: .02em; padding: 10px 16px 8px;
    transition: box-shadow .15s, background .15s;
}
.btn:hover { color: var(--red); box-shadow: 3px 3px 3px 0 #bababa; background: #ececec; }
.btn-ghost { background: transparent; }
button.btn { cursor: pointer; }

.badge {
    display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    line-height: 1; padding: 4px 7px 3px; border-radius: 2px; letter-spacing: .02em;
}
a.badge:hover { background: var(--red-dark); color: #fff; }
.badge-top { font-family: var(--display); font-weight: 400; }
.kicker { display: inline-block; color: var(--red); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.views { display: inline-flex; align-items: center; gap: 4px; }
.views svg { width: 14px; height: 14px; fill: currentColor; opacity: .75; }
.muted { color: var(--muted); }

/* cards */
.card { position: relative; }
.card-media { display: block; position: relative; overflow: hidden; background: #ddd; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-title { font-size: 15.5px; line-height: 1.4; margin: 0 0 6px; font-weight: 700; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--red); }
.card-excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.play {
    position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
    border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .9);
    transition: background .2s, transform .2s;
}
.play::after {
    content: ""; position: absolute; left: 20px; top: 15px;
    border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.card:hover .play, .yt-facade:hover .play, .live-facade:hover .play { background: var(--red); transform: scale(1.06); }
.card-row .play { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-width: 1px; }
.card-row .play::after { left: 9px; top: 7px; border-width: 5px 0 5px 8px; }

.card-lead .badge-top { position: absolute; left: 0; top: 0; z-index: 2; border-radius: var(--radius) 0 2px 0; }
.card-lead .card-body { padding-top: 12px; }
.card-lead .card-title { font-size: 19px; line-height: 1.35; }

.card-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.card-row .card-media { aspect-ratio: 4 / 3; }
.card-row .card-title { font-size: 14px; line-height: 1.4; margin-bottom: 4px; }

.card-grid .card-body { padding-top: 10px; }

.card-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-list .badge-top { position: absolute; left: 0; top: 0; border-radius: var(--radius) 0 2px 0; }
.card-list .card-title { font-size: 18px; }
.card-list .more { display: inline-block; margin-top: 8px; color: var(--red); font-size: 13px; font-weight: 700; border-left: 2px solid var(--red); padding-left: 6px; }
@media (min-width: 600px) {
    .card-list { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
}

.card-video { background: var(--video); border-radius: var(--radius); overflow: hidden; }
.card-video .card-media { border-radius: 0; aspect-ratio: 16 / 10; }
.card-video .card-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.card-video .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; z-index: 2; pointer-events: none; }
.card-video .card-body a { pointer-events: auto; }
.card-video .card-title { font-size: 15px; margin: 6px 0 0; }
.card-video .card-title a { color: #fff; }
.card-video .play { margin-top: -40px; }

.grid { display: grid; gap: 22px 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.video-grid { gap: 8px; }
.stack { display: grid; gap: 22px; }

/* tabs (ARIA; without JS every panel is simply shown) */
.tab-list {
    display: flex; gap: 2px; border-bottom: 4px solid var(--chip); margin-bottom: 18px;
    overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
    flex: none; border: 0; background: transparent; color: var(--ink);
    font-family: var(--display); font-size: 15px; letter-spacing: .02em; padding: 10px 14px 7px; border-radius: 2px 2px 0 0;
}
.tab-list [role="tab"]:hover { color: var(--red); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--chip); color: var(--red); }
.js .tab-panel[data-inactive] { display: none; }
.tab-more { text-align: right; margin: 18px 0 0; }

/* live player */
.live-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-facade {
    position: absolute; inset: 0; width: 100%; border: 0; padding: 0; color: #fff;
    background: radial-gradient(circle at 50% 45%, #3a3a3d, #0d0d0e 70%);
}
.live-badge {
    position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); font-family: var(--display); font-size: 12px; padding: 4px 8px 3px; border-radius: 2px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.live-label { position: absolute; left: 0; right: 0; bottom: 12px; font-family: var(--display); font-size: 14px; }

/* YouTube facade */
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 0 1em; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #000; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-facade .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.yt-facade .play::after { left: 26px; top: 20px; border-width: 13px 0 13px 21px; }

/* advertising slots */
.ad { margin: 22px 0; text-align: center; }
.ad-slot { display: grid; gap: 16px; justify-items: center; }
.ad-slot > a, .ad-slot > img, .ad-slot > p { display: block; max-width: 100%; margin: 0; }
.ad-slot img { display: block; border-radius: 2px; }
.ad-stack .ad-slot { gap: 20px; }
.ad-inline { margin: 1.5em 0; }
.ad-header, .ad-footer { margin: 16px auto; }

/* pagination */
.pagination { margin: 30px 0 8px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--radius); background: var(--chip); color: var(--ink); font-weight: 700; font-size: 14px;
}
.pagination a:hover { background: var(--red); color: #fff; }
.pagination .current { background: var(--red); color: #fff; }
.pagination .dots { align-self: center; color: var(--muted); padding: 0 2px; }

/* breadcrumbs, chips, tags */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #bbb; }
.crumbs a:hover { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.chips a, .tags a, .tag-cloud a {
    display: inline-block; background: #f1f1f2; border: 1px solid var(--line); border-radius: 999px;
    padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.chips a:hover, .tags a:hover { border-color: var(--red); color: var(--red); }

/* 6 ── home ───────────────────────────────────────────────────────────── */
.home-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .home-top { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
@media (min-width: 1140px) { .home-top { grid-template-columns: minmax(0, 1fr) 320px; } }
.tab-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tab-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.tab-rows { display: grid; gap: 14px; align-content: start; }
.home-side { display: grid; gap: 22px; align-content: start; }
.home-side .section-head { margin-bottom: 0; }
.home-side .ad { margin: 0; }

.home-videos { margin: 36px 0; }
.playlist {
    display: grid; grid-template-columns: minmax(0, 1fr); background: var(--video); color: #ddd;
    margin: 0 calc(var(--gutter) * -1); padding: 12px;
}
@media (min-width: 900px) { .playlist { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin: 0; border-radius: var(--radius); padding: 14px; } }
.playlist-player .embed { margin: 0; }
.playlist-now { margin: 10px 2px 4px; font-weight: 700; }
.playlist-now a { color: #fff; }
.playlist-now a:hover { color: #ff8a8f; }
.playlist-head { color: #fff; font-weight: 700; font-size: 14px; margin: 8px 4px 10px; }
.playlist-head span { display: block; color: #999; font-weight: 400; font-size: 12px; margin-top: 2px; }
.playlist-list ol { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.playlist-list a {
    display: grid; grid-template-columns: 18px 104px minmax(0, 1fr); gap: 10px; align-items: center;
    padding: 8px 6px; border-left: 3px solid transparent; color: #ddd; font-size: 13px; line-height: 1.35;
}
.playlist-list a:hover, .playlist-list .is-active a { background: #1d1d1f; color: #fff; }
.playlist-list .is-active a { border-left-color: var(--red); color: #ff8a8f; }
.playlist-list img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.playlist-n { color: #888; text-align: center; font-size: 12px; }
.playlist-t time { display: block; color: #888; font-size: 11px; margin-top: 3px; }

.programs { margin: 36px 0 12px; }
.program-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 760px) { .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.program-tile {
    position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
    background: #2a013f; color: #fff; box-shadow: var(--shadow);
}
.program-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.program-tile::after { content: ""; position: absolute; inset: 0; background: rgba(42, 1, 63, .87); opacity: 0; transition: opacity .25s; }
.program-name, .program-cta { position: absolute; left: 14px; right: 14px; z-index: 2; opacity: 0; transition: opacity .25s, transform .25s; }
.program-name { top: 38%; font-family: var(--display); font-size: 18px; text-align: center; transform: translateY(8px); }
.program-cta { bottom: 16px; text-align: center; font-size: 13px; font-weight: 700; }
.program-cta::before { content: ""; display: block; width: 40px; height: 2px; background: var(--red); margin: 0 auto 8px; }
.program-tile:hover, .program-tile:focus-visible { color: #fff; }
.program-tile:hover img, .program-tile:focus-visible img { transform: scale(1.05); }
.program-tile:hover::after, .program-tile:focus-visible::after,
.program-tile:hover .program-name, .program-tile:focus-visible .program-name,
.program-tile:hover .program-cta, .program-tile:focus-visible .program-cta { opacity: 1; transform: none; }
@media (hover: none) {
    /* touch screens: title always visible on a bottom gradient */
    .program-tile::after { opacity: 1; background: linear-gradient(transparent 50%, rgba(20, 0, 30, .85)); }
    .program-name { opacity: 1; top: auto; bottom: 12px; transform: none; font-size: 16px; text-align: left; }
    .program-cta { display: none; }
}

/* poll */
.poll { background: #fafafa; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.poll fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.poll-q { font-family: var(--display); color: var(--ink); font-size: 16px; line-height: 1.4; margin-bottom: 12px; padding: 0; }
.poll-answers { display: grid; gap: 8px; }
.poll-a {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; cursor: pointer;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
}
.poll-a:hover { border-color: #bbb; }
.poll-a input { accent-color: var(--red); width: 17px; height: 17px; margin: 0; }
.poll-result { grid-column: 1 / -1; display: none; align-items: center; gap: 8px; }
.poll-bar { flex: 1; height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--red); }
.poll-pc { font-size: 12px; font-weight: 700; min-width: 36px; text-align: right; }
.poll-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.poll-foot .btn { background: #237f7d; border-color: #237f7d; color: #fff; font-family: var(--body); font-weight: 700; font-size: 14px; border-radius: 3px; }
.poll-foot .btn:hover { background: #1a6563; color: #fff; }
.poll-total { font-size: 12px; display: none; }
.poll[data-voted] .poll-result { display: flex; }
.poll[data-voted] .poll-a input, .poll[data-voted] .poll-foot .btn { display: none; }
.poll[data-voted] .poll-a { cursor: default; grid-template-columns: 1fr; }
.poll[data-voted] .poll-total { display: inline; }

/* 7 ── article ────────────────────────────────────────────────────────── */
.article-media { margin: 0 0 16px; }
.article-media img { display: block; width: 100%; border-radius: var(--radius); }
.article-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.article-badges time { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.article-title { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35; letter-spacing: .01em; margin-bottom: 14px; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    background: #f5f5f5; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 22px; color: var(--muted); font-size: 13px;
}
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button {
    display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; color: #fff;
    font-size: 12.5px; font-weight: 700; padding: 6px 11px; line-height: 1.2;
}
.share-fb { background: #1464d6; }
.share-tg { background: #0f6ea8; }
.share-x { background: #111; }
.share-copy { background: #6d6d72; }
.share a:hover, .share button:hover { color: #fff; filter: brightness(1.1); }

.prose { font-size: 17px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-dark); }
.prose h2 { font-size: 1.35em; margin: 1.4em 0 .6em; }
.prose h3 { font-size: 1.15em; margin: 1.3em 0 .5em; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.prose blockquote {
    margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--red); color: var(--ink); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; }
.prose iframe:not(.embed iframe) { display: block; margin: 1em auto; border: 0; }
.prose .twitter-tweet, .prose .instagram-media { margin: 1.2em auto; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.tags-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.related { margin-top: 36px; }

/* 8 ── listings / program ──────────────────────────────────────────────── */
.listing .section-head { margin-bottom: 20px; }
.program-head { display: grid; gap: 16px; align-items: center; margin-bottom: 24px; }
@media (min-width: 600px) { .program-head { grid-template-columns: 260px minmax(0, 1fr); } }
.program-head img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.program-title { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.video-caption { margin: -4px 0 26px; font-weight: 700; }
.video-caption time { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* 9 ── static pages, forms, search, 404 ─────────────────────────────────── */
.content-block { margin-bottom: 24px; }
.content-block .price-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.content-block .price-list li { background: #f7f7f7; border-left: 3px solid var(--red); padding: 10px 14px; border-radius: 2px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.doc-list { padding-left: 1.1em; }
.note { background: #f4f4f5; border-left: 4px solid var(--nav); padding: 12px 16px; border-radius: 2px; }

.contact-form { margin-top: 10px; }
.contact-form h2 { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--red); }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.field label span { color: var(--red); }
.field input, .field textarea, .search-big input {
    width: 100%; border: 1px solid #c9c9cc; border-radius: var(--radius); padding: 10px 12px; background: #fff;
}
.field input:focus, .field textarea:focus, .search-big input:focus { border-color: var(--red); box-shadow: var(--focus); outline: none; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.field-error { color: var(--red-dark); font-size: 13px; margin: 4px 0 0; font-weight: 600; }
.notice { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.notice-ok { background: #edf8ef; color: #1d6b2c; border: 1px solid #b7e1c0; }
.notice-error { background: #fdeeee; color: var(--red-dark); border: 1px solid #f2c0c2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.search-big { display: flex; gap: 8px; margin: 0 0 18px; max-width: 640px; }
.search-big .btn { flex: none; }

.quiz { display: grid; gap: 22px; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
.quiz-q legend { font-weight: 700; padding: 0 6px; }
.quiz-q > img { display: block; margin: 8px 0 12px; border-radius: var(--radius); }
.quiz-answers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.quiz-a { display: grid; gap: 6px; justify-items: center; border: 2px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 10px; font-weight: 700; }
.quiz-a img { max-height: 120px; object-fit: contain; }
.quiz-a:hover:not([disabled]) { border-color: var(--nav-dark); }
.quiz-a.is-right { border-color: #2a8a3e; background: #edf8ef; }
.quiz-a.is-wrong { border-color: var(--red); background: #fdeeee; }
.quiz-explain { margin-top: 10px; background: #f7f7f7; padding: 10px 14px; border-radius: var(--radius); }
.quiz-result { font-family: var(--display); font-size: 18px; color: var(--red); }

/* sidebar */
.sidebar { display: grid; gap: 26px; align-content: start; }
.sidebar .ad { margin: 0; }
.side-cards { display: grid; gap: 20px; }
.side-cards .card-title { font-size: 14.5px; }
@media (min-width: 560px) and (max-width: 899px) { .side-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 10 ── footer ─────────────────────────────────────────────────────────── */
.footer { background: var(--nav); color: var(--nav-ink); border-bottom: 3px solid var(--red); margin-top: 20px; font-size: 14px; }
.footer a { color: var(--nav-ink); }
.footer a:hover { color: #000; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.footer-logo img { width: 180px; }
.footer .contact-list { margin-top: 14px; gap: 4px; color: var(--nav-ink); }
.footer-title {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--nav-ink); margin: 4px 0 12px;
    padding-left: 8px; border-left: 3px solid var(--red);
}
.footer-sub { font-weight: 700; margin: 0 0 6px; }
.footer-links, .footer-docs ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: rgba(255, 255, 255, .45); border-color: transparent; color: var(--nav-ink); font-weight: 400; border-radius: 3px; }
.tag-cloud a:hover { background: #fff; color: #000; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(0, 0, 0, .12); font-size: 12.5px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.footer-bottom li + li::before { content: "•"; color: var(--red); margin-right: 18px; }
.footer-bottom a { font-family: var(--display); font-size: 12px; }

.to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--red); box-shadow: var(--shadow-hover); display: grid; place-items: center;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; }
.to-top:hover { background: var(--red-dark); }

/* 11 ── utilities ─────────────────────────────────────────────────────── */
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* 12 ── print ─────────────────────────────────────────────────────────── */
@media print {
    .topbar, .masthead, .side, .ad, .share, .related, .footer, .to-top, .pagination, .home-side { display: none !important; }
    .site { box-shadow: none; max-width: none; }
    .prose a { color: inherit; text-decoration: none; }
}
