/* ── Hirfeed broadsheet widget ─────────────────────────────────────────────
   Minden szabály .hf-widget alá van scoped-olva — nem szivárog a WP témára.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Widget konténer ─────────────────────────────────────────────────────── */
#hf-root {
  width: 100%;
  max-width: 100%;
  min-width: 280px;
  overflow: hidden;
}

/* ── Scoped reset (csak a widgeten belül) ─────────────────────────────────── */
.hf-widget *,
.hf-widget *::before,
.hf-widget *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS változók a widget gyökerén ──────────────────────────────────────── */
.hf-widget {
  --hf-bg:        #ffffff;
  --hf-text:      #111111;
  --hf-muted:     #666666;
  --hf-rule:      #c8c4bc;
  --hf-accent:    #8b1a1a;
  --hf-font-head: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --hf-font-body: Georgia, 'Times New Roman', serif;
  --hf-font-ui:   system-ui, -apple-system, sans-serif;

  background: var(--hf-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  font-family: var(--hf-font-body);
  color: var(--hf-text);
}

/* ── Felső szürke címke ──────────────────────────────────────────────────── */
.hf-label {
  display: block;
  background: #0e2f4f;                 /* kék árnyalat #1 (legsötétebb navy) */
  color: #fff;
  font-family: var(--hf-font-head);   /* fehér serif, mint a cikk-címek */
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  text-align: center;
  padding: 7px 12px;
  text-decoration: none;
}
/* A szemle-felirat kattintható link a BELSŐ /hir/ hír-nyitólapra. */
a.hf-label:hover { background: #14406b; color: #fff; }

/* ── Keresősáv (a "Nemzetközi rádiójáték-szemle" csík alatt) ─────────────── */
.hf-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #faf8f4; border-bottom: 1px solid var(--hf-rule);
}
.hf-search-input {
  flex: 0 1 200px; font-family: var(--hf-font-ui); font-size: 12px; padding: 5px 9px;
  border: 1px solid var(--hf-rule); border-radius: 4px; background: #fff; color: var(--hf-text);
}
.hf-search-input:focus { outline: none; border-color: var(--hf-accent); }
.hf-search-clear {
  font-family: var(--hf-font-ui); font-size: 11.5px; white-space: nowrap;
  background: none; border: 1px solid var(--hf-rule); border-radius: 4px;
  color: var(--hf-muted); padding: 6px 9px; cursor: pointer;
}
.hf-search-clear:hover { color: var(--hf-accent); border-color: var(--hf-accent); }
.hf-search-results { padding: 4px 0 0; }
.hf-search-count {
  font-family: var(--hf-font-ui); font-size: 11.5px; color: var(--hf-muted);
  padding: 8px 14px 0;
}

/* ── Fejléc ─────────────────────────────────────────────────────────────── */
.hf-header {
  border-top: 3px solid var(--hf-accent);
  padding: 10px 14px 9px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--hf-rule);
}

.hf-header h1 {
  font-family: var(--hf-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hf-text);
  flex: 1;
  margin: 0;
  padding: 0;
}

.hf-header-date {
  font-family: var(--hf-font-ui);
  font-size: 10px;
  color: var(--hf-muted);
  white-space: nowrap;
}

/* ── Figyelmeztetés (kísérleti / gépi gyűjtés) ──────────────────────────────── */
.hf-disclaimer {
  font-family: var(--hf-font-ui);
  font-size: 10px;
  line-height: 1.4;
  color: var(--hf-muted);
  background: #f7f5f1;
  border-bottom: 1px solid var(--hf-rule);
  padding: 6px 14px;
  margin: 0;
  font-style: italic;
}

/* ── Beágyazott podcast-lejátszó ─────────────────────────────────────────── */
.hf-podcast {
  border-left: 3px solid var(--hf-accent);
  background: #faf8f4;
  padding: 8px 12px 10px;
  margin: 10px 14px 16px;   /* alul térköz a térkép előtt */
}
.hf-podcast-head {
  font-family: var(--hf-font-ui);
  font-size: 12px;
  color: var(--hf-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hf-podcast-date { color: var(--hf-muted); }
.hf-podcast-rss {
  margin-left: auto;
  font-size: 10px;
  color: var(--hf-muted);
  text-decoration: none;
}
.hf-podcast-rss:hover { text-decoration: underline; }
.hf-podcast-audio { width: 100%; height: 36px; display: block; }

/* ── Rácsrendszer ────────────────────────────────────────────────────────── */
.hf-grid {
  display: grid;
  grid-template-columns: 1fr;   /* egyhasábos: minden hír egymás alatt */
  gap: 1px;
  background: var(--hf-rule);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ── Alap kártya ─────────────────────────────────────────────────────────── */
.hf-card {
  background: var(--hf-bg);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* FONTOS: a rács-cellák alapból min-width:auto — egy hosszú törhetetlen szó
     szélesebbre feszítené az oszlopot, mint a konténer, és kilógna jobbra.
     A min-width:0 + overflow:hidden ezt megakadályozza. */
  min-width: 0;
  overflow: hidden;
}

.hf-card--full  { grid-column: 1 / -1; }
.hf-card--half  { grid-column: span 1; }

/* Hosszú szavak / URL-ek tördelése, hogy semmi ne lógjon ki ─────────────── */
.hf-headline, .hf-excerpt, .hf-src, .hf-src-line, .hf-cat {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Ország-sor (a cím fölött) ────────────────────────────────────────────── */
.hf-loc {
  font-family: var(--hf-font-ui);
  font-size: 10px;
  color: var(--hf-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .02em;
}
.hf-loc span { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ── Kártya meta sor ─────────────────────────────────────────────────────── */
.hf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hf-cat {
  font-family: var(--hf-font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hf-accent);
  white-space: nowrap;
}

/* Ország a kategória helyén (Hangjáték-alapértelmezésnél) */
.hf-cat--loc { color: var(--hf-muted); letter-spacing: .05em; }

.hf-cat[data-cat="Hangművészet"]     { color: #1a4a6a; }
.hf-cat[data-cat="Podcast-dráma"]    { color: #1a5a2a; }
.hf-cat[data-cat="Közrádió"]         { color: #5a2a0a; }
.hf-cat[data-cat="Műhely & archívum"]{ color: #4a1a5a; }
.hf-cat[data-cat="Fesztivál & díj"]  { color: #6a5000; }

.hf-src {
  font-family: var(--hf-font-ui);
  font-size: 9.5px;
  color: var(--hf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
  text-align: right;
}

/* ── Kép ─────────────────────────────────────────────────────────────────── */
.hf-img-wrap {
  width: calc(100% + 28px);
  margin: -12px -14px 0;
  overflow: hidden;
  order: -1;
}

.hf-img-wrap img {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-bottom: 1px solid var(--hf-rule);
}

/* ── Cím ─────────────────────────────────────────────────────────────────── */
.hf-headline {
  font-family: var(--hf-font-head);
  line-height: 1.25;
  font-weight: 600;
}

.hf-card--full .hf-headline {
  font-size: 19px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hf-card--half .hf-headline {
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hf-headline a {
  color: inherit;
  text-decoration: none;
}
.hf-headline a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Kivágat ──────────────────────────────────────────────────────────────── */
.hf-excerpt {
  font-family: var(--hf-font-body);
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  /* Nincs sor-limit: a teljes (max 3 mondatos) lead látszódjon — máshol nem olvasható. */
}

/* "Részletek … nyelven →" link a kártya alján */
.hf-details {
  display: inline-block;
  align-self: flex-end;   /* jobbra igazítva a kártya (flex-column) belsejében */
  margin-top: 6px;
  font-family: var(--hf-font-ui);
  font-size: 11px;
  color: var(--hf-accent);
  text-decoration: none;
  white-space: nowrap;
}
.hf-details:hover { text-decoration: underline; }

/* Forrásország-zászló (SVG kép — Windowson is látszik, az emojival ellentétben).
   FIX dobozméret (egyes SVG-knek saját width/height attribútumuk van, ami a
   width:auto-t eltérő méretűvé tenné). 1.2em × 0.9em = 4:3, a viewBox aránya →
   object-fit:cover nem torzít, nem vág. */
.hf-flag {
  display: inline-block;
  width: 1.2em;
  height: 0.9em;
  object-fit: cover;
  vertical-align: -0.1em;
  margin-right: 3px;
  border-radius: 1px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.18);
}

/* ── Félhasáb forrás sor ─────────────────────────────────────────────────── */
.hf-src-line {
  font-family: var(--hf-font-ui);
  font-size: 9.5px;
  color: var(--hf-muted);
  margin-top: auto;
  padding-top: 4px;
}

/* ── Nyelv-jel ───────────────────────────────────────────────────────────── */
.hf-lang {
  display: inline-block;
  font-family: var(--hf-font-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px 4px;
  border: 1px solid #c0bab2;
  color: var(--hf-muted);
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 2px;
  line-height: 1.6;
}

/* ── Betöltési állapot ───────────────────────────────────────────────────── */
.hf-loading, .hf-error {
  padding: 24px 16px;
  font-family: var(--hf-font-ui);
  font-size: 13px;
  color: var(--hf-muted);
  text-align: center;
  grid-column: 1 / -1;
}
.hf-error { color: #a00; }

/* ── Térkép-szűrő ─────────────────────────────────────────────────────────── */
.hf-map {
  width: 100%;
  height: 120px;
  border-bottom: 1px solid var(--hf-rule);
  background: #f4f1ea;
  position: relative;
  overflow: hidden;
}
/* A jsVectorMap saját CSS-e (.jvm-container{height:100%}) KÉSŐBB töltődik be és azonos
   specificitással felülírná a fenti magasságot — ezért itt a kombinált szelektorral
   (magasabb specificitás) rögzítjük, betöltési sorrendtől függetlenül. */
.hf-map.jvm-container {
  height: 120px;
}
/* A jsVectorMap maga méretezi az SVG-t — NE írjuk felül 100%-kal, mert
   az egérrel hover közben újrarajzolási hurkot (villogást) okoz. */
.hf-map .jvm-zoom-btn {
  background: var(--hf-accent); border-radius: 2px; opacity: .8;
}
/* A tooltip fix pozícióval ne nyújtsa meg a lapot (gördítősáv-villogás ellen). */
.jvm-tooltip { position: fixed !important; pointer-events: none; }

/* Pótlék (ha a térkép-CDN nem tölt be): ország-chipek */
.hf-map--fallback { height: auto; background: transparent; padding: 8px 12px; }
.hf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hf-chip {
  font-family: var(--hf-font-ui); font-size: 10.5px; cursor: pointer;
  border: 1px solid var(--hf-rule); background: #fff; color: var(--hf-text);
  padding: 3px 8px; border-radius: 12px;
}
.hf-chip b { color: var(--hf-accent); }
.hf-chip:hover { border-color: var(--hf-accent); }

/* ── Szűrősáv (térkép alatt) ──────────────────────────────────────────────── */
.hf-filter {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-bottom: 1px solid var(--hf-rule);
  font-family: var(--hf-font-ui); font-size: 11px; min-height: 18px;
}
.hf-filter-hint { color: var(--hf-muted); }
.hf-filter-active { font-weight: 700; color: var(--hf-accent); }
.hf-filter-reset {
  font-family: var(--hf-font-ui); font-size: 10.5px; cursor: pointer;
  border: 1px solid var(--hf-rule); background: #fff; color: var(--hf-muted);
  padding: 2px 8px; border-radius: 10px;
}
.hf-filter-reset:hover { border-color: var(--hf-accent); color: var(--hf-accent); }

/* ── Műfaji kulcsszó-sáv (a blokk tetején) + kártyánkénti kulcsszó-gombok ────── */
.hf-tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.hf-tag, .hf-card-tag {
  font-family: var(--hf-font-ui); font-size: 10.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--hf-rule); background: #fff; color: var(--hf-muted);
  padding: 3px 10px; border-radius: 10px; text-transform: lowercase;
}
.hf-tag:hover, .hf-card-tag:hover { border-color: var(--hf-accent); color: var(--hf-accent); }
.hf-tag--active { background: var(--hf-accent); border-color: var(--hf-accent); color: #fff; }
.hf-tag--all { text-transform: none; font-weight: 700; margin-right: 4px; border-style: dashed; }
.hf-tag--all.hf-tag--active { border-style: solid; }
.hf-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.hf-card-tag { font-size: 10px; padding: 2px 8px; }

/* ── Archívum ─────────────────────────────────────────────────────────────── */
.hf-archive {
  border-top: 3px double var(--hf-rule);
  padding: 10px 14px 12px;
}
.hf-arch-title {
  font-family: var(--hf-font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--hf-text);
  margin: 0 0 8px; padding: 0;
}
.hf-arch-list { list-style: none; margin: 0; padding: 0; }
.hf-arch-item {
  padding: 5px 0; border-bottom: 1px solid var(--hf-rule);
  display: flex; flex-direction: column; gap: 2px;
}
.hf-arch-item a, .hf-arch-link {
  font-family: var(--hf-font-head); font-size: 13.5px; line-height: 1.3;
  color: var(--hf-text); text-decoration: none; overflow-wrap: anywhere;
}
.hf-arch-link {
  background: none; border: 0; padding: 0; margin: 0; text-align: left;
  cursor: pointer; display: inline; width: 100%;
}
.hf-arch-item a:hover, .hf-arch-link:hover { text-decoration: underline; color: var(--hf-accent); }
.hf-arch-meta { font-family: var(--hf-font-ui); font-size: 9.5px; color: var(--hf-muted); }
.hf-arch-empty { font-family: var(--hf-font-ui); font-size: 12px; color: var(--hf-muted); padding: 12px 0; }

.hf-arch-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 10px; font-family: var(--hf-font-ui); font-size: 11px;
}
.hf-arch-pager button {
  font-family: var(--hf-font-ui); font-size: 11px; cursor: pointer;
  border: 1px solid var(--hf-rule); background: #fff; color: var(--hf-text);
  padding: 3px 10px; border-radius: 3px;
}
.hf-arch-pager button:hover:not([disabled]) { border-color: var(--hf-accent); color: var(--hf-accent); }
.hf-arch-pager button[disabled] { opacity: .4; cursor: default; }
.hf-arch-page { color: var(--hf-muted); }

/* ── Lábléc ──────────────────────────────────────────────────────────────── */
.hf-footer {
  border-top: 1px solid var(--hf-rule);
  padding: 8px 14px;
  font-family: var(--hf-font-ui);
  font-size: 9.5px;
  color: var(--hf-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hf-footer a {
  color: var(--hf-muted);
  text-decoration: none;
}
.hf-footer a:hover { text-decoration: underline; }

/* ── Köztes felugró ablak (modal) ───────────────────────────────────────────── */
.hf-modal[hidden] { display: none; }
.hf-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hf-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hf-modal-box {
  position: relative; background: var(--hf-bg); color: var(--hf-text);
  max-width: 540px; width: 100%; max-height: 85vh; overflow-y: auto;
  border-top: 3px solid var(--hf-accent); border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 22px 24px 20px;
}
.hf-modal-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: 0; cursor: pointer; line-height: 1;
  font-size: 26px; color: var(--hf-muted); padding: 2px 6px;
}
.hf-modal-close:hover { color: var(--hf-accent); }
.hf-modal-close-bottom {
  display: block; margin: 18px auto 0; font-family: var(--hf-font-ui); font-size: 13px; font-weight: 600;
  cursor: pointer; background: none; border: 1px solid var(--hf-rule); border-radius: 4px;
  padding: 8px 22px; color: var(--hf-text);
}
.hf-modal-close-bottom:hover { color: var(--hf-accent); border-color: var(--hf-accent); }
.hf-modal-box .hf-meta { margin-bottom: 8px; }
.hf-modal-title {
  font-family: var(--hf-font-head); font-weight: 700; line-height: 1.2;
  font-size: 22px; margin: 0 0 10px; color: var(--hf-text);
}
.hf-modal-summary {
  font-family: var(--hf-font-body); font-size: 15px; line-height: 1.55;
  margin: 0 0 16px; color: var(--hf-text);
}
.hf-modal-go {
  display: inline-block; font-family: var(--hf-font-ui); font-size: 12px;
  background: var(--hf-accent); color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 3px;
}
.hf-modal-go:hover { opacity: .9; }

/* ── Szerkesztett-cikk nézet ─────────────────────────────────────────────── */
.hf-title-btn { display: block; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; text-decoration: none; }
.hf-title-btn:hover { color: var(--hf-accent); text-decoration: underline; }
.hf-details { background: none; border: 0; padding: 0; cursor: pointer; }
/* Kártya-kép (csak teljes kártyán) */
.hf-img-wrap { width: calc(100% + 28px); margin: -12px -14px 6px; overflow: hidden; order: -1; }
.hf-img-wrap img { width: 100%; display: block; max-height: 230px; object-fit: cover; }
.hf-img-cap { font-family: var(--hf-font-ui); font-size: 9px; color: var(--hf-muted); padding: 3px 14px 0; line-height: 1.3; }
.hf-img-cap a { color: var(--hf-muted); }
/* Modal: teljes cikk */
.hf-modal-body img { max-width: 100%; border-radius: 3px; display: block; margin: 0 0 10px; }
.hf-modal-body figure { margin: 0 0 10px; }
.hf-modal-body figcaption { font-family: var(--hf-font-ui); font-size: 9.5px; color: var(--hf-muted); }
.hf-modal-body p { font-family: var(--hf-font-body); font-size: 15px; line-height: 1.55; margin: 0 0 10px; color: var(--hf-text); }
/* A lead (felvezető) a teljes cikk elején — félkövér, NEM dőlt */
.hf-modal-lead { font-family: var(--hf-font-body); font-weight: 700; font-size: 15.5px; line-height: 1.5; margin: 0 0 12px; color: var(--hf-text); }
/* Színlapszerű szereplő/alkotó-lista a "Teljes cikk" modál végén — CSAK itt jelenik meg,
   a podcast-szkript nem olvassa ezt a mezőt. */
.hf-credits { margin: 14px 0 4px; padding: 10px 14px; background: #faf8f4; border: 1px solid var(--hf-rule); border-radius: 4px; }
.hf-credits-title { font-family: var(--hf-font-ui); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hf-muted); margin-bottom: 6px; }
.hf-credits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.hf-credits li { display: contents; }
.hf-credits-role { font-family: var(--hf-font-ui); font-size: 12px; color: var(--hf-muted); white-space: nowrap; }
.hf-credits-name { font-family: var(--hf-font-body); font-size: 13px; color: var(--hf-text); }
/* Közvetlen MP3-lejátszó a hírszöveg alatt */
.hf-modal-audio { margin: 12px 0; padding: 10px 12px; background: #faf8f4; border: 1px solid var(--hf-rule); border-left: 3px solid var(--hf-accent); border-radius: 4px; }
.hf-modal-audio-lbl { font-family: var(--hf-font-ui); font-size: 11px; font-weight: 700; color: var(--hf-text); margin-bottom: 6px; }
.hf-modal-audio audio { width: 100%; height: 36px; display: block; }
.hf-modal-audio-dl { font-family: var(--hf-font-ui); font-size: 11px; color: var(--hf-accent); text-decoration: none; display: inline-block; margin-top: 4px; }
.hf-modal-audio-dl:hover { text-decoration: underline; }
.hf-modal-src { font-family: var(--hf-font-ui); font-size: 11px; color: var(--hf-muted); }
.hf-modal-src a { color: var(--hf-accent); text-decoration: none; }
.hf-modal-src a:hover { text-decoration: underline; }
/* A modal a .hf-widget-en KÍVÜL (#hf-root) van, ezért a CSS-változókat itt is megadjuk,
   különben a doboz átlátszó lenne (a var(--hf-bg) nem oldódna fel). */
.hf-modal {
  --hf-bg: #fff; --hf-text: #111; --hf-muted: #666; --hf-rule: #c8c4bc; --hf-accent: #8b1a1a;
  --hf-font-head: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --hf-font-body: Georgia, 'Times New Roman', serif;
  --hf-font-ui: system-ui, -apple-system, sans-serif;
}
.hf-modal-box { overscroll-behavior: contain; }
/* „A hír gépi fogalmazású." jelzés a kártyán és a modalban */
.hf-machine { font-family: var(--hf-font-ui); font-size: 9.5px; color: var(--hf-muted); font-style: italic; margin-top: 6px; }

/* ── Művek és alkotók: gomb + rendezhető táblázat ─────────────────────────── */
.hf-works-bar { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.hf-works-open, .hf-listen-open {
  font-family: var(--hf-font-ui); font-size: 13px; font-weight: 600; cursor: pointer;
  background: #2a5e8c; color: #fff; border: 0; border-radius: 4px;   /* kék árnyalat #2 (közép) */
  padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px;
}
.hf-listen-open { background: #4a83ac; }   /* kék árnyalat #3 (világosabb acélkék) */
.hf-works-open:hover, .hf-listen-open:hover { opacity: .92; }
/* A FŐOLDALON (nem a /hir/ page-aside-ban) a két gomb kitölti a hasáb teljes szélességét,
   a jobb végéig — így szebb, egységes sáv. */
.hf-widget:not(.hf-widget--page) .hf-works-open,
.hf-widget:not(.hf-widget--page) .hf-listen-open { flex: 1 1 0; justify-content: center; }
.hf-works-count, .hf-listen-count {
  background: rgba(255,255,255,.25); border-radius: 10px; padding: 1px 8px;
  font-size: 11px; font-weight: 700;
}
.hf-works-modal[hidden], .hf-listen-modal[hidden] { display: none; }
.hf-works-modal, .hf-listen-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  --hf-bg: #fff; --hf-text: #111; --hf-muted: #666; --hf-rule: #c8c4bc; --hf-accent: #8b1a1a;
  --hf-font-head: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --hf-font-body: Georgia, 'Times New Roman', serif;
  --hf-font-ui: system-ui, -apple-system, sans-serif;
}
.hf-works-box {
  position: relative; background: var(--hf-bg); color: var(--hf-text);
  max-width: 1100px; width: 100%; max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 3px solid var(--hf-accent); border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 20px 22px 16px;
  /* Húzható sarok jobbra lent — a látogató mindkét irányban átméretezheti a dobozt. */
  resize: both; min-width: 320px; min-height: 220px;
}
/* A "Hol hallható" doboz alapból kisebb és tömörebb, mint a művek-táblázat. */
.hf-listen-box { max-width: 480px; padding: 14px 16px 10px; }
.hf-listen-box .hf-works-title { font-size: 18px; margin-bottom: 2px; }
.hf-listen-box .hf-works-intro { font-size: 11px; margin-bottom: 8px; }
.hf-works-title { font-family: var(--hf-font-head); font-weight: 700; font-size: 22px; margin: 0 0 4px; padding-right: 28px; }
.hf-works-intro { font-family: var(--hf-font-ui); font-size: 12px; color: var(--hf-muted); margin: 0 0 12px; }
.hf-works-scroll { overflow: auto; overscroll-behavior: contain; }
.hf-works-empty { font-family: var(--hf-font-ui); font-size: 13px; color: var(--hf-muted); }
.hf-works-table { border-collapse: collapse; width: 100%; font-family: var(--hf-font-ui); font-size: 12px; }
.hf-works-th {
  position: sticky; top: 0; z-index: 1; background: #f4f1ea; color: var(--hf-text);
  text-align: left; font-weight: 700; white-space: nowrap; cursor: pointer;
  padding: 8px 10px; border-bottom: 2px solid var(--hf-accent); user-select: none;
}
.hf-works-th:hover { background: #ece7dc; }
.hf-works-th--active { color: var(--hf-accent); }
.hf-works-td { padding: 7px 10px; border-bottom: 1px solid var(--hf-rule); vertical-align: top; color: var(--hf-text); }
.hf-works-table tbody tr:hover { background: #faf8f4; }
.hf-works-td--title_hu, .hf-works-td--title_en, .hf-works-td--title_orig { font-family: var(--hf-font-body); }
.hf-works-td--station { max-width: 220px; }
.hf-works-pre { color: var(--hf-muted); font-style: italic; }
.hf-works-news {
  font: inherit; cursor: pointer; background: none; border: 0; padding: 0;
  color: var(--hf-accent); text-decoration: underline; white-space: nowrap;
}
.hf-works-td a { color: var(--hf-accent); text-decoration: none; white-space: nowrap; }
.hf-works-td a:hover { text-decoration: underline; }
.hf-works-td .hf-flag { width: 15px; height: 11px; vertical-align: -1px; }

/* ── "Hol hallható" doboz ─────────────────────────────────────────────────── */
.hf-listen-scroll { overflow: auto; overscroll-behavior: contain; }
.hf-listen-empty { font-family: var(--hf-font-ui); font-size: 13px; color: var(--hf-muted); }
.hf-listen-sec {
  font-family: var(--hf-font-ui); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--hf-muted); margin: 10px 0 4px; padding-top: 8px;
  border-top: 1px solid var(--hf-rule);
}
.hf-listen-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hf-listen-list { list-style: none; margin: 0; padding: 0; font-family: var(--hf-font-ui); font-size: 12px; }
.hf-listen-list li { display: block; padding: 6px 3px; border-bottom: 1px solid var(--hf-rule); }
/* Két hasáb: BALRA szerző/cím/kulcsszavak egymás alatt; JOBBRA zászló+állomás+hallgatás-
   gomb, jobbra igazítva, a bal hasáb TETEJÉVEL egy vonalban indulva (align-items:
   flex-start) — nem alul, külön sorban. */
.hf-listen-cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hf-listen-left { flex: 1 1 auto; min-width: 0; }
.hf-listen-right {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; text-align: right;
}
.hf-listen-author { font-family: var(--hf-font-ui); font-size: 10.5px; color: var(--hf-muted); }
.hf-listen-at { font-family: var(--hf-font-body); color: var(--hf-text); font-size: 12.5px; font-weight: 700; }
.hf-listen-station { color: var(--hf-muted); font-size: 10.5px; white-space: nowrap; }
.hf-listen-flagstation { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.hf-listen-link {
  color: #fff; background: var(--hf-accent); text-decoration: none; white-space: nowrap;
  padding: 3px 9px; border-radius: 3px; font-size: 11.5px; font-weight: 600;
}
.hf-listen-link:hover { opacity: .9; }
.hf-listen-flag { display: inline-flex; align-items: center; }
.hf-listen-flag .hf-flag { width: 16px; height: 12px; }
.hf-listen-countdown {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12px; font-weight: 700;
  color: #0b6e6e; background: #e6f2f2; border-radius: 3px; padding: 2px 6px; white-space: nowrap;
  min-width: 60px; text-align: center;
}
.hf-listen-list--live .hf-listen-station { white-space: normal; text-align: right; }
.hf-listen-list .hf-card-tags { margin: 4px 0 0; }
.hf-listen-play {
  font-family: var(--hf-font-ui); font-size: 11px; font-weight: 600; cursor: pointer;
  color: #fff; background: #0b6e6e; border: 0; border-radius: 3px; padding: 3px 9px; white-space: nowrap;
}
.hf-listen-play:hover { opacity: .9; }
.hf-listen-play.is-active { background: var(--hf-accent); }
.hf-listen-player[hidden] { display: none; }
.hf-listen-player { margin-top: 6px; }
.hf-listen-iframe { width: 100%; height: 150px; border: 1px solid var(--hf-rule); border-radius: 4px; display: block; }
.hf-listen-stop {
  margin-top: 4px; font-family: var(--hf-font-ui); font-size: 10.5px; cursor: pointer;
  background: none; border: 1px solid var(--hf-rule); border-radius: 3px; padding: 2px 8px; color: var(--hf-muted);
}
.hf-listen-stop:hover { color: var(--hf-accent); border-color: var(--hf-accent); }
@media (max-width: 640px) {
  .hf-works-box { padding: 16px 14px 12px; }
  .hf-works-table { font-size: 11px; }
  .hf-works-th, .hf-works-td { padding: 6px 7px; }
}

/* ── Önálló cikk-oldal ([hirfeed_article] shortcode, /hir/) ──────────────────
   Ez NEM a widget belseje — egy saját WP-oldalon áll, ezért olvasható max-
   szélességre korlátozva, középre igazítva (a .hf-widget adja a változókat/
   reset-et, lásd a fájl elején). */
.hf-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  background: none;
  box-shadow: none;
}
.hf-article-kicker {
  font-family: var(--hf-font-ui); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--hf-muted);
  margin: 0 0 8px;
}
.hf-article-title {
  font-family: var(--hf-font-head); font-weight: 700; line-height: 1.2;
  font-size: 30px; margin: 0 0 16px; color: var(--hf-text);
}
.hf-article-img { margin: 0 0 16px; }
.hf-article-img img { width: 100%; border-radius: 3px; display: block; max-height: 420px; object-fit: cover; }
.hf-article-img figcaption { font-family: var(--hf-font-ui); font-size: 10.5px; color: var(--hf-muted); margin-top: 4px; }
.hf-article-img figcaption a { color: var(--hf-muted); }
.hf-article-lead {
  font-family: var(--hf-font-body); font-weight: 700; font-size: 17px; line-height: 1.5;
  margin: 0 0 16px; color: var(--hf-text);
}
.hf-article p { font-family: var(--hf-font-body); font-size: 16px; line-height: 1.6; margin: 0 0 14px; color: var(--hf-text); }
.hf-article-audio { margin: 16px 0; padding: 12px 14px; background: #faf8f4; border: 1px solid var(--hf-rule); border-left: 3px solid var(--hf-accent); border-radius: 4px; }
.hf-article-audio-lbl { font-family: var(--hf-font-ui); font-size: 12px; font-weight: 700; color: var(--hf-text); margin-bottom: 8px; }
.hf-article-audio audio { width: 100%; height: 38px; display: block; }
.hf-article-listen { font-family: var(--hf-font-ui); font-size: 13px; }
.hf-article-listen a { color: var(--hf-accent); text-decoration: none; }
.hf-article-listen a:hover { text-decoration: underline; }
.hf-article-credits { margin: 20px 0; padding: 14px 16px; background: #faf8f4; border: 1px solid var(--hf-rule); border-radius: 4px; }
.hf-article-credits h2 { font-family: var(--hf-font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hf-muted); margin: 0 0 8px; }
.hf-article-credits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.hf-article-credits li { display: contents; }
.hf-article-credits-role { font-family: var(--hf-font-ui); font-size: 13px; color: var(--hf-muted); white-space: nowrap; }
.hf-article-credits-name { font-family: var(--hf-font-body); font-size: 14px; color: var(--hf-text); }
.hf-article-sources { font-family: var(--hf-font-ui); font-size: 12px; color: var(--hf-muted); margin: 16px 0; }
.hf-article-sources a { color: var(--hf-accent); text-decoration: none; }
.hf-article-sources a:hover { text-decoration: underline; }
.hf-article-disclaimer { font-family: var(--hf-font-ui); font-size: 11px; font-style: italic; color: var(--hf-muted); margin: 16px 0; }
.hf-article-back { font-family: var(--hf-font-ui); font-size: 13px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hf-rule); }
.hf-article-back a { color: var(--hf-accent); text-decoration: none; }
.hf-article-back a:hover { text-decoration: underline; }

/* ── /hir/ oldal masthead (mindig felül) + cím alatti kulcsszavak/zászló — 2026-07-06 ── */
.hf-hir { --hf-bg: #fff; --hf-text: #111; --hf-muted: #666; --hf-rule: #c8c4bc; --hf-accent: #8b1a1a;
  --hf-font-head: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --hf-font-body: Georgia, 'Times New Roman', serif;
  --hf-font-ui: system-ui, -apple-system, sans-serif; }
.hf-hir-masthead {
  display: block; max-width: 1060px; margin: 0 auto; padding: 10px 16px;
  font-family: var(--hf-font-head); font-weight: 700; font-size: 20px; letter-spacing: .01em;
  color: var(--hf-accent); text-decoration: none; border-bottom: 2px solid var(--hf-accent);
}
.hf-hir-masthead:hover { color: var(--hf-text); }
.hf-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.hf-article-flag { width: 20px; height: 15px; object-fit: cover; border: 1px solid var(--hf-rule); border-radius: 2px; }
.hf-article-tag {
  font-family: var(--hf-font-ui); font-size: 11px; font-weight: 600; text-transform: lowercase;
  color: var(--hf-muted); background: #fff; border: 1px solid var(--hf-rule); border-radius: 10px;
  padding: 3px 10px; text-decoration: none;
}
.hf-article-tag:hover { color: var(--hf-accent); border-color: var(--hf-accent); }

/* ── /hir/ index-nézet: kéthasábos „hír-oldal" (bal: hírlista, jobb: eszközök) — 2026-07-06 ── */
.hf-widget--page { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.hf-page { display: flex; align-items: flex-start; gap: 34px; }
.hf-page-main { flex: 1 1 auto; min-width: 0; }
.hf-page-aside { flex: 0 0 320px; }
.hf-page-aside .hf-map { height: 240px; margin-bottom: 12px; }
.hf-page-aside .hf-search { padding: 0 0 8px; background: none; border: 0; }
.hf-page-aside .hf-search-input { flex: 1 1 auto; }
.hf-page-aside .hf-works-bar { margin: 6px 0 10px; }
.hf-page-aside .hf-tagbar { margin: 6px 0 12px; }
.hf-page-aside .hf-podcast { margin: 12px 0; }
.hf-page-aside .hf-disclaimer { font-size: 10.5px; margin-top: 12px; }
.hf-page-aside .hf-footer { margin-top: 10px; }
.hf-page-main .hf-search-results { padding: 0; }
@media (max-width: 860px) {
  /* Szűk kijelzőn a hírlista elöl (fő tartalom), az eszközök alatta. */
  .hf-page { flex-direction: column; gap: 16px; }
  .hf-page-aside { flex-basis: auto; width: 100%; border-top: 1px solid var(--hf-rule); padding-top: 14px; }
}

/* ── /hir/ cikkoldal: kéthasábos (bal: cikk, jobb: oldalsáv) — 2026-07-06 ──────── */
.hf-article-layout {
  display: flex; align-items: flex-start; gap: 34px;
  max-width: 1060px; margin: 0 auto; padding: 0 16px;
}
.hf-article-main { flex: 1 1 auto; min-width: 0; }
/* A layouton belül a cikk a fő hasábot tölti ki (nem a 700px-es középre-igazított
   önálló változat) — a saját max-width/margin/oldalsó padding felülírva. */
.hf-article-layout .hf-article { max-width: none; margin: 0; padding: 24px 0 40px; }
.hf-article-aside {
  flex: 0 0 300px; padding: 26px 0 40px;
  font-family: var(--hf-font-ui);
}
.hf-aside-sec { margin-bottom: 22px; }
.hf-aside-title {
  font-family: var(--hf-font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--hf-muted); margin: 0 0 8px; padding-bottom: 6px;
  border-bottom: 2px solid var(--hf-accent);
}
.hf-aside-list { list-style: none; margin: 0; padding: 0; }
.hf-aside-item { padding: 7px 0; border-bottom: 1px solid var(--hf-rule); }
.hf-aside-item a {
  font-family: var(--hf-font-head); font-size: 15px; line-height: 1.25; color: var(--hf-text);
  text-decoration: none; display: block;
}
.hf-aside-item a:hover { color: var(--hf-accent); }
.hf-aside-date { font-family: var(--hf-font-ui); font-size: 10.5px; color: var(--hf-muted); }

@media (max-width: 860px) {
  /* Szűk kijelzőn a két hasáb egymás alá kerül: előbb a cikk, alatta az oldalsáv. */
  .hf-article-layout { flex-direction: column; gap: 8px; padding: 0 14px; }
  .hf-article-aside { flex-basis: auto; width: 100%; border-top: 1px solid var(--hf-rule); padding-top: 20px; }
}
@media (max-width: 640px) {
  .hf-article-layout .hf-article { padding: 16px 0 24px; }
  .hf-article-title { font-size: 24px; }
}
