:root {
    --bg: #f5f7fa;
    --surface: #fff;
    --surface-soft: #f7faff;
    --text: #10213c;
    --muted: #718096;
    --line: #e5eaf0;
    --blue: #1468e8;
    --blue-soft: #eaf3ff;
    --radius: 12px;
    --shadow: 0 4px 14px rgba(17,36,64,.065);
    --sidebar: 320px;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button,input { font: inherit; }
svg { display: block; }

.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 1000; left: 12px; top: 12px; transform: translateY(-150%); padding: 9px 12px; border-radius: 8px; background: #111827; color: #fff; }
.skip-link:focus { transform: none; }

.site-shell { width: min(1540px, calc(100% - 28px)); min-height: calc(100vh - 28px); margin: 14px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(17,36,64,.05); overflow: hidden; }
.site-header { min-height: 74px; display: grid; grid-template-columns: var(--sidebar) minmax(260px,1fr); gap: 28px; align-items: center; padding: 0 34px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand img { width: 260px; height: auto; }
.site-search { justify-self: end; width: min(485px,100%); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #d8e0ea; border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.site-search:focus-within { border-color: #92bbed; box-shadow: 0 0 0 3px rgba(20,104,232,.08); }
.site-search svg { width: 20px; height: 20px; fill: none; stroke: #77869a; stroke-width: 1.7; }
.site-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.site-search input::placeholder { color: #9aa7b8; }
.sidebar-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.sidebar-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.site-layout { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); }
.site-sidebar { border-right: 1px solid var(--line); background: #fff; padding: 20px 34px 26px 38px; }
.sidebar-nav { position: sticky; top: 14px; }
.sidebar-link { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 15px; border-radius: 10px; color: #263750; font-weight: 600; transition: color .15s ease, background .15s ease; }
.sidebar-link:hover { background: #f6f8fb; color: var(--blue); }
.sidebar-link--primary { background: var(--blue-soft); color: var(--blue); }
.sidebar-link svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-section { margin-top: 18px; }
.sidebar-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.program-links { display: grid; gap: 7px; }
.program-link { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 3px 4px; border-radius: 9px; color: #1d2d46; font-weight: 560; transition: color .15s ease, background .15s ease; }
.program-link:hover { color: var(--blue); background: #f8fafc; }
.program-link img { width: 54px; height: 36px; flex: 0 0 54px; object-fit: cover; border-radius: 7px; background: #eef2f7; }
.program-link span { min-width: 0; line-height: 1.25; }
.sidebar-all { width: 100%; min-height: 40px; margin-top: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #dce5ef; border-radius: 9px; color: var(--blue); font-weight: 600; font-size: 14px; }
.sidebar-all:hover { border-color: #b9d1ef; background: #f8fbff; }

.site-main { min-width: 0; padding: 26px 44px 30px; }
.page-heading { margin: 0 0 16px; }
.page-heading h1 { margin: 0; font-size: clamp(28px,2.1vw,36px); line-height: 1.15; letter-spacing: -.025em; }
.page-heading h2 { margin: 12px 0 0; padding-left: 14px; position: relative; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.page-heading h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--blue); }

.tv-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.tv-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; content-visibility: auto; contain-intrinsic-size: 250px; }
.tv-card__link { height: 100%; display: flex; flex-direction: column; }
.tv-card__media { position: relative; aspect-ratio: 16/9; display: block; overflow: hidden; background: #eef3f8; }
.tv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.tv-card__play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.94); border-radius: 50%; background: rgba(6,18,36,.48); box-shadow: 0 2px 10px rgba(0,0,0,.14); pointer-events: none; }
.tv-card__play span { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff; }
.tv-card__body { min-height: 48px; display: flex; align-items: center; padding: 10px 13px 11px; }
.tv-card h3 { margin: 0; font-size: 15px; line-height: 1.28; font-weight: 650; letter-spacing: -.01em; }
.tv-card:hover { border-color: #d6dee8; box-shadow: 0 7px 20px rgba(17,36,64,.09); }
.tv-card:hover .tv-card__media img { transform: scale(1.012); }
.tv-card:hover .tv-card__play { background: rgba(10,88,200,.74); }
.tv-card__link:focus-visible { outline: 3px solid rgba(20,104,232,.25); outline-offset: -3px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.pagination a,.pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #24344c; }
.pagination span:not(.pagination__edge) { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination a:hover { border-color: #a9c8ef; color: var(--blue); }
.pagination__edge { font-size: 22px; line-height: 1; }

.seo-copy { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; max-width: none; }
.seo-copy h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.seo-copy p { margin: 0 0 8px; color: #45566e; font-size: 14px; line-height: 1.58; max-width: 1050px; }
.seo-copy p:last-child { margin-bottom: 0; }

.inner-content { min-width: 0; }
.episode-page,.static-page { max-width: 1050px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; color: #718096; font-size: 13.5px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs__sep { color: #b2bdca; }
.episode-header h1,.static-page h1 { margin: 0 0 18px; font-size: clamp(28px,2.3vw,38px); line-height: 1.18; letter-spacing: -.025em; }
.episode-player { width: 100%; }
.lazy-video { aspect-ratio: 16/9; overflow: hidden; border-radius: 13px; background: #0e1726; }
.lazy-video__button { position: relative; width: 100%; height: 100%; display: block; padding: 0; border: 0; background: #0e1726; cursor: pointer; }
.lazy-video__button img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.lazy-video__button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(7,15,29,.02),rgba(7,15,29,.08)); }
.lazy-video__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(7,20,42,.55); box-shadow: 0 5px 22px rgba(0,0,0,.24); }
.lazy-video__play span { width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid #fff; }
.lazy-video iframe,.episode-player iframe,.episode-player video { width: 100%; aspect-ratio: 16/9; height: 100%; border: 0; background: #111; }
.episode-text { margin-top: 22px; }
.episode-text p,.static-page__body p { color: #374861; line-height: 1.7; }
.tv-comments-root { margin-top: 34px; }
.static-page__body { max-width: 820px; }
.system-info { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f0d6a6; border-radius: 10px; background: #fff9ed; }

.site-footer { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px 38px; border-top: 1px solid var(--line); color: #627087; font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 1240px) {
    :root { --sidebar: 280px; }
    .site-shell { width: min(1240px,calc(100% - 20px)); margin: 10px auto; }
    .site-main { padding: 24px 26px 28px; }
    .site-sidebar { padding-inline: 24px 20px; }
    .tv-grid { gap: 14px; }
    .tv-card h3 { font-size: 14.5px; }
    .brand img { width: 232px; }
}

@media (max-width: 980px) {
    .site-header { grid-template-columns: auto 1fr auto; min-height: 70px; padding: 0 18px; gap: 14px; }
    .brand img { width: 205px; }
    .sidebar-toggle { display: inline-flex; }
    .site-layout { display: block; }
    .site-sidebar { position: fixed; z-index: 100; left: 0; top: 0; bottom: 0; width: 300px; padding: 86px 18px 24px; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 8px 0 28px rgba(17,36,64,.12); border-right: 1px solid var(--line); overflow-y: auto; }
    .site-sidebar.is-open { transform: translateX(0); }
    .sidebar-nav { position: static; }
    .site-main { padding: 24px 22px 28px; }
    .tv-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .site-header { grid-template-columns: auto 1fr auto; padding: 0 13px; }
    .brand img { width: 170px; }
    .site-search { width: 44px; padding: 0; justify-content: center; border: 0; }
    .site-search input,.site-search input::placeholder { width: 0; padding: 0; opacity: 0; pointer-events: none; }
    .site-search svg { width: 23px; height: 23px; }
    .site-main { padding: 20px 13px 24px; }
    .page-heading { margin-bottom: 14px; }
    .page-heading h1 { font-size: 28px; }
    .page-heading h2 { font-size: 18px; margin-top: 9px; }
    .tv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .tv-card { border-radius: 10px; contain-intrinsic-size: 208px; }
    .tv-card__body { min-height: 48px; padding: 9px 10px 10px; align-items: flex-start; }
    .tv-card h3 { font-size: 13.5px; line-height: 1.3; }
    .tv-card__play { width: 38px; height: 38px; }
    .seo-copy { margin-top: 18px; padding: 16px 14px; }
    .seo-copy h2 { font-size: 19px; }
    .seo-copy p { font-size: 13.5px; line-height: 1.58; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 16px 14px; gap: 10px; }
    .footer-links { gap: 16px; }
    .lazy-video__play { width: 54px; height: 54px; }
}

@media (max-width: 390px) {
    .brand img { width: 154px; }
    .site-header { gap: 8px; }
    .site-main { padding-inline: 9px; }
    .tv-grid { gap: 8px; }
    .tv-card h3 { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}
