/*
Theme Name: Niš TV
Theme URI: https://nistv.rs
Author: Niš TV
Description: Ručno pravljena tema za nistv.rs (dizajn „D · N1 stil"). Naslovna sa slajderom iz rubrike Aktuelno, sekcije po rubrikama, Niš TV uživo, programska šema, vremenska prognoza, oglasi. Podešavanja: Izgled → Niš TV podešavanja.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nistv
*/

:root {
  --ink: #0a0f1f; --ink-2: #4b5165; --ink-3: #8c92a3; --line: #e3e6ee; --soft: #eef1f6; --bg: #fff; --card: #fff;
  --red: #d3141c; --red-t: #d3141c; --red-dk: #a50f16; --navy: #121c3d; --navy-2: #1d2a55;
  --f: 'Exo 2', system-ui, sans-serif; --wrap: 1300px;
}
/* Tamni režim: uključuje se dugmetom sunce/mesec u zaglavlju (pamti se u pregledaču posetioca) */
html[data-theme="dark"] {
  --ink: #eef1f7; --ink-2: #c3c9d8; --ink-3: #8d95ab; --line: #2a3350; --soft: #1a2238; --bg: #0c1120; --card: #161d31; --red-t: #ff5d64;
  color-scheme: dark;
}
html[data-theme="dark"] .cards article { box-shadow: 0 8px 22px rgba(0,0,0,.35); }
html[data-theme="dark"] .ad-top .ad-empty { border-color: #3a4566; color: #7d86a0; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-btn:hover { background: var(--red); color: #fff; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun, html[data-theme="dark"] .theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.h { font-weight: 600; line-height: 1.22; }
a:hover .h, .h a:hover { color: var(--red-t); }
.meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.meta .cat { color: var(--red-t); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.meta i { width: 1px; height: 10px; background: var(--line); }
.ph { overflow: hidden; border-radius: 4px; aspect-ratio: 16/9; background: var(--soft); }
.ph img, .hron-big img { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Oglasi */
.oglas { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.oglas img { display: block; }
.ad-top { background: var(--soft); padding: 12px 0; }
.ad-top .oglas { max-width: 970px; margin: 0 auto; }
.ad-top .ad-empty { height: 90px; width: calc(100% - 32px); border: 1px dashed #c5cad6; border-radius: 4px; color: #9aa1b2; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* Traka „Sada na Niš TV" */
.onair { display: block; background: var(--navy); color: #fff; transition: background .2s; }
.onair:hover { background: var(--navy-2); }
.onair .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.onair .now { min-width: 0; flex: 1; }
.onair .now small { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.onair .now b { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onair .prog { width: 160px; flex: none; font-size: 12px; color: rgba(255,255,255,.6); }
.onair .prog div { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin-top: 6px; }
.onair .prog div i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px; }
.onair .next { font-size: 13px; color: rgba(255,255,255,.6); flex: none; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.onair .next b { color: #fff; font-weight: 600; }
.onair .watch { display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; padding: 8px 22px 8px 8px; border-radius: 999px; flex: none; animation: glow 2s infinite; transition: transform .15s, background .15s; }
.onair:hover .watch { transform: scale(1.04); background: #f0212a; }
.onair .watch .pl { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.onair .watch .pl::after { content: ''; border-left: 13px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.onair .watch .tx { display: flex; flex-direction: column; line-height: 1.1; }
.onair .watch b { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.onair .watch small { font-size: 11px; font-weight: 500; opacity: .85; }
[hidden] { display: none !important; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(211,20,28,.7); } 70% { box-shadow: 0 0 0 14px rgba(211,20,28,0); } 100% { box-shadow: 0 0 0 0 rgba(211,20,28,0); } }
@keyframes bl { 50% { opacity: .3; } }

/* Zaglavlje */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
.site-header > .wrap { display: flex; align-items: center; gap: 16px; height: 54px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; border-radius: 2px; }
.site-nav { display: flex; align-items: center; gap: 20px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { font-size: 13px; font-weight: 500; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover { color: var(--red-t); }
.site-nav a.on { color: var(--red-t); font-weight: 700; }
.site-nav a.pill { background: var(--navy); color: #fff; padding: 2px 7px; border-radius: 2px; font-weight: 600; }
.tools { display: flex; align-items: center; gap: 14px; font-size: 13px; margin-left: auto; flex: none; }
.site-header .search-btn { flex: none; }
.tools .lat { background: none; border: 0; cursor: pointer; color: var(--ink-3); font: 600 13px var(--f); white-space: nowrap; }
.tools .lat .cur { color: var(--ink); }
.search-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--red); color: #fff; }
.search-btn svg { width: 21px; height: 21px; }
.search-bar { border-top: 1px solid var(--line); background: var(--card); padding: 12px 0; }
.search-bar form { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; }
.search-bar input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font: 500 16px var(--f); color: var(--ink); }
.search-bar input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.search-bar button { height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font: 700 14px var(--f); cursor: pointer; }

/* Društvene mreže */
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ig { --bc: linear-gradient(45deg, #f9a825, #e1306c 45%, #833ab4); } .fb { --bc: #1877f2; } .tt { --bc: #111; } .yt { --bc: #ff0000; }
.follow { position: relative; flex: none; }
.follow .label { max-width: 128px; font-size: 11px; line-height: 1.15; text-align: left; }
.follow > button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: 600 12px var(--f); cursor: pointer; }
.follow > button:hover, .follow.open > button { border-color: var(--ink-3); color: var(--ink); }
.follow .stack { display: flex; }
.follow .stack i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--bc); margin-left: -4px; border: 2px solid var(--card); }
.follow .stack .ico { width: 9px; height: 9px; }
.follow .panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 40px rgba(10,15,31,.14); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; z-index: 70; }
.follow.open .panel { opacity: 1; visibility: visible; transform: none; }
.follow .panel small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px 6px; }
.follow .panel a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.follow .panel a:hover { background: var(--soft); }
.follow .panel a i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--bc); flex: none; }
.follow .panel a i .ico { width: 14px; height: 14px; }
.follow .panel a span { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 500; }

/* Vrh naslovne */
.top { display: grid; grid-template-columns: 1.95fr 1fr 1.05fr; grid-template-rows: auto auto 1fr; gap: 20px; padding: 24px 0; }
.top > * { min-width: 0; }
.top .side-col { grid-column: 3; grid-row: 1 / span 3; }
.top .akt-below { grid-column: 1 / 3; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.akt-below .h { font-size: 20px; margin-top: 10px; }
.top .top-ad { grid-column: 1 / 3; grid-row: 3; align-self: start; border-radius: 4px; }
.lead .ph { aspect-ratio: 16/9.2; }
.lead .h { font-size: 34px; margin-top: 12px; }
/* velika slika raste dok se dno glavne vesti ne poravna sa dnom desne kolone (Aktuelno 3) */
@media (min-width: 761px) {
  .lead article { height: 100%; display: flex; flex-direction: column; }
  .lead article > a { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .lead .ph { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; position: relative; }
  .lead .ph img { position: absolute; inset: 0; }
}
.mid article + article { margin-top: 18px; }
.mid .h { font-size: 18px; margin-top: 8px; }
.side-col { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.box-t { font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.more-t { margin: 36px 0 14px; }

/* Najnovije */
.latest { background: var(--soft); border-radius: 4px; padding: 16px 14px 14px; border-bottom: 3px solid var(--red); align-self: start; }
.latest ol { list-style: none; max-height: 300px; overflow-y: auto; padding: 0 8px 34px 0; scrollbar-width: thin; scrollbar-color: #c3c9d6 transparent; -webkit-mask: linear-gradient(#000 85%, transparent); mask: linear-gradient(#000 85%, transparent); }
.latest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest li:last-child { border-bottom: 0; }
.latest li .meta { margin: 0 0 4px; }
.latest li a { font-weight: 600; font-size: 15px; line-height: 1.3; }
.latest li a:hover { color: var(--red-t); }
.latest .all { display: table; margin: 10px auto 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 3px; }

/* Niš TV uživo */
.tvlive { background: var(--navy); color: #fff; border-radius: 4px; overflow: hidden; }
.tvlive .vid { position: relative; display: block; aspect-ratio: 16/9; background: #000; }
.tvlive video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvlive .badge { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; background: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 3px; }
.tvlive .badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: bl 1.3s infinite; }
.tvlive .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(211,20,28,.92); display: grid; place-items: center; transition: opacity .3s; }
.tvlive .pl::after { content: ''; border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.tvlive.playing .pl { opacity: 0; } .tvlive.playing .vid:hover .pl { opacity: 1; }
.tvlive .in { padding: 12px 14px 14px; }
.tvlive .now { font-size: 12px; color: rgba(255,255,255,.6); }
.tvlive .h { font-size: 18px; margin: 2px 0 8px; color: #fff; }
.tvlive ul { max-height: 150px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; border-bottom: 1px solid rgba(255,255,255,.12); }
.tvlive li { list-style: none; display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.tvlive li time { color: rgba(255,255,255,.5); width: 40px; flex: none; }
.tvlive li.cur { color: #fff; font-weight: 700; } .tvlive li.cur time { color: #ff6b6b; }
.tvlive li.past { opacity: .45; }
.tvlive li.day { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); padding: 9px 0 4px; }
.tvlive .btns { display: flex; gap: 8px; margin-top: 10px; }
.tvlive .go { flex: 1; text-align: center; background: var(--red); padding: 9px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.tvlive .snd { background: rgba(255,255,255,.12); padding: 9px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tvlive.no-preview .snd, .tvlive.no-preview .vol { display: none; }
.tvlive:not(.sound-on) .vol { display: none; }
.tvlive .vol { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.65); }
.tvlive .vol span { white-space: nowrap; }
.tvlive .vol input { flex: 1; min-width: 0; height: 18px; accent-color: var(--red); cursor: pointer; }
.live-modal { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,20,.9); display: grid; place-items: center; padding: 16px; }
.live-box { position: relative; width: min(1100px, 100%); }
.live-box video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; }
.live-x { position: absolute; right: 0; top: -44px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* Mreže vesti */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; padding: 8px 0 28px; }
.grid4 > *, .grid3 > * { min-width: 0; }
.grid4 .h { font-size: 17px; margin-top: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.grid3 .h { font-size: 16px; margin-top: 10px; }

/* Trake */
.band { padding: 28px 0; color: #fff; margin: 12px 0 28px; }
.band.navy { background: var(--navy); }
.band.red { background: linear-gradient(135deg, var(--red-dk), var(--red)); }
.band-t { font-size: 28px; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.band-t small { font-size: 13px; font-weight: 500; text-transform: none; opacity: .75; }
.band .meta { color: rgba(255,255,255,.65); } .band .meta .cat { color: #fff; }
.band .meta i { background: rgba(255,255,255,.3); }
.band a:hover .h { color: #ffd3d3; }
.band .grid4 { padding: 0; }
.band-more { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: none; border: 1px solid rgba(255,255,255,.55); padding: 7px 14px; border-radius: 999px; transition: .15s; white-space: nowrap; }
.band-more:hover { background: #fff; color: var(--red-t); border-color: #fff; }
.split { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* Bele kartice (Niš, Ekonomija) */
.cards article { background: var(--card); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(60,0,4,.28); transition: transform .2s, box-shadow .2s; }
.cards article:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(60,0,4,.38); }
.cards .ph { border-radius: 0; } .cards .ph img { transition: transform .5s; } .cards article:hover .ph img { transform: scale(1.05); }
.cards .h { padding: 0 14px; margin-top: 12px; }
.band .cards a:hover .h { color: var(--red-t); }
.band .cards .meta { padding: 0 14px 14px; color: var(--ink-3); } .band .cards .meta .cat { color: var(--red-t); }
.band .cards .meta i { background: var(--line); }
.band.soft { background: var(--soft); color: var(--ink); }
.band.soft .sec-head::after { background: var(--line); } .band.soft .sec-head a { background: var(--card); }
.band.soft .sec-head a:hover { background: var(--red); }
.band.soft .cards article { box-shadow: 0 4px 14px rgba(10,15,31,.07); }
.band.soft .cards article:hover { box-shadow: 0 14px 30px rgba(10,15,31,.15); }

/* Niš: velika vest levo, četiri kartice u sredini, tri naslova desno */
.nis-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.05fr; gap: 18px; }
.nis-grid.no-list { grid-template-columns: 1.55fr 1fr 1fr; }
.nis-grid > * { min-width: 0; }
.nis-grid article { display: flex; flex-direction: column; }
.nis-grid article .h { font-size: 16px; }
.nis-grid article .meta { margin-top: auto; padding-top: 8px; }
.nis-big { grid-column: 1; grid-row: 1 / span 2; }
.nis-big .ph { aspect-ratio: 16/10; }
.nis-grid .nis-big .h { font-size: 27px; padding: 0 20px; margin-top: 18px; }
.nis-big p { padding: 0 20px; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.band .cards .nis-big .meta { padding: 12px 20px 20px; }
.nis-list { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; background: rgba(0,0,0,.2); border-radius: 12px; padding: 16px 18px 8px; }
.nl-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.35); }
.nis-list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); flex: 1; }
.nis-list a:last-child { border-bottom: 0; }
.nis-list time { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.cards .nis-list .h { display: block; font-size: 17px; color: #fff; padding: 0; margin: 0; }
.band .cards .nis-list a:hover .h { color: #ffd3d3; }

/* Najčitanije */
.rank { background: var(--card); color: var(--ink); border-radius: 4px; padding: 16px; align-self: start; }
.rank.boxed { background: var(--soft); }
.rank .box-t { border-bottom: 3px solid var(--red); display: inline-block; font-size: 17px; margin-bottom: 4px; }
.rank ol { list-style: none; }
.rank li { display: grid; grid-template-columns: 34px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank li b { font-size: 30px; font-weight: 500; color: var(--red-t); line-height: 1; }
.rank li a { font-weight: 600; font-size: 14px; line-height: 1.3; }
.rank li a:hover { color: var(--red-t); }
.band .rank .meta { color: var(--ink-3); } .band .rank .meta .cat { color: var(--red-t); } .band .rank .meta i { background: var(--line); }

/* Naslov sekcije sa crvenom crtom */
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: 28px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 12px; line-height: 1; }
.sec-head h2::before { content: ''; width: 8px; height: 28px; background: var(--red); border-radius: 3px; }
.sec-head::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; }
.sec-head a { order: 2; font-size: 13px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; transition: .15s; white-space: nowrap; }
.sec-head a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Hronika */
.hron { padding: 4px 0 24px; }
.hron-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.hron-big { position: relative; display: block; border-radius: 12px; overflow: hidden; min-height: 400px; color: #fff; background: var(--navy); }
.hron-big img { position: absolute; inset: 0; transition: transform .5s; }
.hron-big:hover img { transform: scale(1.04); }
.hron-big::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,12,28,.92)); }
.hron-big .in { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.hron-big .h { font-size: 28px; } .hron-big:hover .h { color: #fff; }
.hron-big p { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.8); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hron .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.hron-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hron-list a { display: flex; flex-direction: column; background: var(--soft); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.hron-list a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,15,31,.13); }
.hron-list .ph { border-radius: 0; }
.hron-list .tx { padding: 11px 14px 14px; }
.hron-list time { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.hron-list .h { font-size: 15px; margin-top: 3px; }

/* Sport + prognoza */
.sport-row { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.sport-row.no-wx { grid-template-columns: 1fr; }
.sport-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; background: rgba(0,0,0,.18); border-radius: 12px; padding: 10px 12px; }
.sport-list a { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 6px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); min-width: 0; }
.sport-list a:nth-last-child(-n+2) { border-bottom: 0; }
.sport-list .ph { aspect-ratio: 16/10; border-radius: 6px; }
.sport-list .h { font-size: 15px; }
.wx { position: relative; overflow: hidden; background: linear-gradient(145deg, #1b55b3, #3f97e6 65%, #79c2f6); color: #fff; border-radius: 12px; padding: 16px 18px 16px; box-shadow: 0 8px 22px rgba(60,0,4,.28); }
.wx::before { content: ''; position: absolute; right: -46px; top: -46px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(rgba(255,214,102,.75), rgba(255,214,102,0) 68%); animation: wx-pulse 4.5s ease-in-out infinite; }
.wx > * { position: relative; }
.wx svg { fill: currentColor; color: #fff; display: block; filter: drop-shadow(0 2px 3px rgba(0,30,90,.25)); }
.wx-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.8); }
.wx-top b { font-size: 16px; letter-spacing: 0; color: #fff; }
.wx-now { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; }
.wx-now svg { width: 64px; height: 64px; flex: none; }
.wx-now .t { font-size: 52px; font-weight: 700; line-height: 1; } .wx-now .t sup { font-size: 19px; font-weight: 600; vertical-align: top; }
.wx-now .d { margin-left: auto; text-align: right; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.88); } .wx-now .d b { display: block; font-size: 14px; color: #fff; }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.85); }
.wx-days > div { background: rgba(255,255,255,.14); border-radius: 10px; padding: 7px 0 6px; transition: background .2s, transform .2s; }
.wx-days > div:first-child { background: rgba(255,255,255,.3); }
.wx-days > div:hover { background: rgba(255,255,255,.34); transform: translateY(-2px); }
.wx-days svg { width: 26px; height: 26px; margin: 4px auto 2px; } .wx-days b { display: block; font-size: 15px; color: #fff; }
.wx .w-sun { animation: wx-spin 16s linear infinite; }
.wx .w-cloud, .wx .w-pc { animation: wx-drift 5s ease-in-out infinite; }
.wx .w-rain, .wx .w-snow { animation: wx-bob 1.8s ease-in-out infinite; }
@keyframes wx-pulse { 50% { transform: scale(1.18); opacity: .7; } }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-drift { 50% { transform: translateX(5px); } }
@keyframes wx-bob { 50% { transform: translateY(3px); } }

/* Tri kolone */
.tri { padding: 8px 0 28px; }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tri-col { min-width: 0; }
.tri-col .sec-head { margin-bottom: 14px; } .tri-col .sec-head h2 { font-size: 22px; } .tri-col .sec-head h2::before { height: 22px; }
.tri-col .ph { border-radius: 10px; } .tri-col .ph img { transition: transform .5s; } .tri-col .lead-c:hover .ph img { transform: scale(1.05); }
.tri-col .lead-c .h { font-size: 18px; margin-top: 10px; }
.tri-col ul { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.tri-col li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.tri-col li time { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.tri-col li a { font-weight: 600; font-size: 15px; line-height: 1.3; } .tri-col li a:hover { color: var(--red-t); }

/* Podnožje */
.site-footer { border-top: 1px solid var(--line); margin-top: 20px; }
.site-footer .top-f { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; }
.site-footer .logo img { height: 44px; }
.site-footer .soc-t { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-align: right; margin-bottom: 9px; }
.site-footer .soc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer .soc a { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #fff; background: var(--bc); padding: 8px 12px; border-radius: 4px; }
.site-footer .navf { background: var(--navy); color: #fff; }
.site-footer .navf .wrap { display: flex; justify-content: center; gap: 26px; padding: 20px 24px; font-size: 13px; text-transform: uppercase; font-weight: 500; flex-wrap: wrap; }
.site-footer .navf a:hover { color: #ffd3d3; }
.site-footer .legal .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }
.site-footer .legal-links a + a::before { content: '·'; margin: 0 6px; display: inline-block; }
.site-footer .legal-links a:hover { color: var(--red-t); }

/* Članak, rubrike, strane */
.a-band { background: var(--navy) radial-gradient(circle at 80% 20%, var(--navy-2), transparent 60%); color: #fff; padding: 32px 0 30px; }
.a-band.slim { padding: 26px 0 24px; }
.a-band .in { max-width: 860px; }
.a-band .kick { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.7); margin: 0 0 8px; }
.a-band .kick a:hover { color: #fff; }
.a-band h1 { font-size: 40px; font-weight: 600; line-height: 1.2; }
.a-band.slim h1 { font-size: 32px; text-transform: uppercase; font-weight: 700; }
.a-band .term-desc { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.75); max-width: 760px; }
.a-band .by { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-top: 16px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.a-band .by .av { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.a-band .by b { color: #fff; font-weight: 600; }
.a-band .by i { width: 1px; height: 11px; background: rgba(255,255,255,.3); }
.a-band hr { border: 0; border-top: 1px solid rgba(255,255,255,.2); margin: 18px 0 14px; }
.a-band .gsrc { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: #0a0f1f; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 3px; }
.a-layout { display: grid; grid-template-columns: 52px minmax(0, 1fr) 300px; gap: 28px; padding: 24px 24px 40px; }
.share { position: sticky; top: 74px; align-self: start; background: var(--soft); border-radius: 4px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-3); }
body.admin-bar .share, body.admin-bar .sticky { top: 106px; }
.share a { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; color: var(--ink); font-size: 13px; border-radius: 4px; }
.share a:hover { background: var(--red); color: #fff; }
.a-main { max-width: 820px; min-width: 0; }
.a-hero .ph { aspect-ratio: 16/9; }
.a-main figcaption { font-size: 12px; font-style: italic; color: var(--ink-3); margin-top: 6px; }
.prose { font-size: 20px; line-height: 1.6; margin-top: 22px; overflow-wrap: break-word; }
.prose > * { margin-bottom: 1.1em; }
.article .prose > p:first-child { font-weight: 600; }
.prose a { color: var(--red-t); text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { font-size: 28px; line-height: 1.25; margin-top: 1.4em; } .prose h3 { font-size: 23px; line-height: 1.3; margin-top: 1.3em; } .prose h4 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--red); background: var(--soft); padding: 14px 18px; font-weight: 600; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.6em 0; max-width: 100%; } .prose img { border-radius: 4px; }
.prose figcaption, .prose .wp-caption-text { font-size: 12px; font-style: italic; color: var(--ink-3); margin-top: 6px; }
.prose .wp-caption { max-width: 100%; }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose .wp-block-embed__wrapper iframe, .prose p > iframe[src*="youtube"], .prose p > iframe[src*="facebook.com/plugins/video"] { width: 100%; aspect-ratio: 16/9; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose .alignleft { float: left; margin: 4px 20px 12px 0; } .prose .alignright { float: right; margin: 4px 0 12px 20px; } .prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose::after { content: ''; display: block; clear: both; }
.prose .in-ad { margin: 1.6em auto; }
.also { border-left: 4px solid var(--red); background: var(--soft); padding: 12px 16px; margin: 1.4em 0; font-size: 16px; }
.also span { display: block; font-size: 11px; color: var(--red-t); font-weight: 700; text-transform: uppercase; }
.prose .also a { font-weight: 600; color: var(--ink); text-decoration: none; } .prose .also a:hover { color: var(--red-t); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tags a { background: var(--soft); padding: 5px 11px; border-radius: 3px; font-size: 13px; font-weight: 500; }
.tags a:hover { background: var(--red); color: #fff; }
.side-stack > * + * { margin-top: 20px; }
.sticky { position: sticky; top: 74px; }
.a-main .grid3 .h, .list-main .grid3 .h { font-size: 17px; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px 24px 40px; }
/* Strana rubrike: okvir sa nazivom i opisom, padajući spisak rubrika, vesti jedna ispod druge */
.cat-head { background: var(--card); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); border-radius: 8px; box-shadow: 0 10px 30px rgba(10,15,31,.09); padding: 22px 26px; }
.cat-head h1 { font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.cat-head p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.cat-drop { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; }
.cat-drop label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.cat-drop select { flex: 1; min-width: 0; max-width: 360px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: 600 15px var(--f); cursor: pointer; }
.cat-drop select:focus { outline: 2px solid var(--red); border-color: var(--red); }
.a-side .cat-drop { flex-direction: column; align-items: stretch; gap: 6px; background: var(--soft); border-radius: 4px; padding: 14px; }
.a-side .cat-drop select { max-width: none; }
.rows { margin-top: 24px; }
.row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.row .ph { aspect-ratio: 3/2; border-radius: 6px; } .row .ph img { transition: transform .5s; } .row:hover .ph img { transform: scale(1.05); }
.row .h { font-size: 24px; } .row .h a:hover { color: var(--red-t); }
.row .meta { margin-top: 8px; font-size: 12px; }
.more-wrap { display: flex; justify-content: center; margin-top: 8px; }
.more-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 46px; padding: 0 28px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; transition: background .15s; }
.more-btn:hover { background: var(--red-dk); }
.more-btn.loading { opacity: .6; pointer-events: none; }
.site-footer .projf { border-top: 1px solid var(--line); }
.site-footer .projf .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap; padding: 14px 24px; font-size: 13px; font-weight: 600; }
.site-footer .projf b { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.site-footer .projf a:hover { color: var(--red-t); }
.page-body { padding: 8px 24px 48px; max-width: 908px; }
.empty { font-size: 17px; color: var(--ink-2); padding: 24px 0; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pager .page-numbers, .pager > a, .pager > span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 14px; }
.pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.pager a:hover { border-color: var(--red); color: var(--red-t); }
.comments { margin-top: 40px; font-size: 16px; }
.comment-list { list-style: none; } .comment-list li { padding: 14px 0; border-bottom: 1px solid var(--line); } .comment-list .children { list-style: none; padding-left: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: 16px var(--f); }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
.comment-form .submit { margin-top: 14px; height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font: 700 14px var(--f); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .wx::before, .wx svg, .onair .watch { animation: none !important; }
}

@media (max-width: 1100px) {
  .top { grid-template-columns: 1.4fr 1fr; grid-template-rows: none; }
  .top .side-col { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .top .akt-below { grid-column: 1 / -1; grid-row: auto; }
  .top .top-ad { grid-column: 1 / -1; grid-row: auto; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .nis-grid, .nis-grid.no-list { grid-template-columns: 1fr 1fr; } .nis-grid .nis-big, .nis-grid .nis-list { grid-column: 1 / -1; grid-row: auto; }
  .split, .sport-row, .list-layout { grid-template-columns: minmax(0, 1fr); }
  .a-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .a-side { display: none; }
  /* na telefonu i tabletu dugmad za deljenje idu u red iznad slike (većina čitalaca je na telefonu) */
  .share { position: static; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; gap: 4px; padding: 6px 10px; font-size: 11px; }
  .share span { margin-right: 6px; text-transform: uppercase; font-weight: 700; }
  .share { gap: 3px; } .share a { width: 34px; height: 34px; background: var(--card); }
  .split .rank { max-width: none; }
  .tools .lat { display: none; }
  .onair .next { display: none !important; }
}
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 760px) {
  .top .side-col { grid-template-columns: 1fr; }
  .ad-top { padding: 8px 0; } .ad-top .ad-empty { height: 60px; font-size: 11px; }
  .wrap { padding: 0 16px; }
  .onair .wrap { height: 56px; gap: 10px; } .onair .prog { display: none !important; }
  .onair .now b { font-size: 15px; }
  .onair .now small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .onair .watch { padding: 6px 14px 6px 6px; gap: 8px; } .onair .watch .pl { width: 30px; height: 30px; }
  .onair .watch b { font-size: 14px; } .onair .watch small { display: none; }
  .site-header > .wrap { gap: 0 12px; flex-wrap: wrap; height: auto; } .site-header .logo { height: 54px; }
  body.admin-bar .site-header { position: static; }
  .tools { margin-left: auto; gap: 10px; order: 1; } .site-header .search-btn { order: 2; }
  /* na telefonu rubrike idu u drugi red i pomeraju se prstom */
  .site-nav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; padding: 0 16px; height: 40px; gap: 18px; border-top: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
  .site-nav a { font-weight: 600; font-size: 12px; }
  .follow .label { display: none; } .follow > button { padding-left: 8px; }
  .top { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .lead { margin: 0 -16px; } .lead .ph { border-radius: 0; } .lead article > a > .h, .lead article > .meta { padding: 0 16px; } .lead .h { font-size: 25px; }
  .mid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .mid article + article { margin: 0; } .mid .h { font-size: 15px; } .top .akt-below { gap: 14px; padding-top: 16px; } .akt-below .h { font-size: 15px; }
  .grid4, .grid3 { grid-template-columns: 1fr 1fr; gap: 18px 12px; } .grid4 .h, .grid3 .h, .a-main .grid3 .h, .list-main .grid3 .h { font-size: 14px; }
  .band-t { font-size: 22px; flex-wrap: wrap; } .band-t small { display: none; }
  .cards article { border-radius: 10px; } .cards .h { padding: 0 10px; margin-top: 9px; } .band .cards .meta { padding: 0 10px 11px; }
  .nis-grid { gap: 12px; } .nis-grid article .h { font-size: 14px; } .nis-grid .nis-big .h { font-size: 21px; padding: 0 14px; margin-top: 12px; } .nis-big p { padding: 0 14px; font-size: 14px; -webkit-line-clamp: 2; } .band .cards .nis-big .meta { padding: 10px 14px 14px; }
  .nis-list { padding: 14px 14px 6px; } .cards .nis-list .h { font-size: 15px; } .nis-list a { padding: 12px 0; }
  .sec-head h2 { font-size: 22px; } .sec-head h2::before { height: 22px; }
  .hron-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .hron-big { min-height: 280px; border-radius: 10px; } .hron-big .in { left: 16px; right: 16px; bottom: 16px; } .hron-big .h { font-size: 21px; } .hron-big p { display: none; }
  .hron-list { gap: 12px; } .hron-list .h { font-size: 14px; } .hron-list .tx { padding: 9px 11px 12px; }
  .tri-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sport-list { grid-template-columns: minmax(0, 1fr); padding: 6px 10px; } .sport-list a { grid-template-columns: 100px 1fr; padding: 9px 2px; } .sport-list a:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.15); } .sport-list .h { font-size: 14px; }
  .cat-head { padding: 16px 18px; } .cat-head h1 { font-size: 21px; } .cat-head p { font-size: 15px; }
  .cat-drop select { max-width: none; }
  .row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; } .row .h { font-size: 16px; } .row .meta { margin-top: 5px; font-size: 11px; }
  .list-layout { padding-top: 18px; }
  .site-footer .projf .wrap { padding: 12px 16px; }
  .a-band h1 { font-size: 27px; } .a-band.slim h1 { font-size: 24px; }
  .a-layout, .list-layout { padding-left: 16px; padding-right: 16px; } .page-body { padding-left: 16px; padding-right: 16px; }
  .prose { font-size: 18px; } .prose h2 { font-size: 23px; } .prose h3 { font-size: 20px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; }
  .site-footer .top-f { flex-direction: column; gap: 14px; padding: 22px 16px; } .site-footer .soc-t { text-align: center; } .site-footer .soc { justify-content: center; }
  .site-footer .navf .wrap, .site-footer .legal .wrap { padding-left: 16px; padding-right: 16px; }
}
