/* =====================================================================
   Betone Core – a három oldal közös alapstílusa (betone-core szülőtéma).
   Forrása a korábbi statikus Studio-oldal stíluslapja:
   innen az általános részek kerültek ide változatlanul – alap, gombok, felcím és szakasz,
   sötét fejléc, lábléc, képnézegető, „megszűnt” oldal, mozgás és kontrasztos mód.
   Az oldalspecifikus részek a gyermektéma stíluslapjában maradnak (betone-studio: site.css).
   A tokenek a tokens.css-ben, a betű a fonts.css-ben; a betöltési sorrend: tokens → fonts → core → gyermektéma.
   Mobil az elsődleges nézet: az alapstílus kb. 390 px-re készül, a @media (min-width) blokkok bővítik.
   ===================================================================== */

/* ---------- Alap ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* Csak felolvasóknak szóló szöveg (a WordPress .screen-reader-text osztályával azonos célra) */
.vh,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sötét felületeken sárga a fókuszkeret (a petrol ott kevés lenne). */
.on-dark { --focus: var(--yellow); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }

/* „Ugrás a tartalomra” – csak billentyűzetes fókusznál látszik */
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
}
.skip:focus { top: 8px; outline-color: var(--ink); }

/* ---------- Gombok (konverziós gomb petrol vagy sárga, soha nem korall) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.3;
  letter-spacing: .03em;
  text-align: center;
  transition: transform .15s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 16px rgba(255, 205, 0, .4); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-petrol { background: var(--petrol); color: #fff; box-shadow: 0 4px 14px rgba(25, 127, 127, .35); }
.btn-petrol:hover { background: var(--petrol-dark); }
/* Másodlagos, keretes gomb: fehér alap, petrol keret és felirat. */
.btn-line { background: #fff; color: var(--petrol-dark); border: 1.5px solid var(--petrol); box-shadow: none; }
.btn-line:hover { background: var(--soft); }

/* ---------- Felcím, szakaszok ---------- */
.kicker {
  display: block;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--coral-text);
  margin-bottom: 10px;
}
.on-dark .kicker { color: var(--yellow); }

.sec { padding: 52px 0; }
.sec h2 { font-weight: 900; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.15; margin-bottom: 10px; }
.sec .lead { color: #3a3a3a; max-width: 62ch; margin-bottom: 26px; }

/* ---------- Fejléc (sötét, ragadós – sales és studio; a betone.hu világos fejléce a gyermektémában) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 29, 31, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: #fff; }
.logo img { width: auto; height: 48px; }  /* a BETONE szóvédjegy domináljon a felcím fölött */
/* A kódban „Studio”, itt nagybetűs – a felolvasó így nem betűzi. */
.logo .tagline {
  position: relative;
  top: -2px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
nav.desktop { display: none; gap: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
nav.desktop a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: #d8d8d8; }
nav.desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: transparent; }
nav.desktop a:hover { color: #fff; }
nav.desktop a:hover::after { background: var(--yellow); }
.hdr-right { display: flex; align-items: center; gap: 10px; }

/* Nyelvváltó: sima link a másik nyelvű oldalra. A látható „pirula” 30 px magas,
   a kattintható terület 44 px. */
.lang-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.lang-link .seg {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  transition: background-color .15s, border-color .15s, color .15s;
}
.lang-link:hover .seg { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lang-link:focus-visible { border-radius: var(--radius-pill); outline-offset: -5px; }

/* A fejléc gombja: szűk nézetben a rövid felirat látszik. */
.site-header .btn .lbl-long { display: none; }
.site-header .btn { padding-left: 16px; padding-right: 16px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--grafit); color: #d0d0d0; padding: 20px 0; font-size: .8rem; }
.site-footer .in { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center; }
.site-footer .in > p:first-child { text-wrap: balance; }
.site-footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0 -6px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--yellow); font-weight: 600; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Telefonon a lábléc részei pont nélkül, egymás alatt / térközzel – a sor végén nem maradhat „·”. */
.site-footer .foot-part { display: block; }
.site-footer .foot-sep { display: none; }

/* ---------- Képnézegető (lightbox) ---------- */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 64px 12px 56px;
  border: 0;
  background: rgba(0, 0, 0, .92);
  color: #fff;
  overflow: hidden;
  --focus: var(--yellow);
}
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transition: opacity .15s; }
.lb-stage.is-loading { opacity: .45; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: #e6e6e6; }
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { border-radius: 50%; }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 6px; }
.lb-next { right: 12px; bottom: 6px; }

/* ---------- „Megszűnt” / nem található oldal ---------- */
.page-gone { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.gone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 9vw, 112px) 0;
}
.gone::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -30%;
  bottom: -50%;
  width: 110%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(25, 127, 127, .24), rgba(25, 127, 127, 0));
  pointer-events: none;
}
.gone .wrap { position: relative; width: 100%; }
.gone .wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -46px;
  bottom: -150px;
  width: 140px;
  aspect-ratio: 90 / 135;
  background: var(--bab) center / contain no-repeat;
  transform: rotate(14deg);
  pointer-events: none;
}
.gone-block { max-width: 38rem; }
.gone-title { font-weight: 900; font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4rem); line-height: 1.06; letter-spacing: -.02em; color: #fff; }
.gone-text { margin-top: 18px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: #e6e6e6; }
.gone-block .btn { margin-top: 26px; min-height: 52px; padding: 0 28px; font-size: 1rem; }
.gone-block-en { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, .14); }
.gone-block-en .gone-title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.gone-block-en .gone-text { font-size: 1.0625rem; }

/* ---------- Keskeny telefon ---------- */
@media (max-width: 389px) {
  :root { --gutter: 14px; }
  .logo { gap: 8px; }
  .logo img { height: 42px; }
  .logo .tagline { font-size: .62rem; letter-spacing: .14em; }
  .bar { gap: 8px; }
  .hdr-right { gap: 8px; }
  .site-header .btn { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 349px) {
  .site-header .btn { display: none; }
}

/* ---------- Nagyobb képernyők ---------- */
@media (min-width: 480px) {
  .site-footer .foot-part { display: inline; }
  .site-footer .foot-sep { display: inline; }
  .site-header .btn .lbl-long { display: inline; }
  .site-header .btn .lbl-short { display: none; }
}
@media (min-width: 820px) {
  .lb { padding: 24px 76px 52px; }
  .lb-prev { left: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-close { top: 16px; right: 16px; }
}
@media (min-width: 960px) {
  nav.desktop { display: flex; }
  .site-header .btn { padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 1040px) {
  .gone .wrap::after { top: 50%; bottom: auto; right: 4%; width: 300px; transform: translateY(-50%) rotate(12deg); }
}

/* ---------- Mozgás csökkentése ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---------- Kontrasztos (Windows) mód ---------- */
@media (forced-colors: active) {
  .btn, .lb-btn { border: 2px solid ButtonText; }
}

/* ---------- Hozzájárulás-ablak ----------
   Natív <dialog> a legfelső rétegben: a lap elrendezését nem tolja el. Mobilon a képernyő mínusz 2×16 px, asztalon
   legfeljebb 480 px, középen; ha nem fér ki, belül görget. Görgetészár a <html>-en (position: fixed nélkül, mert az a
   lap tetejére ugrana). Az „Elfogadom” petrol (világos alapon ez a konverziós gomb színe), a „További lehetőségek” keretes. */
html.consent-open { overflow: hidden; scrollbar-gutter: stable; }
.consent { box-sizing: border-box; width: calc(100% - 32px); max-width: 480px; max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0; border: 0; border-radius: var(--radius-block); background: var(--paper); color: var(--text); box-shadow: 0 18px 60px rgba(0, 0, 0, .35); overflow-y: auto; overscroll-behavior: contain; font-size: 1rem; line-height: 1.55; }
.consent::backdrop { background: rgba(0, 0, 0, .6); }
.consent-in { display: grid; gap: 12px; padding: 16px 20px 18px; }
.consent-title { color: var(--ink); font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.consent-title:focus { outline: none; } /* A cím csak a felolvasónak kap fókuszt (tabindex="-1"), nem kezelhető elem. */
.consent-step { display: grid; gap: 10px; }
.consent-link { color: var(--petrol-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.consent-back { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -8px -6px; padding: 0 6px; color: var(--petrol-dark); font-size: .9375rem; font-weight: 700; }
.consent-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: grid; gap: 8px; margin-top: 4px; }
.consent-actions .btn { width: 100%; }
/* Csak a háromkategóriás ablakban (a lejátszók kategóriájával, a magazinon) és csak elég magas nézetben: a második szint
   gombsora az ablak aljára tapad, ha a kategóriák nem férnek ki (390×700-on): így az „Összes elutasítása” és a
   „Kiválasztottak mentése” görgetés nélkül is látszik, a sorok mögötte görgethetők. Ha minden kifér, a gombok helye nem
   változik (a belső margó és a negatív külső margó kiegyenlíti egymást), csak a vonal kerül föléjük, mint a kategóriasorok
   fölé. A Tabbal elért kapcsoló nem bújhat a gombsor mögé: az ablak scroll-padding-bottomja (11rem) a gombsor magassága
   (168 px) fölött van. Alacsony nézetben (fekvő telefon, 320×568, nagyítás) a gombsor a helyén marad, különben eltakarná
   a sorokat; ilyenkor a scroll-padding-bottom a belső margóval egyezik (18 px), így a fókuszba kerülő vagy odagörgetett
   utolsó gomb alatt is marad köz, nem ér az ablak aljához. A kétkategóriás ablak (Studio) mindenhol a régi. */
.consent[data-categories~="players"] { scroll-padding-bottom: 18px; }
@media (min-height: 600px) {
  .consent[data-categories~="players"] { scroll-padding-bottom: 11rem; }
  .consent[data-categories~="players"] .consent-actions-3 { position: sticky; bottom: 0; z-index: 1; margin: -4px 0 -12px; padding: 8px 0 12px; background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
}
/* Kategóriasor: a cím és a kapcsoló egy sorban, a leírás alatta teljes szélességben – így 390×700-on a második szint
   „Kiválasztottak mentése” gombja is görgetés nélkül látszik. */
.consent-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.consent-row-copy { display: contents; }
.consent-row-title { grid-column: 1; grid-row: 1; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.consent-row .consent-switch { grid-column: 2; grid-row: 1; }
.consent-row-copy p { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; line-height: 1.5; }
/* Kapcsoló: valódi jelölőnégyzet (role="switch"), a sáv és a látható állapotszó (Be/Ki) csak megjelenítés. */
.consent-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.consent-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--muted); transition: background-color .15s; }
.consent-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.consent-switch input:checked + .consent-track { background: var(--petrol); }
.consent-switch input:checked + .consent-track::after { transform: translateX(18px); }
.consent-switch input:disabled + .consent-track { opacity: .55; }
.consent-switch input:disabled { cursor: default; }
.consent-switch input:focus-visible + .consent-track { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent-state { min-width: 5.8em; color: var(--ink); font-size: .875rem; font-weight: 700; }
@media (min-width: 560px) {
  .consent-in { padding: 26px 28px 28px; }
  .consent-actions:not(.consent-actions-3) { grid-template-columns: 1fr 1fr; }
}
@media (forced-colors: active) {
  .consent { border: 2px solid CanvasText; }
  .consent-track { border: 2px solid ButtonText; }
}
/* A lábléc „Sütibeállítások” gombja (a szkript mutatja, ha van sáv). */
.site-footer .cookie-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--yellow); font: inherit; font-weight: 600; cursor: pointer; }
.site-footer .cookie-settings[hidden] { display: none; }
.site-footer .cookie-settings:hover { text-decoration: underline; text-underline-offset: 3px; }
