/* tvspored.si — tema (TrueCAD). Vizualna pravila: DESIGN.md. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --navy: #0B1F3A;
  --navy-2: #16305A;
  --navy-ink: #FFFFFF;
  --navy-mute: #A9BBD3;
  --red: #D7212C;
  --red-soft: #FBE4E5;

  --bg: #FFFFFF;
  --bg-2: #F5F7FA;
  --ink: #0B1F3A;
  --ink-2: #3E4C5E;
  --ink-3: #5B6675;
  --line: #E3E7EC;
  --line-2: #EEF1F4;
  --line-3: #CBD3DD;
  --link: #1F4E8C;

  --blk: #F1F4F8;
  --blk-hover: #E6EBF2;
  --blk-past: #F7F8FA;
  --cur: #E3ECF8;
  --cur-hover: #D6E3F5;
  --cur-ring: #B5C8E2;
  --bar-fill: #2A5BA8;

  --focus: #2F6FD6;
  --sel: #CFE0F7;
  --shadow: 0 12px 32px rgb(11 31 58 / .16), 0 2px 6px rgb(11 31 58 / .08);
  --backdrop: rgb(6 14 28 / .48);

  --g-film: #3A2F4C;
  --g-sport: #1E3A5E;
  --g-serija: #2D4A3B;
  --g-other: #4A3B26;

  --bar-h: 56px;
  --ppm: 2.4;
  --row: 56px;
  --chw: 92px;
  --gut: 16px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0D1A30; --navy-2: #172845; --navy-mute: #93A6C2;
    --red: #E5383F; --red-soft: #3A1A1F;
    --bg: #0A111C; --bg-2: #0F1826; --ink: #E7ECF3; --ink-2: #B4BFCD; --ink-3: #8F9BAD;
    --line: #1E2938; --line-2: #172231; --line-3: #2C3A4E; --link: #8DB4F0;
    --blk: #131E2D; --blk-hover: #1A2739; --blk-past: #0E1723;
    --cur: #1A2D4B; --cur-hover: #20375A; --cur-ring: #2D4A75; --bar-fill: #7FA7E6;
    --focus: #8DB4F0; --sel: #2D4A75;
    --shadow: 0 12px 32px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .3);
    --backdrop: rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #0D1A30; --navy-2: #172845; --navy-mute: #93A6C2;
  --red: #E5383F; --red-soft: #3A1A1F;
  --bg: #0A111C; --bg-2: #0F1826; --ink: #E7ECF3; --ink-2: #B4BFCD; --ink-3: #8F9BAD;
  --line: #1E2938; --line-2: #172231; --line-3: #2C3A4E; --link: #8DB4F0;
  --blk: #131E2D; --blk-hover: #1A2739; --blk-past: #0E1723;
  --cur: #1A2D4B; --cur-hover: #20375A; --cur-ring: #2D4A75; --bar-fill: #7FA7E6;
  --focus: #8DB4F0; --sel: #2D4A75;
  --shadow: 0 12px 32px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .3);
  --backdrop: rgb(0 0 0 / .6);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --ppm: 3.2; --row: 60px; --chw: 140px; --gut: 24px; --bar-h: 64px; } }
@media (min-width: 1200px) { :root { --ppm: 4; --gut: 32px; } }

/* ---------- osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scrollbar-color: var(--line-3) var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 'Source Sans 3', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--link);
}
::selection { background: var(--sel); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
ol, ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--bg); color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 8px; }

.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; flex: none; transition: background-color .15s; }
.ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 500; font-size: 15px;
  transition: background-color .15s;
}
:root[data-theme="dark"] .btn:not(.btn-quiet) { background: #2A5BA8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.btn-quiet) { background: #2A5BA8; } }
.btn:hover { background: var(--navy-2); }
.btn-quiet { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--line-2); }

/* ---------- glava ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--navy-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.bar-in {
  max-width: 1360px; margin: 0 auto; height: var(--bar-h);
  display: flex; align-items: center; gap: 4px; padding: 0 6px 0 var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-right: auto; height: 44px; }
.brand .tld { color: var(--navy-mute); font-weight: 500; }
.brand-mark { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-mark .brand-now { stroke: var(--red); stroke-width: 2.4; }
:root .bar .brand-mark .brand-now { stroke: #FF4B55; }
.bar .ib:hover { background: rgb(255 255 255 / .1); }
.bar :focus-visible { outline-color: #fff; }

.mainnav { display: none; }

.bar .search { display: none; position: relative; }
.search-ico { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--navy-mute); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bar .search input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid transparent;
  background: rgb(255 255 255 / .1); color: #fff; padding: 0 36px 0 38px; font-size: 15px;
  caret-color: #fff; transition: background-color .15s, border-color .15s;
}
.bar .search input::placeholder { color: var(--navy-mute); }
.bar .search input:hover { background: rgb(255 255 255 / .14); }
.bar .search input:focus { outline: none; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .5); }
.bar .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-key {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  font: 500 12px/1 'Source Sans 3', sans-serif; color: var(--navy-mute);
  border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; padding: 3px 6px;
}
.bar .search input:focus + .search-key, .bar .search input:not(:placeholder-shown) + .search-key { display: none; }

.i-sun { display: none !important; }
:root[data-theme="dark"] .i-moon { display: none !important; }
:root[data-theme="dark"] .i-sun { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-moon { display: none !important; }
  :root:not([data-theme="light"]) .i-sun { display: block !important; }
}

/* mobilno iskanje: vrstica pod glavo */
.bar.is-searching .bar-in { flex-wrap: wrap; height: auto; min-height: var(--bar-h); }
.bar.is-searching .search { display: block; order: 10; flex: 1 0 100%; margin: 2px 10px 12px calc(var(--gut) - 6px); }
.bar.is-searching .search-key { display: none; }

/* zadetki */
.results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: min(70vh, 520px); overflow: auto;
}
.res {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.res[aria-selected="true"], .res:hover { background: var(--bg-2); }
.res-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-t mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.res-m { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.res-s { grid-row: 1 / span 2; grid-column: 2; }
.tag-now { display: inline-block; font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 5px; border-radius: 3px; border: 1px solid var(--line-3); color: var(--ink-2); }
.res-empty { padding: 14px 10px; color: var(--ink-2); font-size: 14px; }
.res-head { padding: 8px 10px 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* ---------- postavitev ---------- */
main.page { max-width: 1360px; margin: 0 auto; padding: 0 0 32px; }
.layout { display: block; }
.primary { min-width: 0; }

.titlebar { display: none; }

.dates {
  display: flex; gap: 8px; align-items: center; height: 56px; padding: 0 var(--gut);
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gut);
}
.dates::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--line-3); display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; scroll-snap-align: start;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-current="date"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip[aria-current="date"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-current="date"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; } }

.views { display: flex; align-items: stretch; justify-content: space-between; height: 48px; padding: 0 4px 0 calc(var(--gut) - 12px); border-bottom: 1px solid var(--line); }
.seg { display: flex; }
.seg button {
  position: relative; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.seg button[aria-pressed="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.seg button:disabled { color: var(--line-3); cursor: default; }
.seg button:focus-visible { outline-offset: -4px; }
.views-end { display: flex; align-items: center; gap: 2px; }
.step { display: none; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--ink-2); }
.step:hover { background: var(--bg-2); color: var(--ink); }
.step svg, .filter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.filter:hover { background: var(--bg-2); color: var(--ink); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

/* ---------- EPG mreža ---------- */
.epg { position: relative; --slot: calc(var(--ppm) * 30px); }
.epg-head {
  position: sticky; top: var(--bar-h); z-index: 6; display: flex; height: 36px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.epg-corner {
  width: var(--chw); flex: none; display: flex; align-items: center; padding-left: var(--gut);
  font-size: 12px; font-weight: 500; color: var(--ink-3); border-right: 1px solid var(--line); white-space: nowrap;
}
.epg-scale-vp { position: relative; flex: 1; overflow: hidden; }
.epg-scale { position: absolute; inset: 0 auto 0 0; height: 36px; will-change: transform; }
.tick {
  position: absolute; top: 0; height: 36px; padding: 6px 0 0 5px; border-left: 1px solid var(--line-3);
  font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
}
.tick.half { border-left-color: var(--line); }
.tick.muted, .tick.cut { color: transparent !important; }
.tick.half { color: var(--ink-3); font-weight: 400; }
.now-pill {
  position: absolute; top: 10px; height: 18px; padding: 0 6px; border-radius: 9px; translate: -50% 0;
  background: var(--red); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; z-index: 2;
}

.epg-body { position: relative; display: flex; }
.epg-chs { width: var(--chw); flex: none; border-right: 1px solid var(--line); background: var(--bg); z-index: 2; }
.ch {
  height: var(--row); display: flex; align-items: center; padding: 0 8px 0 calc(var(--gut) - 4px);
  border-bottom: 1px solid var(--line-2);
}
.ch a {
  position: relative; width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-3); border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.ch a:hover { border-color: var(--ink-3); background: var(--bg-2); }
.ch-num { display: none; color: var(--ink-3); font-weight: 500; min-width: 1.4em; }
.ch-star { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; fill: var(--red); stroke: none; }
.ch.is-fav-last { border-bottom: 1px solid var(--line-3); }
.lane.is-fav-last { border-bottom: 1px solid var(--line-3); }
.tl-compact .tl-ch { display: none; }

.epg-lanes-vp { position: relative; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.epg-lanes-vp:focus { outline: none; }
.epg-lanes {
  position: relative;
  background-image: repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px var(--slot));
}
.lane { position: relative; height: var(--row); border-bottom: 1px solid var(--line-2); }

.p {
  position: absolute; top: 4px; bottom: 4px;
  display: block; padding: 0; text-align: left; border-radius: 6px; color: inherit;
  background: var(--blk); overflow: clip; cursor: pointer;
  transition: background-color .15s;
}
.p:hover { background: var(--blk-hover); }
.p:focus-visible { outline-offset: -2px; z-index: 3; }
.p-in {
  position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  height: 100%; max-width: 100%; width: max-content; padding: 0 8px; min-width: 0;
}
.p-t { font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-m { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.p-t, .p-m { width: fit-content; max-width: 100%; background: var(--blk); padding-right: 2px; transition: background-color .15s; }
.p:hover .p-t, .p:hover .p-m { background: var(--blk-hover); }
.p.past .p-t, .p.past .p-m { background: var(--blk-past); }
.p.cur .p-t, .p.cur .p-m { background: var(--cur); }
.p.cur:hover .p-t, .p.cur:hover .p-m { background: var(--cur-hover); }
.p.narrow .p-in { padding: 0 5px; }
.p.tiny .p-in { display: none; }
.p.past { background: var(--blk-past); }
.p.past .p-t { font-weight: 400; color: var(--ink-3); }
.p.cur { background: var(--cur); box-shadow: inset 0 0 0 1px var(--cur-ring); }
.p.cur:hover { background: var(--cur-hover); }
.p.cur .p-t { font-weight: 700; }
.p.cur .p-m { color: var(--ink-2); }
.p-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: var(--bar-fill); border-radius: 0 2px 0 0; }
.p.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.live {
  flex: none; display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 16px; padding: 0 5px; border-radius: 3px; letter-spacing: .01em;
}

.now-line { position: absolute; top: 0; bottom: 0; width: 2px; translate: -1px 0; background: var(--red); z-index: 1; pointer-events: none; }

.to-now {
  position: absolute; top: 10px; z-index: 5; left: calc(var(--chw) + 8px);
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px;
  border-radius: 16px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px rgb(0 0 0 / .22);
}
.to-now svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-now.right { left: auto; right: 8px; flex-direction: row-reverse; padding: 0 8px 0 12px; }
.to-now.right svg { rotate: 180deg; }

.epg-empty { padding: 40px var(--gut); text-align: center; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.epg-empty p { max-width: 38ch; margin: 0 auto 16px; }
.epg-empty-t { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px !important; }

.sample-note { padding: 10px var(--gut) 0; font-size: 12px; color: var(--ink-3); }

/* ---------- priporočila ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gut); margin-bottom: 12px; }
.sec-head h2 { font-size: 19px; }
.picks { padding-top: 28px; }
.picks-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: 12px;
  padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
}
.picks-list::-webkit-scrollbar { display: none; }
.pick { display: block; scroll-snap-align: start; border-radius: 10px; text-align: left; }
.pick-art {
  position: relative; height: 104px; border-radius: 10px; padding: 10px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: var(--g-other);
}
.pick-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .22);
}
.pick-art .pick-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: #fff; z-index: 1; }
.g-film { background: var(--g-film); }
.g-sport { background: var(--g-sport); }
.g-serija, .g-resnicnost { background: var(--g-serija); }
.pick-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.pick-time { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.pick-t { margin-top: 10px; font-size: 15px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-m { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.pick:hover .pick-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pick:focus-visible { outline-offset: 3px; }

/* ---------- oglasi ---------- */
.ad { margin: 32px auto 0; text-align: center; }
.ad-label { display: block; font-size: 11px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ad-box { margin: 0 auto; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.ad-rect .ad-box { width: 300px; height: 250px; }
.ad-wide { display: none; }
.ad-wide .ad-box { width: 728px; height: 90px; }

/* ---------- seznami ---------- */
.lists { display: grid; gap: 32px; margin-top: 36px; }
.list-sec { min-width: 0; }
.tl { padding: 0 var(--gut); }
.tl-row {
  width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); text-align: left; min-height: 44px;
}
.tl li:last-child .tl-row { border-bottom: 0; }
.tl-row time { font-weight: 700; font-size: 15px; }
.tl-t { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ch { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.tl-s { grid-column: 2 / span 2; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.tl-row:hover .tl-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tl-row.is-past time, .tl-row.is-past .tl-t { color: var(--ink-3); font-weight: 400; }
.tl-empty { padding: 12px 0; color: var(--ink-3); font-size: 14px; }
.tl-compact .tl-row { padding: 9px 0; }

/* ---------- noga ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 32px var(--gut) 8px; display: grid; gap: 28px; }
.brand-foot { color: var(--ink); font-size: 18px; margin: 0 0 8px; }
.brand-foot .tld, .brand-ink .tld { color: var(--ink-3); }
.brand-foot .brand-now { stroke: var(--red); }
.foot-brand p { color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.foot-col h2 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: 0; }
.foot-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { max-width: 1360px; margin: 0 auto; padding: 16px var(--gut) 28px; font-size: 12px; color: var(--ink-3); }

/* ---------- pogovorna okna ---------- */
dialog.sheet {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: 88dvh; width: 100%;
  inset: auto 0 0 0; border-radius: 18px 18px 0 0;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
  overscroll-behavior: contain;
  transition: translate .24s cubic-bezier(.2, .8, .2, 1), opacity .24s, display .24s allow-discrete, overlay .24s allow-discrete;
  translate: 0 0; opacity: 1;
}
dialog.sheet:not([open]) { translate: 0 100%; opacity: 1; }
@starting-style { dialog.sheet[open] { translate: 0 100%; } }
dialog.sheet::backdrop { background: var(--backdrop); transition: background-color .24s, display .24s allow-discrete, overlay .24s allow-discrete; }
@starting-style { dialog.sheet[open]::backdrop { background: rgb(0 0 0 / 0); } }
.sheet-in { padding: 8px var(--gut) calc(24px + env(safe-area-inset-bottom)); }
.sheet-in::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-3); margin: 0 auto 4px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-right: -10px; }
.ib-plain { color: var(--ink-2); }
.ib-plain:hover { background: var(--bg-2); color: var(--ink); }
.sheet-h { font-size: 20px; }
.sheet-lead { color: var(--ink-2); font-size: 14px; margin: 2px 0 16px; max-width: 46ch; }

.d-ch { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.d-title { font-size: 24px; line-height: 1.2; margin-top: 2px; text-wrap: balance; }
.d-meta { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.d-status { margin-top: 16px; }
.d-prog { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.d-track { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.d-track i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--red); border-radius: 3px; }
.d-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.d-desc { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }
.d-fav { margin-top: 20px; width: 100%; }
.d-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.d-fav[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.d-next-h { margin-top: 28px; font-size: 15px; }
#dNext { padding: 0; margin-top: 4px; }

.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 2px; cursor: pointer; font-weight: 500; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-3); position: relative; transition: background-color .2s; order: 2; margin-left: auto; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: translate .2s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + .switch-ui { background: var(--red); }
.switch input:checked + .switch-ui::after { translate: 16px 0; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

.ch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 8px; }
.ch-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-weight: 500; }
.ch-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-opt svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.ch-opt input:checked + svg { fill: var(--red); stroke: var(--red); }
.ch-opt input:focus-visible + svg { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ch-opt .n { color: var(--ink-3); font-weight: 400; margin-left: auto; font-size: 13px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--ink-3); font-size: 14px; }

.drawer .menu-nav { display: grid; margin-top: 8px; }
.menu-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.menu-nav a[aria-current] { font-weight: 700; }
.brand-ink { color: var(--ink); margin: 0; }

/* ---------- pregled: zdaj, nato, nocoj po programih ---------- */
/* Privzeti pogled; mreža je pogled »Zdaj / Zvečer / Ves dan« (html[data-view="grid"]). */
:root:not([data-view="grid"]) .epg-head,
:root:not([data-view="grid"]) .epg-body,
:root:not([data-view="grid"]) .step { display: none; }
:root[data-view="grid"] .board { display: none; }

.board { --bk: 52px; }
.bd-head { display: none; }
.bd-row { padding: 10px var(--gut) 12px; border-bottom: 1px solid var(--line); }
.bd-ch { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bd-ch .ch-num { display: inline; min-width: 0; font-size: 13px; }
.bd-ch .ch-star { position: static; width: 12px; height: 12px; flex: none; }
.bd-go { width: 18px; height: 18px; margin-left: auto; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-ch:hover .bd-go { stroke: var(--ink); }

.bd-slot {
  position: relative; width: 100%; min-height: 44px; padding: 0 12px;
  display: grid; grid-template-columns: var(--bk) 48px minmax(0, 1fr); align-items: center;
  border-radius: 6px; text-align: left; transition: background-color .15s;
}
.bd-slot.is-off { grid-template-columns: var(--bk) minmax(0, 1fr); }
.bd-k { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.bd-slot time { font-size: 15px; font-weight: 700; line-height: 22px; }
.bd-tx { min-width: 0; display: flex; align-items: center; gap: 6px; }
.bd-t { min-width: 0; font-weight: 500; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-m { display: flex; flex: none; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.is-off .bd-t { font-weight: 400; color: var(--ink-3); }

.bd-now { min-height: 60px; padding-bottom: 3px; margin: 2px 0 4px; background: var(--cur); box-shadow: inset 0 0 0 1px var(--cur-ring); overflow: hidden; }
.bd-now .bd-k { color: var(--ink-2); font-weight: 700; }
.bd-now .bd-tx { flex-direction: column; align-items: flex-start; gap: 0; }
.bd-now .bd-t { max-width: 100%; font-weight: 700; }
.bd-now .bd-m { color: var(--ink-2); font-weight: 500; }
.bd-now.is-off { background: var(--blk-past); box-shadow: none; }
.bd-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 100%); background: var(--bar-fill); border-radius: 0 2px 0 0; }
.bd-eve { display: grid; }

@media (hover: hover) {
  .bd-slot:not(.is-off):hover { background: var(--bg-2); }
  .bd-now:not(.is-off):hover { background: var(--cur-hover); }
}

@media (min-width: 768px) {
  .board { --bk: 0px; }
  .bd-head, .bd-row {
    display: grid; grid-template-columns: var(--chw) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px;
    padding: 0 var(--gut) 0 calc(var(--gut) - 4px);
  }
  .board.is-day .bd-head, .board.is-day .bd-row { grid-template-columns: var(--chw) minmax(0, 1fr); }
  .bd-head { height: 36px; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; line-height: 18px; color: var(--ink-3); }
  .bd-head span:not(:first-child) { padding-left: 12px; }
  .bd-row { padding-top: 4px; padding-bottom: 4px; border-bottom-color: var(--line-2); }
  .bd-ch {
    align-self: center; height: 40px; margin-right: 8px; padding: 0 10px; gap: 8px;
    border: 1px solid var(--line-3); border-radius: 8px; font-size: 14px; white-space: nowrap; transition: border-color .15s, background-color .15s;
  }
  .bd-ch:hover { border-color: var(--ink-3); background: var(--bg-2); }
  .bd-ch .bd-name { overflow: hidden; text-overflow: ellipsis; }
  .bd-go { display: none; }
  .bd-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .bd-slot, .bd-slot.is-off {
    grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; align-content: center;
    min-height: 60px; margin: 0; padding: 8px 12px; background: var(--blk);
  }
  .bd-slot.is-off { grid-template-columns: minmax(0, 1fr); background: var(--blk-past); }
  .bd-tx { flex-direction: column; align-items: flex-start; gap: 0; }
  .bd-t { max-width: 100%; }
  .bd-now { padding-bottom: 11px; }

  .bd-eve { gap: 4px; }
  .bd-ev, .bd-ev.is-off { min-height: 28px; padding: 3px 12px; align-items: center; }
  .bd-ev .bd-tx { flex-direction: row; align-items: center; gap: 6px; }
  .bd-ev time, .bd-ev .bd-t { font-size: 14px; line-height: 20px; }
  .board.is-day .bd-eve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board.is-day .bd-ev { min-height: 28px; }

  @media (hover: hover) {
    .bd-slot:not(.is-off):hover { background: var(--blk-hover); }
    .bd-now:not(.is-off):hover { background: var(--cur-hover); }
  }
}

/* ---------- tablica in namizje ---------- */
@media (min-width: 768px) {
  .bar-in { gap: 8px; padding-right: var(--gut); }
  .brand { margin-right: 24px; }
  .m-only { display: none; }
  .bar .search { display: block; flex: 1; max-width: 420px; margin-left: auto; }
  .titlebar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px var(--gut) 12px; }
  .titlebar h1 { font-size: 28px; letter-spacing: -.02em; }
  .titlebar-date { color: var(--ink-2); font-size: 15px; display: flex; gap: 12px; align-items: baseline; }
  .titlebar-clock { font-weight: 700; color: var(--ink); }
  .dates { border-bottom: 0; height: 52px; }
  .views { padding-left: calc(var(--gut) - 12px); padding-right: calc(var(--gut) - 10px); border-top: 1px solid var(--line); }
  .step { display: grid; }
  .ch { padding-right: 12px; }
  .ch a { justify-content: flex-start; padding: 0 10px; font-size: 14px; }
  .ch-num { display: inline; }
  .lists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; }
  .list-sec + .list-sec { border-left: 1px solid var(--line); }
  .ad-wide { display: block; margin-top: 40px; }
  .foot-in { grid-template-columns: 1.2fr 1.6fr 1fr; padding-top: 40px; }
  dialog.sheet { inset: 0 0 0 auto; height: 100dvh; max-height: none; width: 460px; border-radius: 0; }
  dialog.sheet:not([open]) { translate: 100% 0; }
  @starting-style { dialog.sheet[open] { translate: 100% 0; } }
  .sheet-in { padding: 16px 28px 32px; }
  .sheet-in::before { display: none; }
  .drawer { display: none; }
}

@media (min-width: 1024px) {
  .mainnav { display: flex; gap: 2px; }
  .mainnav a {
    position: relative; display: flex; align-items: center; height: var(--bar-h); padding: 0 12px;
    font-size: 15px; font-weight: 500; color: var(--navy-mute); transition: color .15s;
  }
  .mainnav a:hover { color: #fff; }
  .mainnav a[aria-current] { color: #fff; }
  .mainnav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #FF4B55; }
  .bar .search { max-width: 340px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 0; }
  .primary { border-right: 1px solid var(--line); }
  .rail { padding: 28px var(--gut) 0 28px; }
  .rail > * { position: relative; }
  .picks { padding-top: 0; }
  .picks .sec-head { padding: 0; }
  .picks-list { grid-auto-flow: row; grid-auto-columns: auto; padding: 0; overflow: visible; gap: 0; }
  .pick { display: grid; grid-template-columns: 112px 1fr; gap: 0 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .pick:first-child { padding-top: 4px; }
  .pick-art { grid-row: 1 / span 2; height: 72px; padding: 8px; border-radius: 8px; }
  .pick-time { font-size: 22px; }
  .pick-top { font-size: 12px; }
  .pick-t { margin-top: 0; align-self: end; }
  .pick-m { align-self: start; }
  .ad-rect { margin-top: 28px; position: sticky; top: calc(var(--bar-h) + 24px); }
  .views { border-top: 0; }
  .titlebar { padding-top: 32px; }
}

/* ---------- stran programa ---------- */
.ch-page { --tcol: 50px; --rcol: 26px; }
.ch-head { padding: 8px var(--gut) 14px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -6px; padding: 0 6px;
  border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s;
}
.back:hover { color: var(--ink); }
.back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-title-row h1 { font-size: 24px; letter-spacing: -.02em; text-wrap: balance; }
.fav-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 14px 0 12px; border: 1px solid var(--line-3); border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .15s, color .15s, background-color .15s;
}
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.fav-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.fav-btn[aria-pressed="true"] { border-color: var(--red); color: var(--ink); }
.fav-btn[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
@media (max-width: 479px) {
  .fav-btn { width: 44px; padding: 0; }
  .fav-btn-t { display: none; }
}
.ch-sub { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.ch-sub a, .qa a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ch-sub a:hover, .qa a:hover { text-decoration-thickness: 2px; }

.dates-sticky { position: sticky; top: var(--bar-h); z-index: 6; background: var(--bg); border-top: 1px solid var(--line); }

/* dnevni seznam s časovno tirnico */
.day {
  padding: 0 var(--gut);
  background: linear-gradient(var(--line-3), var(--line-3)) no-repeat;
  background-size: 2px 100%;
  background-position: calc(var(--gut) + var(--tcol) + var(--rcol) / 2 - 1px) 0;
}
.dr-a { display: grid; grid-template-columns: var(--tcol) var(--rcol) minmax(0, 1fr); color: inherit; }
.dr-a:focus-visible { outline-offset: -2px; border-radius: 10px; }
.dr-t { padding: 14px 0; font-size: 15px; line-height: 22px; font-weight: 700; }
.dr-rail { position: relative; }
.dr-dot {
  position: absolute; left: 50%; top: 21px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-3);
}
.dr-c { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.dr-title { display: block; font-size: 16px; line-height: 22px; font-weight: 500; text-wrap: pretty; }
.dr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.dr-end { display: none; }
.dr-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
  margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty;
}
.dr-a:hover .dr-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.dr.past .dr-t, .dr.past .dr-title { color: var(--ink-3); font-weight: 400; }
.dr.past .dr-dot { background: var(--line-3); }
.dr.feat .dr-title { font-size: 19px; line-height: 24px; font-weight: 700; }
.dr.feat .dr-desc, .dr.eve .dr-desc { -webkit-line-clamp: 2; }
.dr.feat .dr-dot { border-color: var(--ink); }

.dr.cur .dr-c {
  margin: 8px 0; padding: 12px 14px; border: 0; border-radius: 10px;
  background: var(--cur); box-shadow: inset 0 0 0 1px var(--cur-ring);
}
.dr.cur .dr-t { padding-top: 20px; }
.dr.cur .dr-title { font-weight: 700; font-size: 19px; line-height: 24px; }
.dr.cur .dr-desc { -webkit-line-clamp: 2; }
.dr.cur .dr-dot { top: 27px; background: var(--bar-fill); border-color: var(--bar-fill); }
.dr-now {
  position: absolute; left: 50%; top: calc(27px + var(--p) * (100% - 44px)); width: 12px; height: 12px;
  translate: -50% 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--bg); z-index: 1;
}
.dr.cur .dr-rail::after {
  content: ""; position: absolute; left: 50%; top: 32px; width: 2px; translate: -1px 0;
  height: calc(var(--p, 0) * (100% - 44px)); background: var(--red);
}
.dr-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dr-track { flex: 1; height: 4px; border-radius: 2px; background: var(--cur-ring); overflow: hidden; }
.dr-track i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--bar-fill); border-radius: 2px; }
.dr-left { white-space: nowrap; }

.dr-part h2 { margin-left: calc(var(--tcol) + var(--rcol)); padding: 22px 0 2px; font-size: 16px; }
.dr-mid { margin-left: calc(var(--tcol) + var(--rcol)); padding: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dr-more button {
  display: flex; align-items: center; gap: 8px; width: calc(100% - var(--tcol) - var(--rcol)); min-height: 48px;
  margin-left: calc(var(--tcol) + var(--rcol)); border-bottom: 1px solid var(--line-2);
  color: var(--link); font-size: 15px; font-weight: 500; text-align: left;
}
.dr-more svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-more button:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
.dr-more-t { margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.dr-jump a {
  display: flex; align-items: center; gap: 8px; width: calc(100% - var(--tcol) - var(--rcol)); min-height: 48px;
  margin-left: calc(var(--tcol) + var(--rcol)); border-bottom: 1px solid var(--line-2);
  color: var(--link); font-size: 15px; font-weight: 500;
}
.dr-jump a span:first-of-type { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dr-jump a:hover span:first-of-type { text-decoration-thickness: 2px; }

/* glavni večerni program 20:00–23:00: en pas v barvi Mist z večjimi urami, tirnica teče skozenj */
.dr.prime {
  margin: 0 -12px; padding: 0 12px;
  background: linear-gradient(var(--line-3), var(--line-3)) no-repeat calc(12px + var(--tcol) + var(--rcol) / 2 - 1px) 0 / 2px 100%, var(--bg-2);
}
.dr.prime-start { margin-top: 8px; padding-top: 4px; border-radius: 12px 12px 0 0; scroll-margin-top: calc(var(--bar-h) + 72px); }
.dr.prime-start.prime-end { border-radius: 12px; }
.dr.prime .dr-t { font-size: 19px; line-height: 24px; }
.dr.prime .dr-dot { top: 22px; }
.dr.prime.cur .dr-dot { top: 27px; }
.dr.prime-end { margin-bottom: 8px; padding-bottom: 4px; border-radius: 0 0 12px 12px; }
.dr.prime-end .dr-c { border-bottom: 0; }
.dr.prime .dr-c { border-bottom-color: var(--line); }
.dr.prime .dr-dot { background: var(--bg-2); }
.dr.prime.past .dr-dot { background: var(--line-3); }
.dr.prime .dr-now { box-shadow: 0 0 0 3px var(--bg-2); }

/* stranski stolpec in vsebina pod sporedom */
.ch-rail h2, .ch-more h2 { font-size: 19px; margin-bottom: 8px; }
.watch, .others { padding: 32px var(--gut) 0; }
.watch-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.watch-list dt { color: var(--ink-2); font-size: 14px; }
.watch-list dd { margin: 0; font-weight: 500; font-size: 15px; text-align: right; }
.watch-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.others li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-2); }
.others li:last-child a { border-bottom: 0; }
.o-n { font-weight: 700; font-size: 15px; white-space: nowrap; }
.o-p { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-3); }
.o-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.others li a:hover .o-n { text-decoration: underline; text-underline-offset: 3px; }

.ch-more { display: grid; gap: 36px; padding: 40px var(--gut) 0; }
.about p { color: var(--ink-2); max-width: 65ch; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 0;
  font-weight: 500; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s cubic-bezier(.2, .8, .2, 1); }
.qa[open] summary svg { rotate: 180deg; }
.qa summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.qa p { padding: 0 0 16px; color: var(--ink-2); max-width: 65ch; }
.d-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@media (min-width: 768px) {
  .ch-page { --tcol: 64px; --rcol: 30px; }
  .ch-head { padding-top: 24px; }
  .ch-title-row h1 { font-size: 28px; }
  .ch-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (min-width: 1024px) {
  .ch-rail { padding-top: 24px; }
  .ch-rail .ad-rect { position: static; margin-top: 32px; }
  .ch-rail .watch-list > div { display: block; }
  .ch-rail .watch-list dd { text-align: left; margin-top: 2px; }
  .watch, .others { padding-left: 0; padding-right: 0; }
  .watch { padding-top: 8px; }
  .dr-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline; }
  .dr-title { grid-column: 1; }
  .dr-meta { grid-column: 2; grid-row: 1; justify-content: flex-end; margin-top: 0; }
  .dr-end { display: inline; }
  .dr-desc, .dr-prog { grid-column: 1 / -1; }
  .ch-more { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .p.cur { outline: 2px solid CanvasText; }
  .now-line { background: Highlight; }
}

/* oznaka ure ob piki »zdaj« na strani programa */
.dr.cur .dr-t { position: relative; }
.dr-pill {
  position: absolute; right: 2px; top: max(48px, calc(27px + var(--p) * (100% - 44px)));
  height: 18px; padding: 0 5px; border-radius: 9px; translate: 0 -3px;
  background: var(--red); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
}

/* ---------- stran oddaje ---------- */
.show-page .ch-head h1 { font-size: 24px; letter-spacing: -.02em; text-wrap: balance; }

/* tedenski trak */
.show-page .ch-head { border-bottom: 1px solid var(--line); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px calc(var(--gut) - 4px) 0; }
.wk {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 76px; padding: 8px 0;
  border-radius: 10px; color: var(--ink); transition: background-color .15s, color .15s;
}
.wk:hover:not(:disabled) { background: var(--bg-2); }
.wk-d { font-size: 13px; color: var(--ink-2); }
.wk-n { font-size: 19px; line-height: 24px; font-weight: 700; }
.wk-t { position: relative; padding-top: 9px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.wk:not(.none) .wk-t::before {
  content: ""; position: absolute; top: 1px; left: 50%; width: 5px; height: 5px; translate: -50% 0;
  border-radius: 50%; background: currentColor;
}
.wk-t small { margin-left: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.wk.none { color: var(--ink-3); cursor: default; }
.wk.none .wk-n { font-weight: 400; }
.wk.done .wk-t { color: var(--ink-3); }
.wk[aria-pressed="true"] { background: var(--navy); color: #fff; }
.wk[aria-pressed="true"] .wk-d, .wk[aria-pressed="true"] .wk-t, .wk[aria-pressed="true"] small { color: var(--navy-mute); }
.wk[aria-pressed="true"] .wk-t { color: #fff; }
.wk:focus-visible { outline-offset: 0; }
:root[data-theme="dark"] .wk[aria-pressed="true"] { background: #E7ECF3; color: #0A111C; }
:root[data-theme="dark"] .wk[aria-pressed="true"] .wk-d, :root[data-theme="dark"] .wk[aria-pressed="true"] small { color: #3E4C5E; }
:root[data-theme="dark"] .wk[aria-pressed="true"] .wk-t { color: #0A111C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wk[aria-pressed="true"] { background: #E7ECF3; color: #0A111C; }
  :root:not([data-theme="light"]) .wk[aria-pressed="true"] .wk-d, :root:not([data-theme="light"]) .wk[aria-pressed="true"] small { color: #3E4C5E; }
  :root:not([data-theme="light"]) .wk[aria-pressed="true"] .wk-t { color: #0A111C; }
}

/* kartica predvajanja */
.air { padding: 12px var(--gut) 0; }
.air-card { padding: 16px; border-radius: 12px; background: var(--cur); box-shadow: inset 0 0 0 1px var(--cur-ring); }
.air-day { font-size: 16px; line-height: 22px; }
.air-one + .air-one { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cur-ring); }
.air-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.air-hm { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.air-ch { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--ink-3); }
.air-ch:hover { text-decoration-thickness: 2px; }
.air-st { margin-top: 2px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.air-one.past .air-hm { color: var(--ink-3); }
.air-prog { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 15px; font-weight: 500; }
.air-act { display: flex; gap: 8px; margin-top: 16px; }
.air-act .btn { flex: 1 1 auto; background: var(--bg); border-color: var(--cur-ring); }
.air-act .btn:hover { background: var(--bg-2); }
.air-act [data-share] { flex: 0 0 auto; }
.air-act .btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.air-rel-h { margin-top: 20px; font-size: 15px; }
.air-rel .tl-row.is-cur time, .air-rel .tl-row.is-cur .tl-t { font-weight: 700; }
.air-rel .tl-row.is-cur time { position: relative; }
.air-rel .tl-row.is-cur time::before { content: ""; position: absolute; left: -13px; top: 50%; width: 8px; height: 8px; translate: 0 -50%; border-radius: 50%; background: var(--red); }
.tl-flush { padding: 0; }
.air-empty { padding: 28px 16px; text-align: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.air-empty p { max-width: 38ch; margin: 0 auto 16px; }
.air-empty-t { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px !important; }

.show-sec { padding: 28px var(--gut) 0; }
.show-sec h2 { font-size: 19px; margin-bottom: 8px; }
.show-desc { color: var(--ink-2); max-width: 65ch; }
.watch .d-all { margin-top: 2px; }

.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 40;
  width: max-content; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 14px; box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .show-page .ch-head h1 { font-size: 28px; }
  .week { gap: 8px; }
  .wk { min-height: 84px; }
  .air-card { padding: 20px 24px; }
  .air-hm { font-size: 32px; line-height: 38px; }
  .air-act .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .show-page .ch-rail > section, .show-page .ch-rail > .ad { padding-top: 0; margin-top: 32px; }
  .show-page .ch-rail > :first-child { margin-top: 8px; }
  .show-page .air, .show-page .show-sec, .show-page .sample-note { max-width: calc(760px + 2 * var(--gut)); }
  .show-page .week { max-width: calc(760px + 2 * var(--gut) - 8px); margin-left: 4px; padding-left: calc(var(--gut) - 4px); border-top: 0; }
}

/* ---------- stran kategorije ---------- */
.catnav { background: var(--navy); color: #fff; border-top: 1px solid rgb(255 255 255 / .08); }
.catnav-in { max-width: 1360px; margin: 0 auto; display: flex; gap: 4px; padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a {
  position: relative; flex: none; display: flex; align-items: center; height: 48px; padding: 0 10px;
  font-size: 15px; font-weight: 500; color: var(--navy-mute); white-space: nowrap; transition: color .15s;
}
.catnav a:first-child { margin-left: -10px; }
.catnav a:hover, .catnav a[aria-current] { color: #fff; }
.catnav a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #FF4B55; }
.catnav a:focus-visible { outline-color: #fff; outline-offset: -4px; }

.cat-head { padding-top: 20px; border-bottom: 1px solid var(--line); }
.cat-head h1 { font-size: 24px; letter-spacing: -.02em; text-wrap: balance; }
.cat-page .dates { border-bottom: 1px solid var(--line); }
.cat-filters { border-bottom: 1px solid var(--line); }
.cat-parts { height: 48px; padding: 0 calc(var(--gut) - 12px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cat-parts::-webkit-scrollbar { display: none; }
.cat-parts button { flex: none; white-space: nowrap; }
.subtypes { display: flex; gap: 8px; padding: 10px var(--gut); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.subtypes::-webkit-scrollbar { display: none; }
.subtypes .chip { height: 34px; }
.subtypes .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.subtypes .chip[aria-pressed="true"] .chip-n { color: var(--navy-mute); }
:root[data-theme="dark"] .subtypes .chip[aria-pressed="true"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subtypes .chip[aria-pressed="true"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; } }
.chip-n { margin-left: 4px; font-size: 13px; color: var(--ink-3); }
.cat-mine { margin: 0 var(--gut); border: 0; min-height: 52px; gap: 10px; }
.cat-mine-star { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.cat-mine:has(input:checked) .cat-mine-star { fill: var(--red); stroke: var(--red); }

/* skupine po programih */
.cgroups { padding: 0 var(--gut); }
.cg + .cg { border-top: 1px solid var(--line); }
.cg-h { display: flex; align-items: center; gap: 8px; min-height: 56px; padding-top: 8px; }
.cg-h h2 { font-size: 19px; }
.cg-star { width: 16px; height: 16px; flex: none; fill: var(--red); }
.cg-n { font-size: 14px; color: var(--ink-3); }
.cg-link {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px;
  color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.cg-link:hover { text-decoration-thickness: 2px; }
.cg-list { padding-bottom: 8px; }
.cr-a { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cg-list li:last-child .cr-a { border-bottom: 0; }
.cr-a time { font-size: 15px; font-weight: 700; }
.cr-t { display: block; font-size: 16px; line-height: 22px; font-weight: 500; text-wrap: pretty; }
.cr-t .live { vertical-align: 2px; margin-left: 4px; }
.cr-m { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.cr-dur { flex: none; width: 150px; height: 6px; background: linear-gradient(var(--line-3), var(--line-3)) no-repeat 0 50% / calc(min(var(--d), 150) * 1px) 2px; }
.cr-slot { flex: 0 0 150px; display: flex; align-items: center; }
.cr-track { width: calc(min(var(--d), 150) * 1px); height: 4px; border-radius: 2px; background: var(--cur-ring); overflow: hidden; }
.cr-track i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--bar-fill); border-radius: 2px; }
.cr-a:hover .cr-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cr-a:focus-visible { outline-offset: -2px; border-radius: 10px; }
.cr.past time, .cr.past .cr-t { color: var(--ink-3); font-weight: 400; }
.cr.cur .cr-a {
  margin: 4px -12px; padding: 12px; border: 0; border-radius: 10px;
  background: var(--cur); box-shadow: inset 0 0 0 1px var(--cur-ring);
}
.cr.cur .cr-t { font-weight: 700; font-size: 19px; line-height: 24px; }
.cr-mid { margin-left: 52px; padding: 14px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cr.cur .cr-m { color: var(--ink-2); font-weight: 500; }
.empty-act { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cgroups .air-empty { margin: 20px 0; }

@media (min-width: 768px) {
  .cat-head { padding-top: 28px; }
  .cat-head h1 { font-size: 28px; }
  .cr-a { grid-template-columns: 64px minmax(0, 1fr); }
  .cr-mid { margin-left: 64px; }
}
@media (min-width: 1024px) {
  .catnav { display: none; }
  .cat-page .ch-rail { padding-top: 24px; }
  .cat-page .ch-rail > section, .cat-page .ch-rail > .ad { padding-top: 0; margin-top: 32px; }
  .cat-page .ch-rail > :first-child { margin-top: 8px; }
  .cat-page .ch-rail > [hidden] + .ad { margin-top: 8px; }
  .cat-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .cat-parts { border-bottom: 0; }
  .subtypes { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); border-bottom: 0; }
  .cat-mine { margin: 0 var(--gut) 0 0; }
  .cr-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  .cr-m { margin-top: 0; display: grid; grid-template-columns: 150px 150px; column-gap: 16px; align-items: center; }
  .cr.cur .cr-a { margin: 4px -14px; padding: 12px 14px; }
}

/* glavna navigacija s sedmimi postavkami: ožji razmiki med 1024 in 1279 px, da iskalno polje ostane berljivo */
@media (min-width: 1024px) and (max-width: 1279px) {
  .mainnav a { padding: 0 8px; font-size: 14px; }
  .mainnav a[aria-current]::after { left: 8px; right: 8px; }
  .brand { margin-right: 12px; }
  .bar .search { min-width: 200px; }
  .search-key { display: none; }
}

/* ---------- WordPress: strežniški izris mreže (pozicije iz minut; skripta jih prepiše v px) ---------- */
.epg-lanes { width: calc(1440px * var(--ppm)); min-height: 1px; }
.epg-scale { width: calc(1440px * var(--ppm)); }
.tick[style*="--s"] { left: calc(var(--s) * 1px * var(--ppm)); }
.now-pill[style*="--s"] { left: calc(var(--s) * 1px * var(--ppm)); }
.now-line[style*="--s"] { left: calc(var(--s) * 1px * var(--ppm)); }
.p[style*="--s"] { left: calc(var(--s) * 1px * var(--ppm) + 1px); width: calc(var(--w) * 1px * var(--ppm) - 2px); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bar .search { margin: 0; }
.sec-more { font-size: 15px; font-weight: 500; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sec-more:hover { text-decoration-thickness: 2px; }
.show-answer { margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.cat-intro { margin-top: 10px; color: var(--ink-2); max-width: 65ch; }
.cat-intro p { margin: 0 0 8px; }

/* noga: meni iz WordPressa */
.foot-col ul.menu, .foot-col > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.foot-consent { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot-consent:hover { color: var(--ink); }

/* besedilne strani, iskanje, seznam programov, 404 */
main.text-page { max-width: 760px; padding: 32px var(--gut) 8px; }
.text-page .entry-title { font-size: 28px; letter-spacing: -.02em; margin-bottom: 12px; }
.text-page h2 { margin: 28px 0 10px; font-size: 19px; }
.entry-content { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { color: var(--ink); margin-top: 1.6em; }
.entry-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { list-style: revert; padding-left: 1.4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ch-index { margin-top: 16px; border-top: 1px solid var(--line); }
.ch-index-a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ch-index-n { font-size: 19px; font-weight: 700; }
.ch-index-k { font-size: 13px; color: var(--ink-3); align-self: center; text-align: right; }
.ch-index-now { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; color: var(--ink-2); }
.ch-index-now strong { color: var(--ink); }
.ch-index-a:hover .ch-index-n { text-decoration: underline; text-underline-offset: 3px; }
.ch-index-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ch-index-compact .ch-index-n { font-size: 16px; }
.search-list .tl-row { grid-template-columns: 52px 1fr auto; }
.text-page .btn { margin-top: 8px; }

/* oglasi AdSense: rezerviran prostor proti premikom postavitve */
.ad-rect ins.ad-box { width: 300px; min-height: 250px; background: none; border: 0; }
.ad-wide ins.ad-box { width: 100%; max-width: 728px; min-height: 90px; background: none; border: 0; }
@media (max-width: 767px) { .ad-wide ins.ad-box { min-height: 100px; } }

/* lastna pasica za piškotke (način »own«, samo analitika) */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  max-width: 560px; margin: 0 auto; padding: 16px; border-radius: 12px;
  background: var(--bg); color: var(--ink-2); box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: 15px;
}
.consent a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.consent-act { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ---------- blog: članek ---------- */
.post-layout { max-width: 1120px; margin: 0 auto; }
.post { min-width: 0; max-width: 752px; margin-inline: auto; }
.a-head, .blog-head { padding: 4px var(--gut) 16px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin-left: -6px; border-radius: 8px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumb svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 4px; }
.a-head h1 { font-size: 27px; letter-spacing: -.02em; text-wrap: balance; margin-top: 2px; }
.dek { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.meta { margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.meta-by { font-weight: 500; color: var(--ink-2); }
a.meta-by { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nw { white-space: nowrap; }

/* Na kratko: odgovor pred naslovnico */
.nk { margin: 0 var(--gut); padding: 14px 16px 16px; background: var(--bg-2); border-radius: 12px; }
.prose .nk { margin: 24px 0; }
.nk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.nk-h, .prose .nk-h { margin: 0; font-size: 19px; color: var(--ink); }
.nk-range { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.nk-list, .prose .nk-list { margin: 0; padding: 0; list-style: none; }
.nk-row, .prose .nk-row { display: grid; grid-template-columns: 44px 46px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; margin: 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 20px; color: var(--ink); }
.nk-row.is-day { border-top-color: var(--line-3); }
.nk-row:first-child { border-top: 0; }
.nk-d { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nk-t { font-weight: 700; color: var(--ink); }
.nk-ti { display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; min-width: 0; }
.nk-title, .prose .nk-title { color: var(--ink); font-weight: 500; text-decoration: none; padding: 12px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.nk-title:hover, .prose .nk-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.nk-ch { font-size: 13px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.nk-done { flex: none; font-size: 12px; color: var(--ink-3); }
.nk-row.is-none .nk-t, .nk-row.is-none .nk-ch { color: var(--ink-3); font-weight: 400; }
.nk-cal, .prose .nk-cal { width: 100%; margin-top: 12px; background: var(--bg); color: var(--ink); text-decoration: none; }
.nk-cal:hover { background: var(--line-2); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Vsebina (telefon) */
.toc { margin: 8px var(--gut) 0; border-bottom: 1px solid var(--line-2); }
.toc summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.toc summary svg { width: 20px; height: 20px; margin-left: auto; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s cubic-bezier(.2, .8, .2, 1); }
.toc[open] summary svg { rotate: 180deg; }
.toc summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.toc-list { padding: 0 0 12px; }
.toc-list a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* naslovnica */
.cover { margin: 16px var(--gut) 0; }
.cover-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.cover figcaption { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.cover figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.cv { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; background: #0B1F3A; border-radius: 12px; overflow: hidden; color: #fff; }
:root[data-theme="dark"] .cv { box-shadow: inset 0 0 0 1px var(--line-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cv { box-shadow: inset 0 0 0 1px var(--line-3); } }
.cv-ch { position: absolute; left: 5%; top: 7%; right: 5%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: clamp(11px, 3.2cqi, 15px); font-weight: 500; color: #A9BBD3; }
.cv-now { position: absolute; top: 0; bottom: 0; left: 72%; width: 2px; background: #FF4B55; }
.cv-t { position: absolute; left: 5%; right: 32%; bottom: 8%; font-size: clamp(18px, 7.4cqi, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
/* naslovnica kot košček sporeda: vrstica na oddajo, blok po uri, ura in zdaj-črta */
.cv-grid { position: absolute; left: 5%; right: 5%; top: 6%; }
.cv-row { display: grid; grid-template-columns: 17% minmax(0, 1fr); column-gap: 2cqi; align-items: stretch; height: 8.4cqi; }
.cv-rch { align-self: center; font-size: clamp(10px, 2.6cqi, 15px); font-weight: 500; color: #A9BBD3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-track { position: relative; border-left: 1px solid rgb(169 187 211 / .22); }
.cv-scale { height: 5cqi; }
.cv-scale .cv-track { border-left: 0; }
.cv-scale .cv-track span { position: absolute; left: calc(var(--a) * 100%); top: 0; font-size: clamp(9px, 2.2cqi, 13px); color: #A9BBD3; translate: 2px 0; }
.cv-blk { position: absolute; z-index: 1; top: 14%; bottom: 14%; left: calc(var(--a) * 100%); width: calc(var(--w) * 100%); min-width: 22%; display: flex; align-items: center; gap: .5em; padding: 0 1.4cqi; border-radius: 4px; background: #16305A; box-shadow: inset 0 0 0 1px rgb(169 187 211 / .28); color: #fff; font-size: clamp(10px, 2.5cqi, 15px); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-blk b { flex: none; font-weight: 700; }
.cv-blk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cv-nowl { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); width: 2px; translate: -1px 0; background: #FF4B55; z-index: 0; }
.cv-scale .cv-nowl { top: 70%; bottom: 0; }
.cv-gridded .cv-t { right: 5%; bottom: 6%; font-size: clamp(16px, 5.6cqi, 36px); -webkit-line-clamp: 1; }
.cv-sm .cv-ch { display: none; }
.cv-sm .cv-t { font-size: clamp(11px, 9cqi, 18px); right: 30%; }
.cv-sm .cv-now { left: 76%; }

/* besedilo */
.prose { padding: 8px var(--gut); }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote, .prose > h2, .prose > h3 { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 1.8em 0 .4em; color: var(--ink); scroll-margin-top: calc(var(--bar-h) + 16px); text-wrap: balance; }
.prose h3 { font-size: 19px; margin: 1.5em 0 .3em; color: var(--ink); scroll-margin-top: calc(var(--bar-h) + 16px); }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { padding-left: 16px; border-left: 3px solid var(--line-3); color: var(--ink); font-size: 19px; line-height: 1.5; }
.prose figure { margin: 24px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figcaption { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); text-align: left; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; border-bottom-color: var(--line-3); }
.prose .wp-block-table { overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Kdaj na TV: predvajanja ene oddaje v besedilu */
.kt { margin: 20px 0 24px; padding: 4px 16px 6px; border: 1px solid var(--line); border-radius: 12px; }
.kt-h, .prose .kt-h { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: 44px; margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.kt-h a { display: inline-flex; align-items: center; min-height: 44px; }
.prose .kt-h a { color: var(--ink); }
.kt-list, .prose .kt-list { list-style: none; padding: 0; margin: 0; }
.kt-row, .prose .kt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center; min-height: 56px; margin: 0; border-top: 1px solid var(--line-2); }
.kt-row:first-child { border-top: 0; }
.kt-when { display: flex; flex-direction: column; }
.kt-day { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.kt-time { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--ink); }
.kt-where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.kt-ch, .prose .kt-ch { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.kt-now { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--cur); padding: 0 6px; border-radius: 3px; line-height: 18px; }
.kt-cal, .prose .kt-cal { color: var(--ink-2); text-decoration: none; }
.kt-cal svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kt-cal:hover { background: var(--bg-2); color: var(--ink); }
.prose .kt-empty { padding: 12px 0; font-size: 15px; color: var(--ink-3); }

/* pogosta vprašanja v članku: core »Podrobnosti«, Yoast in Rank Math */
.prose .wp-block-details, .prose .schema-faq-section, .prose .rank-math-list-item { margin: 0; border-bottom: 1px solid var(--line-2); }
.prose .wp-block-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; color: var(--ink); }
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .2s cubic-bezier(.2, .8, .2, 1); }
.prose .wp-block-details[open] summary svg { rotate: 180deg; }
.prose .wp-block-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose .wp-block-details > :not(summary) { margin: 0 0 16px; }
.prose .schema-faq-question, .prose .rank-math-question { display: block; padding: 14px 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.prose .schema-faq-answer, .prose .rank-math-answer { padding-bottom: 14px; margin: 0; }

/* po članku */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 28px var(--gut) 0; padding-top: 20px; border-top: 1px solid var(--line); }
.post-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-sec { margin: 32px var(--gut) 0; }
.post-sec h2 { font-size: 19px; margin-bottom: 4px; }
.ps a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); min-height: 48px; }
.ps-t { font-weight: 700; }
.ps-w { font-size: 15px; color: var(--ink-2); }
.ps a:hover .ps-t { text-decoration: underline; text-underline-offset: 3px; }

/* seznam člankov */
.pr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.pr-t { font-size: 17px; line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.pr-t a::after { content: ""; position: absolute; inset: 0; }
.pr:hover .pr-t a { text-decoration: underline; text-underline-offset: 3px; }
.pr-d { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-m { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.pr-pic { align-self: start; }
.pr-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--bg-2); }
.pr-pic .cv { border-radius: 8px; }
.pr-list .pr:first-child { padding-top: 8px; }

/* arhiv bloga */
.blog-head h1 { font-size: 28px; letter-spacing: -.02em; margin-top: 2px; }
.blog-pg { font-size: 17px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.blog-sub { margin-top: 6px; max-width: 60ch; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.blog-chips { display: flex; gap: 8px; padding: 4px var(--gut) 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut); }
.blog-chips::-webkit-scrollbar { display: none; }
.blog-chips .chip { flex: none; }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip[aria-current="page"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-current="page"] { background: #E7ECF3; border-color: #E7ECF3; color: #0A111C; } }
.blog-list { padding: 0 var(--gut); }
.lead-post { position: relative; padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.lead-pic { display: block; }
.lead-pic .cv, .lead-pic .cover-img { border-radius: 12px; }
.lead-body { margin-top: 12px; }
.lead-t { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.lead-t a::after { content: ""; position: absolute; inset: 0; }
.lead-post:hover .lead-t a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.lead-d { margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.blog-pages { margin: 24px var(--gut) 0; }
.blog-pages .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; }
.blog-pages a.page-numbers:hover { background: var(--bg-2); }
.blog-pages .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-pages .dots { border-color: transparent; }
.blog-empty { padding: 24px var(--gut); color: var(--ink-2); }
.blog-empty .btn { margin-top: 12px; }

.post-rail { display: none; }

@media (min-width: 768px) {
  .a-head, .blog-head { padding-top: 24px; }
  .a-head h1 { font-size: 34px; line-height: 1.15; }
  .dek { font-size: 19px; }
  .meta { font-size: 14px; }
  .nk { padding: 16px 20px 20px; }
  .nk-row, .prose .nk-row { grid-template-columns: 52px 56px minmax(0, 1fr) auto; font-size: 16px; }
  .nk-cal, .prose .nk-cal { width: auto; }
  .prose h2 { font-size: 24px; }
  .pr { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; padding: 20px 0; }
  .pr-t { font-size: 19px; }
  .blog-head h1 { font-size: 34px; }
  .lead-post { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .lead-body { margin-top: 0; }
  .lead-t { font-size: 28px; }
}
@media (min-width: 1024px) {
  .post-layout { display: grid; grid-template-columns: minmax(0, 752px) 300px; justify-content: center; gap: 0 40px; }
  .post { margin-inline: 0; }
  .toc { display: none; }
  .post-rail { display: block; padding-top: 104px; }
  .rail-toc { position: sticky; top: calc(var(--bar-h) + 24px); }
  .rail-h { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
  .rail-toc-list { border-left: 1px solid var(--line); }
  .rail-toc-list a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; line-height: 20px; color: var(--ink-2); }
  .rail-toc-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .rail-toc-list a[aria-current="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--ink); }
  .post-rail .ad-rect { position: static; margin-top: 32px; }
  main.blog-page { max-width: 960px; }
  .blog-list, .blog-head, .blog-chips { padding-left: 32px; padding-right: 32px; }
  .blog-pages { margin-left: 32px; margin-right: 32px; }
}
@media (forced-colors: active) {
  .cv { border: 1px solid CanvasText; }
  .rail-toc-list a[aria-current="true"] { border-left-color: Highlight; }
}
