/*
Theme Name: TV UNO
Theme URI: https://tvuno.ro
Author: TV UNO România
Author URI: https://tvuno.ro
Description: Tema oficială a site-ului TV UNO România — televiziune națională de știri. Știri din toate județele, emisiuni și transmisiune live.
Version: 1.4.34
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: tvuno
License: Proprietary
Update URI: false
*/
:root {
  --ink: #111113;
  --ink-2: #2b2b30;
  --muted: #5f5f66;
  --line: #e4e4e7;
  --bg: #f4f4f5;
  --paper: #ffffff;
  --navy: #0e0e10;
  --navy-2: #1c1c20;
  --red: #e80306;
  --red-dark: #c00205;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  --head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Top strip ---------- */
.topbar { background: #000; color: #c8c8cd; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.topbar .date { display: inline-block; }
.topbar .date::first-letter { text-transform: uppercase; }
.socials { display: flex; gap: 4px; }
.socials a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: #c8c8cd; }
.socials a:hover { background: var(--navy-2); color: #fff; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Header ---------- */
.header { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; z-index: 100; }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }

.nav { flex: 1; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav .dd-btn {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .3px; color: #e8e8eb;
  background: none; border: 0;
}
.nav a:hover, .nav .dd-btn:hover, .nav a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.dd a { color: var(--ink-2); }
.dd a:hover { background: var(--bg); color: var(--ink); }
.nav li { position: relative; }
.dd-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; display: none;
}
.dd.open { display: block; }
.dd a { text-transform: none; font: 600 15px/1.2 var(--body); padding: 10px 12px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 0; background: none;
  display: grid; place-items: center; color: #fff;
}
.icon-btn:hover { background: var(--navy-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

.live-btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px;
  background: var(--red); color: #fff; font: 800 14px/1 var(--head); letter-spacing: .6px;
}
.live-btn:hover { background: var(--red-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative; flex-shrink: 0; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }

.search-bar { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 8px; padding: 12px 0; }
.search-bar input {
  flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; background: var(--bg);
}
.btn {
  height: 44px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font-weight: 700;
}

/* ---------- Breaking ticker ---------- */
.ticker { background: var(--paper); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; height: 44px; gap: 14px; overflow: hidden; }
.ticker-label {
  flex-shrink: 0; background: var(--red); color: #fff; font: 800 12px/1 var(--head);
  padding: 7px 10px; border-radius: 6px; letter-spacing: .6px; text-transform: uppercase;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 40px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { white-space: nowrap; font-weight: 600; font-size: 14px; }
.ticker-items a:hover { color: var(--red); }
.ticker-items time { color: var(--red); font-weight: 800; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; }
  .dot::after { animation: none; }
}

/* ---------- Generic ---------- */
main { padding: 24px 0 48px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title {
  font: 900 22px/1.1 var(--head); margin: 0; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ""; width: 6px; height: 22px; background: var(--red); border-radius: 3px; }
.more { font-weight: 700; font-size: 14px; color: var(--red); }
.more:hover { text-decoration: underline; }

.kicker {
  display: inline-block; font: 800 11px/1 var(--head); text-transform: uppercase; letter-spacing: .8px;
  color: var(--red);
}
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.thumb { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb.noimg { background: var(--navy) url(assets/img/tvuno-logo-120.webp) center / 28% auto no-repeat; }
a:hover .thumb img { transform: scale(1.04); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 { font: 800 17px/1.3 var(--head); margin: 0; letter-spacing: -.1px; }
.card:hover h3 { color: var(--red); }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 20px 24px; }
/* Live card is first in the markup (top on phones); on desktop it sits above the sidebar. */
.hero-main { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.hero-live { grid-column: 2; grid-row: 1; }
.hero > .side { grid-column: 2; grid-row: 2; align-self: start; }
.lead { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--navy); }
.lead .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.lead-body { padding: 22px 28px 26px; background: var(--navy); color: #fff; border-top: 4px solid var(--red); }
.lead-body .kicker { background: var(--red); color: #fff; padding: 6px 8px; border-radius: 5px; }
.lead-body h2 { font: 900 32px/1.12 var(--head); margin: 12px 0 10px; letter-spacing: -.6px; max-width: 780px; }
.lead-body p { margin: 0; color: #d4d4d8; max-width: 680px; font-size: 15px; }
.lead:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Live card */
.live-card { background: var(--navy); color: #fff; border-radius: 14px; overflow: hidden; }
.live-card .screen { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover; display: grid; place-items: center; }
.live-card .screen::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.play {
  position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(232, 3, 6, .25); transition: transform .2s;
}
.live-card:hover .play { transform: scale(1.08); }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.badge-live {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff; font: 800 12px/1 var(--head); letter-spacing: .6px; padding: 6px 9px; border-radius: 5px;
}
.live-info { padding: 16px 18px 18px; }
.live-info .now { font: 800 19px/1.2 var(--head); margin: 4px 0 10px; }
.live-info small { color: #9d9da5; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.progress { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--red); }
.next { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: #c8c8cd; gap: 10px; }
.next b { color: #fff; }

/* Latest list */
.box { background: var(--paper); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.box .section-title { font-size: 18px; }
.box .section-title::before { height: 18px; }
.latest { list-style: none; margin: 14px 0 0; padding: 0; }
.latest li { border-top: 1px solid var(--line); }
.latest a { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 11px 0; font-weight: 600; font-size: 14px; line-height: 1.35; }
.latest a:hover span { color: var(--red); }
.latest time { color: var(--red); font-weight: 800; font-size: 13px; padding-top: 1px; }

/* ---------- Regional tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px;
  font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2);
}
.tab:hover { border-color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { background: var(--paper); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Shows ---------- */
.shows-band { background: var(--navy); color: #fff; padding: 36px 0 40px; margin-top: 44px; }
.shows-band .section-title { color: #fff; }
.shows-band .more { color: #fff; }
.shows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.show {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-top: 4px solid var(--red);
  transition: background .2s, transform .2s;
}
.show:hover { background: #26262b; transform: translateY(-2px); }
.show .num { position: absolute; top: 14px; left: 18px; font: 800 14px/1 var(--head); color: var(--red); letter-spacing: 1px; }
.show h3 { font: 900 22px/1.1 var(--head); margin: 0 0 10px; letter-spacing: -.3px; }
.show .when { font: 700 13px/1 var(--head); color: #9d9da5; }
.show:hover .when { color: #fff; }

/* ---------- Ads ---------- */
.ad-slot { margin: 36px 0 0; min-height: 100px; display: grid; place-items: center; gap: 6px; overflow: hidden; }
.ad-slot::before { content: "Publicitate"; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9d9da5; }
.ad-slot.tall { min-height: 250px; margin: 0; }
.ad-slot.in-article { margin: 28px 0; }
.ad-widget { max-width: 100%; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.list-cards { display: flex; flex-direction: column; gap: 18px; }
.row-card { display: grid; grid-template-columns: 240px 1fr; gap: 18px; background: var(--paper); padding: 12px; border-radius: 12px; box-shadow: var(--shadow); }
.row-card .thumb { aspect-ratio: 16 / 10; }
.row-card h3 { font: 800 19px/1.25 var(--head); margin: 6px 0 8px; }
.row-card:hover h3 { color: var(--red); }
.row-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-sticky { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

.popular { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: pop; }
.popular li { counter-increment: pop; border-top: 1px solid var(--line); }
.popular a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; font: 700 15px/1.3 var(--head); }
.popular a::before { content: counter(pop); font: 900 28px/1 var(--head); color: var(--red); opacity: .9; }
.popular a:hover { color: var(--red); }

.follow h3 { font: 900 20px/1.2 var(--head); margin: 0 0 6px; }
.follow p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.follow .socials a { width: 40px; height: 40px; background: var(--bg); color: var(--ink); }
.follow .socials a:hover { background: var(--red); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a8a8b0; padding: 44px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: .6px; margin: 6px 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer p { margin: 14px 0; max-width: 320px; }
.footer .socials a { background: rgba(255,255,255,.06); width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Mobile live pill ---------- */
.live-pill {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40;
  box-shadow: 0 8px 24px rgba(232, 3, 6, .4); border-radius: 999px; height: 48px; padding: 0 20px;
}

/* ---------- Article ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: var(--red); }
.article { background: var(--paper); border-radius: 14px; padding: 32px 40px 40px; box-shadow: var(--shadow); }
.article h1 { font: 900 40px/1.12 var(--head); letter-spacing: -.8px; margin: 12px 0 14px; }
.article .lede { font: 400 20px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 20px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-author { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 14px/1 var(--head); }
.byline-author b { display: block; font-size: 14px; }
.share { display: flex; gap: 6px; }
.share a, .share button {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--ink-2);
}
.share a:hover, .share button:hover { background: var(--bg); }
.share svg { width: 17px; height: 17px; fill: currentColor; }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--radius); width: 100%; height: auto; }
.article figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.prose { font: 400 19px/1.75 var(--serif); color: #1b2130; max-width: 720px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font: 800 26px/1.25 var(--head); margin: 1.6em 0 .6em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-style: italic; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.tags a { background: var(--bg); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tags a:hover { background: var(--ink); color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; transition: .25s; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Live page ---------- */
.live-hero { background: var(--navy); color: #fff; padding: 24px 0 32px; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.player > div, .player iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.player-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #9d9da5; padding: 24px; }
.live-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; flex-wrap: wrap; }
.live-title h1 { font: 900 28px/1.15 var(--head); margin: 0; }
.live-hero .meta { color: #9d9da5; }
.upnext { background: var(--navy-2); border-radius: 14px; padding: 18px; }
.upnext h2 { font: 800 16px/1 var(--head); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px; color: #c8c8cd; }
.upnext ol { list-style: none; margin: 0; padding: 0; }
.upnext li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.upnext li:first-child { border-top: 0; }
.upnext time { font: 800 15px/1.3 var(--head); color: var(--red); }
.upnext b { display: block; font-size: 14px; line-height: 1.35; }
.upnext a:hover b { text-decoration: underline; }
.upnext span { color: #9d9da5; font-size: 13px; }
.unavailable {
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 36px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.unavailable b { font: 800 18px/1.3 var(--head); }
.unavailable span { color: var(--muted); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav > ul > li.hide-md { display: none; }
  .shows { grid-template-columns: repeat(3, 1fr); }
  .shows .show:nth-child(n+4) { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--paper); z-index: 80;
    padding: 72px 16px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 30px rgba(0,0,0,.15);
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li.hide-md { display: block; }
  .nav a, .nav .dd-btn { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 15px; color: var(--ink-2); }
  .nav a:hover, .nav .dd-btn:hover, .nav a[aria-current="page"] { background: var(--bg); color: var(--ink); }
  .nav-close { color: var(--ink-2); }
  .nav-close:hover { background: var(--bg); }
  .dd { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
  .nav-close { position: absolute; top: 14px; right: 14px; }
  /* Below the sticky header (z 50), whose stacking context holds the drawer */
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 49; display: none; }
  .scrim.open { display: block; }
  .header .live-btn { display: none; }
  .live-pill { display: inline-flex; }
  .hero, .two-col, .live-layout { grid-template-columns: 1fr; }
  .hero { grid-template-rows: none; }
  .hero-main, .hero-live, .hero > .side { grid-column: auto; grid-row: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side-sticky { position: static; }
}
@media (min-width: 961px) { .nav-close, .scrim { display: none; } }
@media (max-width: 640px) {
  .topbar .date { font-size: 12px; }
  .header .wrap { height: 60px; gap: 12px; }
  .logo img { height: 38px; }
  .lead-body { padding: 16px 18px 18px; }
  .lead-body h2 { font-size: 25px; }
  .lead-body p { display: none; }
  .hero-sub, .grid-3 { grid-template-columns: 1fr; }
  .hero-sub .card, .grid-4 .card { display: grid; grid-template-columns: 120px 1fr; grid-auto-rows: min-content; gap: 4px 12px; align-items: start; }
  .hero-sub .card .thumb, .grid-4 .card .thumb { grid-row: 1 / span 3; }
  .hero-sub .card h3, .grid-4 .card h3 { font-size: 16px; }
  .hero-sub .card .thumb { aspect-ratio: 4 / 3; }
  .hero-sub .card p { display: none; }
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 .card .thumb { aspect-ratio: 4 / 3; }
  .grid-4 .card p { display: none; }
  .row-card { grid-template-columns: 1fr; }
  .shows { grid-template-columns: repeat(2, 1fr); }
  .shows .show:nth-child(n+4) { display: flex; }
  .show { aspect-ratio: auto; min-height: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 20px 16px 28px; border-radius: 0; margin: 0 -16px; box-shadow: none; }
  .article h1 { font-size: 28px; }
  .article .lede { font-size: 18px; }
  .prose { font-size: 18px; }
  .ticker-label { font-size: 11px; padding: 6px 8px; }
}

/* ---------- WordPress additions ---------- */
.custom-logo-link img, .logo img { height: 44px; width: auto; }

/* Județe dropdown: grouped by region, several columns on desktop */
.dd-group { padding: 10px 12px 4px; font: 800 11px/1 var(--head); letter-spacing: .8px; text-transform: uppercase; color: var(--red); }
.dd-wide { max-height: 70vh; overflow-y: auto; }
@media (min-width: 961px) {
  /* Anchor the wide panel to the header row so it never runs off-screen */
  .header .wrap { position: relative; }
  .nav li:has(> .dd-wide) { position: static; }
  .dd-wide { left: auto; right: 16px; top: calc(100% - 4px); }
  .dd-wide.open { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); width: min(760px, calc(100vw - 32px)); }
  .dd-wide .dd-group { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; }
  .dd-wide .dd-group:first-child { border-top: 0; margin-top: 0; }
}

/* "Din țară" */
#din-tara .tabs { margin-bottom: 16px; }
.county-picker select {
  height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: 600 14px/1 var(--body);
  background: var(--paper); color: var(--ink); max-width: 220px;
}
.tab-panel[hidden] { display: none; }

/* Archives & search */
.archive-head { margin-bottom: 20px; }
.archive-head .section-title { font-size: 30px; }
.archive-head .section-title::before { height: 28px; }
.archive-desc { color: var(--muted); margin-top: 8px; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; display: grid; place-items: center;
  background: var(--paper); box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.page-numbers.current { background: var(--ink); color: #fff; }
a.page-numbers:hover { color: var(--red); }
.not-found { margin-top: 12px; }
.not-found form { display: flex; gap: 8px; margin-top: 12px; }
.not-found input[type="search"] { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; }
.not-found input[type="submit"] { height: 44px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }

/* Article content from the block editor */
.article .featured img { aspect-ratio: auto; }
.byline .byline-author a:hover { color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: 8px; }
.prose figure, .prose .wp-block-image { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font: 400 13px/1.4 var(--body); color: var(--muted); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose h3 { font: 800 21px/1.3 var(--head); margin: 1.4em 0 .5em; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--body); margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose iframe { max-width: 100%; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-gallery { margin: 1.6em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Sidebar live box */
.live-mini { display: block; }
.live-mini .badge-live { position: static; margin-bottom: 10px; }

/* Live page */
.live-main { padding-top: 0; }
.live-desc p { margin: 0; }
.live-title .badge-live { position: static; }
.upnext a b { color: #fff; }
.upnext .more { color: #fff; display: inline-block; margin-top: 10px; }
.sched { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.sched-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.sched-row:first-child { border-top: 0; }
.sched-row time { font: 800 18px/1 var(--head); }
.sched-row b { display: block; font: 800 17px/1.25 var(--head); }
.sched-row span { color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .dd-group { padding-left: 0; }
}
@media (max-width: 640px) {
  .section-head { flex-wrap: wrap; }
  .county-picker select { max-width: none; }
  .archive-head .section-title { font-size: 24px; }
  .alignleft, .alignright { float: none; margin: 1em 0; max-width: 100%; }
}

/* ---------- Byline for newsroom-desk articles ---------- */
.avatar-desk { background: #0e0e10; overflow: hidden; }
.avatar-desk img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Județe: map of Romania + list ---------- */
.county-panel { padding: 6px 8px 8px; }
.county-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.county-panel-label { font: 800 15px/1.2 var(--head); color: var(--ink); }
.county-panel-label.is-hover { color: var(--red); }
.county-panel-toggle { border: 0; background: none; padding: 4px 2px; font: 700 12px/1 var(--body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.county-panel-toggle:hover { color: var(--red); }
.county-panel-map { padding: 4px; }
.ro-map { display: block; width: 100%; height: auto; }
.ro-map path { fill: #e4e4e7; stroke: #fff; stroke-width: 1; stroke-linejoin: round; transition: fill .12s; }
.ro-map a { cursor: pointer; }
.ro-map a:hover path, .ro-map a:focus path { fill: var(--red); }
.ro-map a.is-current path { fill: var(--ink); }
.ro-map a:focus { outline: none; }
.ro-map a:focus-visible path { stroke: var(--ink); stroke-width: 2; }
.ro-map .ro-map-off { fill: #f4f4f5; }
.county-panel-list { list-style: none; margin: 0; padding: 0; display: none; }
.county-panel[data-view="list"] .county-panel-map { display: none; }
.county-panel[data-view="list"] .county-panel-list { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.county-panel-list .dd-group { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; }
.county-panel-list .dd-group:first-child { border-top: 0; margin-top: 0; }
@media (min-width: 961px) {
  .dd-wide.open { display: block; width: min(680px, calc(100vw - 32px)); grid-template-columns: none; max-height: 86vh; }
}
/* Phones and tablets: the drawer always shows the list */
@media (max-width: 960px) {
  .county-panel-head, .county-panel-map { display: none; }
  .county-panel .county-panel-list { display: block; }
  .county-panel { padding: 0; }
}

/* ---------- Embedded players ---------- */
/* isolation keeps the player's own z-indexed controls inside it, below the header menus */
.player { isolation: isolate; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.live-card .screen.player { aspect-ratio: 16 / 9; border-radius: 0; background: #000; }
.live-card .screen.player::before { display: none; }
.live-card .screen .badge-live { z-index: 1; pointer-events: none; }
.live-card a.live-info { display: block; }
.live-card a.live-info:hover .now { text-decoration: underline; }

/* ---------- RSS page ---------- */
.rss-page .section-title { margin: 32px 0 12px; font-size: 20px; }
.rss-page .section-title::before { height: 20px; }
.feed-region { font: 800 12px/1 var(--head); letter-spacing: .8px; text-transform: uppercase; color: var(--red); margin: 18px 0 6px; }
.feed-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feed-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed-name { font-weight: 700; }
.feed-url { color: var(--muted); font: 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.feed-url:hover { color: var(--red); }
.feed-copy { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 12px; font: 700 13px/1 var(--body); color: var(--ink-2); }
.feed-copy:hover { background: var(--bg); }
@media (max-width: 640px) { .feed-row { grid-template-columns: 1fr auto; } .feed-url { grid-column: 1 / -1; grid-row: 2; } }

/* Copy protection (visitors only; see inc/protect.php) */
body.no-copy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.no-copy input, body.no-copy textarea, body.no-copy select, body.no-copy [contenteditable] { -webkit-user-select: text; user-select: text; }
body.no-copy img { -webkit-user-drag: none; }

/* Confirmations (e.g. "link copied") at the top, above ad bars and floating widgets. */
.toast { top: 84px; bottom: auto; transform: translate(-50%, -16px); z-index: 2147483647; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.locked-note { padding: 96px 0; text-align: center; }
.locked-note h1 { margin: 0 0 8px; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--head); }
.locked-note p { margin: 0; color: var(--muted); }

/* Footer contact lines */
.footer .contact { margin: 4px 0 16px; font-size: 14px; }
.footer .contact li { line-height: 1.45; }

/* Sudwire's credit line closes the article in normal text; the AI note at its end is set very small */
p.sudwire-source, .prose p.sudwire-source { font-size: 1em; opacity: 1; color: inherit; margin-top: 1.6em; }
p.sudwire-source .sudwire-ai { font: 400 7px/1 var(--body, system-ui, sans-serif); color: #6b6b73; letter-spacing: .2px; }
p.sudwire-ai-label, .prose p.sudwire-ai-label { font: 400 11px/1.4 var(--body, system-ui, sans-serif); color: #8b8b93; opacity: 1; margin: 0 0 1.2em; }
