/* Színek a klikkout.sk témájából (GeneratePress globális színek) */
:root {
  --bg: #f9f9f9;          /* base-2 */
  --surface: #ffffff;     /* base-3 */
  --surface-2: #ededed;   /* base */
  --text: #222222;        /* contrast */
  --text-2: #575760;      /* contrast-2 */
  --border: #e4e4e4;
  --accent: #138743;      /* accent */
  --accent-2: #d82027;    /* accent-2 */
  --kozelet: #e27f79;
  --kultura: #78b5e2;
  --sport: #8acc9c;
  --mas: #d677b0;
  --video: #222222;
  --podcast: #1db954;     /* a klikkout.sk podcastlejátszójának zöldje */
  --logo-filter: none;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 14px;
  --topbar-h: 56px;
  --tabbar-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
/* Sötét mód: a fejléc gombjával választható (Automatikus / Világos / Sötét).
   Automatikusnál a telefon beállítását követi. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f10;
    --surface: #1a1a1c;
    --surface-2: #2a2a2d;
    --text: #f1f1f1;
    --text-2: #b2b2be;      /* contrast-3 */
    --border: #2c2c30;
    --accent: #3fb070;
    --accent-2: #ef4a50;
    --video: #575760;
    --logo-filter: invert(1);
    --shadow: none;
    --plain-chip-text: #0f0f10;
    --offline-bg: #3a3110; --offline-text: #f3d77a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #1a1a1c;
  --surface-2: #2a2a2d;
  --text: #f1f1f1;
  --text-2: #b2b2be;
  --border: #2c2c30;
  --accent: #3fb070;
  --accent-2: #ef4a50;
  --video: #575760;
  --logo-filter: invert(1);
  --shadow: none;
  --plain-chip-text: #0f0f10;
  --offline-bg: #3a3110; --offline-text: #f3d77a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(var(--topbar-h) + var(--safe-t));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) 8px 0 16px;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar.has-back { padding-left: 4px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 24px; width: auto; display: block; filter: var(--logo-filter); }
.topbar-actions { margin-left: auto; display: flex; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.icon-btn:active { background: var(--surface-2); }
[hidden] { display: none !important; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--accent); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--border);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-2); font-size: 11px; font-weight: 500; border: 0; background: none; padding: 0; cursor: pointer;
  white-space: nowrap;
}
.tabbar svg { width: 25px; height: 25px; }
.tabbar .active { color: var(--accent); font-weight: 700; }
.tabbar .active svg path, .tabbar .active svg circle { stroke-width: 2.3; }
/* Friss: kitöltött lángocska, ha aktív */
.tabbar .active .flame-outer { fill: currentColor; }
.tabbar .active .flame-inner { fill: var(--surface); opacity: 1; }

/* ---------- Layout ---------- */
#view { max-width: 760px; margin: 0 auto; outline: none; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 18px 16px 4px; }
.page-sub { margin: 0 16px 12px; color: var(--text-2); font-size: 14px; }

/* chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px;
  scrollbar-width: none; scroll-snap-type: x proximity;
  position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 5;
  background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chips { scroll-padding-inline: 16px; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
/* halvány szél jelzi, hogy oldalra húzva még több kategória van */
.chips.can-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.chips.can-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
.chips.can-left.can-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.chips-wrap { position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); z-index: 5; background: var(--bg); }
.chips-wrap.sub { top: calc(var(--topbar-h) + var(--safe-t) + 58px); z-index: 4; }
.chips-wrap > .chips { position: static; }
.chips.dragging { cursor: grabbing; user-select: none; }
.chips.dragging .chip { pointer-events: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; scroll-snap-align: start;
}
.chip.active { background: var(--chip, var(--text)); color: #fff; border-color: var(--chip, var(--text)); }
.chip.active:not([style]) { color: var(--plain-chip-text, #fff); }
.chips.sub { padding-top: 0; top: calc(var(--topbar-h) + var(--safe-t) + 58px); z-index: 4; }
.chips.sub .chip { font-size: 13px; padding: 5px 12px; font-weight: 500; background: transparent; }
.chips.sub .chip.active { background: var(--chip, var(--text)); color: #fff; font-weight: 700; }
/* rovatszín nélküli alsor (pl. programajánló városai): sötét módban sötét felirat a világos alapon */
.chips.sub:not([style]) .chip.active { color: var(--plain-chip-text, #fff); }

/* ---------- Cards ---------- */
.list { display: grid; gap: 12px; padding: 4px 16px 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: block; position: relative;
}
.card:active { transform: scale(.99); }
.card-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 18px; font-weight: 750; line-height: 1.25; margin: 6px 0 6px; letter-spacing: -.2px; }
.card-excerpt { color: var(--text-2); font-size: 14.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
/* rovatcímke – mint a weboldalon: fehér felirat a rovat színén */
.tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; background: var(--tag, var(--accent)); padding: 2px 8px; border-radius: 4px;
}
.card.compact { display: grid; grid-template-columns: 1fr 136px; gap: 12px; padding: 12px; align-items: start; }
.card.compact .card-body { padding: 0; grid-column: 1; grid-row: 1; }
.card.compact > .card-img, .card.compact > .placeholder { grid-column: 2; grid-row: 1; }
.card.compact .card-title { font-size: 16px; margin: 4px 0 4px; }
/* minden listaképnél egységes 16:9 arány */
.card.compact .card-img { aspect-ratio: 16 / 9; border-radius: 8px; }
.card.compact .card-excerpt { -webkit-line-clamp: 2; font-size: 13.5px; }

.placeholder {
  aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--tag, var(--accent)), color-mix(in srgb, var(--tag, var(--accent)) 55%, #000));
  color: #fff; font-weight: 900; font-size: 34px; letter-spacing: -1px;
}
.card.compact .placeholder { aspect-ratio: 16/9; border-radius: 8px; font-size: 22px; }
.card.compact .ph-logo { width: 30%; }
.ph-logo { width: 34%; max-width: 72px; border-radius: 22%; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.play-badge {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff;
  border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}

.more-btn {
  display: block; margin: 4px 16px 24px; width: calc(100% - 32px); padding: 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer;
}

/* skeleton */
.skeleton { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-img { aspect-ratio: 16/9; border-radius: 0; }
.sk-line { height: 14px; margin: 12px 14px; }
.sk-line.short { width: 40%; }

.tag.link { cursor: pointer; }
.tag.link:hover, .tag.link:focus-visible { filter: brightness(.92); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tag, var(--accent)) 35%, transparent); }

/* ---------- Archives ---------- */
.archive-head { padding: 6px 0 0; }
.archive-kicker { margin: 16px 16px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); }
.archive-kicker a { color: var(--tag, var(--accent)); }
.archive-head .page-title { margin-top: 4px; }
.chips.static { position: static; padding-top: 4px; }

/* ---------- Article ---------- */
.article { background: var(--surface); min-height: 60vh; padding-bottom: 32px; }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--surface-2); }
.article-head { padding: 18px 18px 6px; }
.article-title { font-size: 27px; line-height: 1.18; font-weight: 850; letter-spacing: -.5px; margin: 8px 0 10px; }
.article-content { padding: 0 18px; font-size: var(--article-size, 17px); line-height: 1.65; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1em; }
.article-content h2, .article-content h3, .article-content h4 { line-height: 1.25; margin: 1.4em 0 .5em; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content img { height: auto; border-radius: 10px; display: block; margin: 0 auto; }
.article-content figure { margin: 1.2em 0; max-width: 100%; }
.article-content figcaption { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 6px; }
.article-content iframe, .article-content video { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; display: block; }
.article-content blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); color: var(--text-2); font-style: italic; }
.article-content .wp-block-gallery, .article-content .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.article-content .wp-block-gallery figure { margin: 0; }
.article-content .wp-block-gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.article-content .has-text-align-center { text-align: center; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-content td, .article-content th { border: 1px solid var(--border); padding: 6px 8px; }
.article-content .sharedaddy, .article-content .jp-relatedposts, .article-content script, .article-content style { display: none !important; }
.article-foot { padding: 8px 18px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.article-head .meta { gap: 6px; }
.byline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.byline .author { color: var(--text); font-weight: 700; }
.byline .author::before { content: 'Írta: '; font-weight: 400; color: var(--text-2); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 18px 12px; }
.article-tags:empty { display: none; }
.hashtag { font-size: 14px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.hashtag:active { filter: brightness(.95); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 18px 0; }
.pager:empty { display: none; }
.pager-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); min-height: 76px; }
.pager-item.next { text-align: right; }
.pager-item.empty-cell { border: 0; background: none; }
.pager-dir { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }
.pager-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.related { padding: 8px 0 16px; }
.related:empty { display: none; }
.section-title { font-size: 20px; font-weight: 900; margin: 18px 16px 10px; letter-spacing: -.2px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Search ---------- */
.search-box { padding: 12px 16px; position: sticky; top: calc(var(--topbar-h) + var(--safe-t)); background: var(--bg); z-index: 5; }
.search-box input {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 16px 13px 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Ccircle cx='11' cy='11' r='6' fill='none' stroke='%23888' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
  color: var(--text); outline: none; -webkit-appearance: none;
}
.search-box input:focus { border-color: var(--text-2); }

/* ---------- Empty / error ---------- */
.empty { text-align: center; padding: 56px 28px; color: var(--text-2); }
.empty svg { width: 52px; height: 52px; opacity: .5; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.empty p { margin: 0 0 16px; }

/* ---------- Events ---------- */
.day-head {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-2); margin: 14px 0 -2px;
}
.event { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px; align-items: start; }
.event .date-badge {
  background: var(--surface-2); border-radius: 12px; text-align: center; padding: 7px 0 8px; line-height: 1;
}
.date-badge .mon { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent-2); letter-spacing: .5px; }
.date-badge .day { font-size: 24px; font-weight: 850; margin-top: 3px; }
.event .card-title { margin-top: 0; font-size: 16.5px; }
.event-img { width: 100%; aspect-ratio: 1200/628; object-fit: cover; border-radius: 10px; margin-top: 10px; display: block; background: var(--surface-2); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.info-rows { padding: 4px 18px 8px; display: grid; gap: 12px; }
.info-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.info-row svg { width: 22px; height: 22px; color: var(--text-2); }
.info-row a { color: var(--accent); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 30; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* offline banner */
.offline { margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; background: #fff3cd; color: #6a4b00; font-size: 14px; }
.offline { background: var(--offline-bg, #fff3cd); color: var(--offline-text, #6a4b00); }

@media (min-width: 700px) {
  .list.grid { grid-template-columns: 1fr 1fr; }
  .list.grid .card.lead { grid-column: 1 / -1; }
  .article-title { font-size: 34px; }
}
.card.lead .card-title { font-size: 22px; }


/* =====================================================================
   Kiegészítő funkciók (features.js)
   ===================================================================== */
html { overscroll-behavior-y: contain; }
body.no-scroll { overflow: hidden; }
.tabbar a, .tabbar button { position: relative; }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- Hamburgermenü ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 41; width: min(86vw, 360px);
  background: var(--surface); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(102%); transition: transform .25s ease; box-shadow: -4px 0 24px rgba(0,0,0,.18);
  padding: calc(var(--safe-t) + 4px) 0 calc(var(--safe-b) + 24px);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; }
.drawer-logo { height: 22px; filter: var(--logo-filter); }
.support-card {
  display: flex; gap: 12px; align-items: center; margin: 8px 14px 6px; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff;
}
.support-card strong { display: block; font-size: 15.5px; }
.support-card small { display: block; opacity: .9; font-size: 12.5px; margin-top: 2px; }
.support-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.support-icon svg { width: 22px; height: 22px; }
.drawer-group { padding: 10px 0 6px; border-top: 1px solid var(--border); margin-top: 8px; }
.drawer-group h3 { margin: 4px 18px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-2); font-weight: 700; }
.drawer-sec-head { display: flex; align-items: center; }
.drawer-sec-link { display: flex; align-items: center; gap: 12px; padding: 11px 18px; font-size: 16px; font-weight: 700; flex: 1; }
.sec-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--tag, var(--text)); flex: 0 0 10px; }
.drawer-expand { width: 48px; height: 44px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.drawer-expand svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s; }
.drawer-expand[aria-expanded="true"] svg { transform: rotate(-90deg); }
.drawer-subs { padding: 0 0 6px 40px; display: grid; }
.drawer-subs a { padding: 8px 18px 8px 0; font-size: 14.5px; color: var(--text-2); }
.drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 15.5px; width: 100%;
  border: 0; background: none; text-align: left; cursor: pointer; color: var(--text);
}
.drawer-link:active, .drawer-sec-link:active, .drawer-subs a:active { background: var(--surface-2); }
.dl-icon svg { width: 21px; height: 21px; display: block; color: var(--text-2); }
.dl-label { flex: 1; }
.dl-badge { font-size: 12px; font-weight: 700; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; color: var(--text-2); }
.dl-chev svg { width: 16px; height: 16px; display: block; color: var(--text-2); opacity: .7; }
.setting { padding: 8px 18px 10px; display: grid; gap: 8px; font-size: 14.5px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 3px; border-radius: 11px; gap: 2px; }
.segmented button { border: 0; background: none; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.drawer-social { display: flex; gap: 10px; padding: 14px 18px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.drawer-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.drawer-social svg { width: 21px; height: 21px; }
.drawer-version { margin: 8px 18px 0; font-size: 12px; color: var(--text-2); }
.drawer-group.last { border-top: 0; }

/* ---------- Statikus oldalak, beállítások ---------- */
.article.page { padding-top: 6px; }
.toggle-list { display: grid; padding: 4px 18px 8px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.toggle-row strong { display: block; font-size: 15.5px; }
.toggle-row small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-2); position: relative; transition: background .2s; border: 1px solid var(--border); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.toggle-row input:checked + .switch { background: var(--accent); border-color: var(--accent); }
.toggle-row input:checked + .switch::after { transform: translateX(18px); }
.toggle-row input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.notif-status { margin: 0; font-size: 15px; }
.notif-note { padding: 6px 18px 0; color: var(--text-2); font-size: 13.5px; }

/* ---------- Podcast ---------- */
.pod-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; cursor: pointer;
  background: var(--podcast); color: #fff; border-radius: 999px; padding: 6px 11px 6px 8px;
  display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pod-badge svg { width: 16px; height: 16px; }
.card.compact .pod-badge { top: auto; bottom: 10px; right: 10px; padding: 6px; }
.card.compact .pod-badge span { display: none; }
.listen-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  margin: 4px 18px 18px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--podcast) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--podcast) 35%, transparent);
}
.listen-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--podcast); color: #fff; display: grid; place-items: center; }
.listen-icon svg { width: 22px; height: 22px; }
.listen-card strong { display: block; font-size: 15px; }
.listen-card small { display: block; color: var(--text-2); font-size: 12.5px; }
.listen-card .btn { padding: 9px 13px; }
.listen-card .btn.primary { background: var(--podcast); border-color: var(--podcast); color: #fff; }

.player {
  position: fixed; left: 8px; right: 8px; z-index: 19;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  background: #151516; color: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: 744px; margin: 0 auto;
}
.pl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0; display: block; background: rgba(255,255,255,.18); cursor: pointer; accent-color: var(--podcast); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--podcast); }
.pl-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--podcast); }
.pl-row { display: flex; align-items: center; gap: 4px; padding: 7px 6px 7px 8px; }
.pl-cover { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: 0 0 42px; background: #333; }
.pl-info { flex: 1; min-width: 0; padding: 0 6px; display: grid; }
.pl-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.pl-btn { width: 38px; height: 38px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; flex: 0 0 38px; }
.pl-btn svg { width: 24px; height: 24px; }
.pl-play { background: var(--podcast); width: 42px; height: 42px; flex-basis: 42px; }
.pl-close svg { width: 18px; height: 18px; opacity: .7; }
body.has-player { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 76px); }
body.has-player .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); }
@media (max-width: 360px) { .pl-btn:not(.pl-play):not(.pl-close) { display: none; } }

/* ---------- Programajánló extrák ---------- */
.event-title-row { display: flex; gap: 6px; align-items: flex-start; }
.event-title-row .card-title { flex: 1; }
.event-save { border: 0; background: none; width: 34px; height: 34px; margin: -6px -6px 0 0; display: grid; place-items: center; color: var(--text-2); cursor: pointer; border-radius: 50%; flex: 0 0 34px; }
.event-save svg { width: 20px; height: 20px; }
.event-save.on { color: var(--accent); }
.calendar-row { padding-top: 4px; padding-bottom: 14px; }

/* ---------- Olvasási csík ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: calc(var(--topbar-h) + var(--safe-t)); height: 3px; z-index: 21; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--tag, var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.read-progress span { background: var(--accent); }

/* ---------- Képnézegető ---------- */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); color: #fff; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-stage.zoomed { overflow: auto; display: block; touch-action: auto; }
.lb-stage.zoomed img { max-width: none; max-height: none; width: 220vw; cursor: zoom-out; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-t) + 8px) 8px 8px 18px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.lb-count { font-size: 14px; font-weight: 600; opacity: .85; }
.lb-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; }
.lb-prev { left: 10px; } .lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 10px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 18px calc(var(--safe-b) + 16px); font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: center; }
@media (hover: none) { .lb-prev, .lb-next { display: none; } }

/* ---------- Húzással frissítés ---------- */
.ptr {
  position: fixed; top: calc(var(--topbar-h) + var(--safe-t) + 4px); left: 50%; z-index: 22;
  width: 38px; height: 38px; margin-top: -44px; border-radius: 50%; background: var(--surface); color: var(--text-2);
  box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center; opacity: 0; transform: translate(-50%, 0); pointer-events: none;
}
.ptr svg { width: 20px; height: 20px; }
.ptr.show { opacity: 1; }
.ptr.ready { color: var(--accent); }
.ptr.spin svg { animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
