/* Onstagelyricbrowser - szinpadi UI (fekete + neonzold #00ff88, az eredeti dizajn nyoman) */

/* ---- Outfit betutipus, HELYBEN beagyazva (offline szinpad, net nelkul is mukodik).
   Variable font: egy-egy fajl fedi a teljes 100-900 sulytartomanyt subsetenkent.
   latin-ext kell a magyar o"/u" (kettos ekezet) karakterekhez. ---- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --sidebar-bg: #111111;
  --panel: #1a1a1a;
  --line: #222222;
  --fg: #ffffff;
  --muted: #888888;
  --accent: #00ff88;
  --upcoming: #ffaa00;
  --glow: rgba(0, 255, 136, 0.4);
  --lyric-font-size: 4rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%;
  background: var(--bg); color: var(--fg);
  font-family: 'Outfit', system-ui, -apple-system, Roboto, Arial, sans-serif;
  overflow: hidden;
}
body { display: flex; flex-direction: column; }
/* kepernyo-vedelem: a pixel-eltolas folyamatos, linearis (ne ugorjon), 1.5s-enkent apro lepes */
html { transition: transform 1.5s linear; }
.hidden { display: none !important; }

/* Kijelzo-forgatas 90 fok (allo mod). Az egesz app elfordul; mivel a body transzformalt,
   a fix pozicios elemek is vele forognak, es a touch/klikk is jol marad (a bongeszo kezeli
   a transzformot). Eszkozonkent kapcsolhato (localStorage). A regi projektbol portolva. */
body.rotate-90 {
  width: 100vh !important;
  height: 100vw !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  overflow: hidden;
}

/* ---- logo (jobbra fent, feheren) ---- */
/* Logo a szinpadon (jobb-folso sarok, finom). Alapbol latszik, menubol kapcsolhato.
   FONTOS regi iOS-hez: NINCS filter ES NINCS opacity (mindketto uj GPU-reteget csinal ->
   szemetet okoz iPad 3-on). Az attetszoseg a PNG-be van egetve (feher vonalak, ~55% alpha). */
#main-logo {
  position: fixed; top: 3.8rem; right: 1rem; width: 7rem; height: auto;
  pointer-events: none; z-index: 2;
}
#main-logo.hidden { display: none !important; }

/* PWA telepites / uzenet toast */
#toast {
  position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%) translateY(20px);
  background: var(--panel); color: var(--fg); border: 1px solid var(--accent);
  box-shadow: 0 0 20px var(--glow); border-radius: 10px; padding: .8rem 1.1rem;
  font-size: .95rem; max-width: 86vw; text-align: center; z-index: 11000;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- topbar (letisztult, komoly "konzol" stilus, neon-ragyogas nelkul) ---- */
#topbar {
  display: flex; align-items: center; gap: .45rem;
  height: 3.75rem; padding: 0 1rem;
  background: linear-gradient(#0c0c0c, #070707);
  border-bottom: 1px solid #1e1e1e;
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
  z-index: 9000;
}
.spacer { flex: 1; }

/* MENU: kiemelt, de visszafogott (nem neon) */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: #161616; color: var(--fg); border: 1px solid #2a2a2a;
  padding: .3rem .6rem; border-radius: 8px; font-family: inherit;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.menu-toggle:hover { background: #1c1c1c; border-color: var(--accent); }
.menu-toggle:active { background: #222; }

/* setlist szalag: finomabb, tabularis szamok */
#setlist-tape {
  display: flex; align-items: center; gap: .1rem;
  max-width: 40vw; overflow-x: auto; scrollbar-width: none; padding: 0 .25rem;
}
#setlist-tape::-webkit-scrollbar { display: none; }
.tape-number {
  color: var(--muted); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
  cursor: pointer; padding: .25rem .45rem; border-radius: 6px; white-space: nowrap;
  flex: 0 0 auto;   /* NE zsugorodjon: ha nem fer ki, a szalag GORGULJON, ne csusszanak ossze a szamok */
  /* margo + min-szelesseg: iOS 9-en (ahol a flex-gap nem mukodik) se folyjanak ossze a ketjegyu szamok */
  margin: 0 .16rem; min-width: 1.1rem; text-align: center; background: #141414;
  transition: background .15s, color .15s;
}
.tape-number:hover { color: #ddd; background: #161616; }
.tape-number.active { background: var(--accent); color: #000; font-weight: 800; }

/* egyseges pill-rendszer, ragyogas nelkul */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: .45rem .7rem; font-family: inherit; font-size: .77rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: #3a3a3a; color: #eee; }
.pill.on { color: #000; background: var(--accent); border-color: var(--accent); font-weight: 700; }
#ctrl-btn.on { background: var(--upcoming); border-color: var(--upcoming); color: #000; }
/* mas eszkoz vezerel -> "Atvesz" (csak keretez) */
#ctrl-btn.other { color: var(--upcoming); border-color: rgba(255,170,0,.5); background: #161616; }
.pill:disabled { opacity: .5; cursor: not-allowed; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: #d0433a; margin: 0 .1rem; }
.dot.on { background: var(--accent); }

/* jelenlet: egyseges a pillekkel */
.presence {
  font-size: .77rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
  padding: .35rem .55rem; border-radius: 8px; border: 1px solid #2a2a2a; background: #161616; white-space: nowrap;
}
.presence.has-ctrl { color: var(--upcoming); border-color: rgba(255,170,0,.5); }

/* "Szabad bongeszes" sav a fejlec alatt (koppintasra vissza a szinkronhoz) */
#freebrowse {
  position: fixed; top: 3.9rem; left: 50%; transform: translateX(-50%);
  z-index: 8800; background: var(--upcoming); color: #000;
  font-size: .82rem; font-weight: 800; padding: .35rem .9rem; border-radius: 999px;
  box-shadow: 0 0 14px rgba(255,170,0,.45); cursor: pointer; max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* "lezart eszkoz" jelzo (a leader vezerli) — nem kattinthato */
#lock-note {
  position: fixed; top: 3.9rem; left: 50%; transform: translateX(-50%);
  z-index: 8800; background: #b00020; color: #fff;
  font-size: .82rem; font-weight: 800; padding: .35rem .9rem; border-radius: 999px;
  box-shadow: 0 0 14px rgba(176,0,32,.45); max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#limit-note {
  position: fixed; top: 3.9rem; left: 50%; transform: translateX(-50%);
  z-index: 8790; background: #7a4b00; color: #ffd591;
  font-size: .82rem; font-weight: 800; padding: .35rem .9rem; border-radius: 999px;
  box-shadow: 0 0 14px rgba(255,170,0,.35); max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.presence.over-limit { color: var(--upcoming, #ffb84d); border-color: rgba(255,170,0,.6); }
/* letiltott gombok (pl. lezart eszkozon a lapozas/nezet) */
button:disabled, .btn:disabled, .pill:disabled { opacity: .38; cursor: not-allowed; }

/* ---- jogosultsag-ablak (modal) ---- */
.modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 11000;
  background: #000b; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--sidebar-bg, #111); border: 1px solid var(--line, #333); border-radius: 16px;
  width: 30rem; max-width: 94vw; max-height: 86vh; overflow-y: auto; padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 40px #000c;
}
.modal-head { display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line, #333); padding-bottom: .5rem; margin-bottom: .5rem; }
.modal-title { font-size: 1.15rem; font-weight: 800; color: var(--fg, #fff); }
.perms-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.perm-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line, #2a2a2a);
  flex-shrink: 0; -webkit-flex-shrink: 0; }
.perm-name { font-weight: 700; color: var(--fg, #fff); }
.perm-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.perm-toggle {
  background: #222; color: #ddd; border: 1px solid #3a3a3a; border-radius: 10px;
  padding: .5rem .7rem; font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
}
.perm-toggle.on { background: var(--accent, #24c36b); color: #04160c; border-color: transparent; }
.perms-list .muted { color: var(--muted, #888); padding: .6rem 0; }

/* ---- sidebar ---- */
#sidebar {
  /* iOS 9 Safari nem ismeri a CSS min()-t -> eloszor fix szelesseg (fallback), majd a
     modern min(); a max-width: 86vw a kis kepernyokon is jol tartja (vw mar iOS 9-ben is jo). */
  position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 86vw; width: min(340px, 86vw);
  background: var(--sidebar-bg); border-right: 1px solid var(--line);
  z-index: 10000; overflow-y: auto; padding: 1.2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transform: translateX(0); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#sidebar.hidden { transform: translateX(-102%); display: flex !important; }
.sidebar-header { padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
#concert-select {
  width: 100%; background: #222; color: #fff; margin-bottom: .7rem;
  border: 1px solid #333; padding: .9rem; border-radius: 12px; font-family: inherit; font-size: 1rem;
}

/* ---- oldalsav tagolas: cim, szekcio-fejlec, alcimke, magyarazat ---- */
.side-title { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; color: var(--fg);
  padding-bottom: .6rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; }
.sidebar-close { background: #222; color: #fff; border: 1px solid #333; border-radius: 10px;
  width: 2.6rem; height: 2.6rem; font-size: 1.2rem; line-height: 1; padding: 0; cursor: pointer;
  flex-shrink: 0; -webkit-flex-shrink: 0; }
.sidebar-close:active { background: #333; }
.side-section { padding-bottom: .2rem; }
.side-section h3 { color: var(--fg); font-size: .95rem; font-weight: 800; letter-spacing: .01em;
  text-transform: none; margin-bottom: .3rem; padding-left: .55rem; border-left: 3px solid var(--accent); }
.hint { display: block; color: var(--muted); font-size: .74rem; line-height: 1.4; margin: .1rem 0 .55rem; }
.sub-label { color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin: .8rem 0 .35rem; }

/* ---- osszecsukhato menu-szekciok: a h3-ra (vagy szamlista-fejlecre) kattintva ---- */
.side-section h3 { display: flex; align-items: center; cursor: pointer;
  -webkit-user-select: none; user-select: none; }
.side-section h3::after { content: "\25be"; margin-left: auto; padding-left: .5rem;
  font-size: .8rem; color: var(--muted); transition: transform .15s; }
.side-section.collapsed h3::after { transform: rotate(-90deg); }
.side-section.collapsed > *:not(h3) { display: none !important; }

/* szamlista kulon osszecsukhato, sajat fejleccel + darabszammal */
.songs-head { display: flex; align-items: center; cursor: pointer;
  -webkit-user-select: none; user-select: none; }
.songs-head::after { content: "\25be"; margin-left: auto; padding-left: .5rem;
  font-size: .7rem; color: var(--muted); transition: transform .15s; }
.songs-head.collapsed::after { transform: rotate(-90deg); }
.count-badge { color: var(--accent); font-weight: 800; margin-left: .3rem;
  letter-spacing: 0; }
#song-list.collapsed { display: none; }

/* ---- fiok-terulet: ki van belepve + kijelentkezes ---- */
.account-who { color: var(--fg); font-weight: 700; font-size: .9rem;
  margin-bottom: .55rem; word-break: break-word; }
.acc-btn { width: 100%; margin-top: .2rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: #222; color: #fff; border: 1px solid #333; border-radius: 8px;
  padding: .6rem; font-family: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer; text-decoration: none; }
.acc-btn:hover { border-color: var(--accent); }
.src-current { width: 100%; background: #0d0d0d; color: #cfcfcf; border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .6rem; font-family: inherit; font-size: .8rem; }
.btn-block { width: 100%; margin-top: .1rem; }

/* ---- nezet-valaszto (View): Full / Verse / Scroll ---- */
.mode-group { display: flex; gap: .4rem; }
.mode-opt {
  flex: 1; background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: .55rem .3rem; font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.mode-opt:hover { border-color: #3a3a3a; color: #eee; }
.mode-opt.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 800; }
/* hosszabb feliratu gombok (Logo / Rotate / Burn-in): egymas ala, teljes szelesseg,
   hogy elferjenek es olvashatok legyenek (ne csusszanak ossze 3 oszlopban) */
.mode-group.stack { flex-direction: column; }
.mode-group.stack .mode-opt { flex: none; white-space: normal; }

/* ---- Megosztas (QR / link) ---- */
.share-modal { position: fixed; inset: 0; z-index: 13000; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; padding: 1rem; }
.share-card { background: var(--panel, #111); border: 1px solid var(--line, #222); border-radius: 14px;
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; padding: 1.1rem; }
.share-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem;
  margin-bottom: .3rem; }
.share-what.on, .share-perm.on { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 800; }
.share-result { margin-top: .6rem; text-align: center; }
.share-qr { display: flex; justify-content: center; margin: .4rem 0; }
.share-qr img, .share-qr canvas { width: 220px; height: 220px; image-rendering: pixelated;
  background: #fff; padding: 8px; border-radius: 10px; }
.share-url, #share-url { margin: .5rem 0 .4rem; text-align: center; }
.share-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.share-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .2rem;
  border-bottom: 1px solid var(--line, #222); font-size: .85rem; }
.share-list .sh-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-list .sh-tag { font-size: .68rem; color: var(--accent); border: 1px solid var(--line, #222);
  border-radius: 6px; padding: .05rem .4rem; }
.share-list .sh-del { background: #2a1414; color: #ff6b6b; border: 1px solid #7a2b2b; border-radius: 8px;
  width: 2rem; height: 2rem; cursor: pointer; flex-shrink: 0; }
.share-list .empty { color: var(--muted, #888); border: none; }
/* nezo-banner (megosztott linkkel nyitva) */
.share-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 60; text-align: center;
  background: rgba(0,255,136,.14); color: var(--accent, #00ff88); border-bottom: 1px solid rgba(0,255,136,.3);
  font-size: .82rem; font-weight: 700; padding: .4rem .8rem; }
/* nezo-modban a tulaj-eszkozok rejtve (megosztott linkkel nyitva, nem a tulaj) */
body.share-mode .account-box,
body.share-mode #library-section,
body.share-mode #wifi-section,
body.share-mode .side-divider,
body.share-mode #setlist-edit-btn,
body.share-mode #share-btn { display: none !important; }

/* ---- "Install app" gomb (PWA telepites, az oldalsav aljan) ---- */
.install-btn {
  width: 100%; margin-top: .4rem; padding: .65rem; border-radius: 8px;
  background: var(--accent); color: #000; border: none; font-family: inherit;
  font-size: .85rem; font-weight: 800; cursor: pointer; box-shadow: 0 0 12px var(--glow);
  transition: filter .15s;
}
.install-btn:hover { filter: brightness(1.1); }
/* eszkoz-mod (rack): Update gomb — naprakeszen semleges, elerheto frissitesnel kiemelt */
.install-btn.is-update { background: #1a1a1a; color: #cfcfcf; border: 1px solid #333; box-shadow: none; }
.install-btn.is-update.update-ready { background: var(--accent); color: #000; border: none;
  box-shadow: 0 0 12px var(--glow); }
.install-btn:disabled { opacity: .7; cursor: default; }

/* ---- felho-kezeles (Manage lyrics) ---- */
#manage-concert {
  width: 100%; background: #222; color: #fff; margin-bottom: .5rem;
  border: 1px solid #333; padding: .6rem; border-radius: 8px; font-family: inherit; font-size: .9rem;
}
.side-section .row .btn.danger { color: #ff6b6b; border-color: #7a2b2b; }
.side-section .row .btn.danger:hover { border-color: #c0392b; }
.upload-label { text-align: center; }

/* ---- leader-only: a forras/kezelo/setlist csak a vezerlonek (leader) latszik ---- */
#sidebar .leader-only { display: none; }
#sidebar.is-leader .leader-only { display: block; }
/* "can_song" follower (nem leader, de a leader engedte a dalvaltast): csak a Setlist latszik */
#sidebar.can-song .song-ctrl { display: block; }
/* follower jelzes (csak ha NEM vezerlo — a JS veszi le a .hidden-t) */
.follower-note {
  background: #141414; border: 1px solid var(--upcoming); border-radius: 10px;
  padding: .7rem .8rem; font-size: .82rem; color: #ddd; line-height: 1.4;
}
/* forras-tipus kapcsolo (Local / Cloud) */
.src-toggle { margin-bottom: .6rem; }
.src-opt {
  flex: 1; background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: .55rem .3rem; font-family: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.src-opt:hover { border-color: #3a3a3a; color: #eee; }
.src-opt.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 800; }
#song-list { list-style: none; }
#song-list li {
  padding: 1rem; margin-bottom: .5rem; border-radius: 10px; cursor: pointer;
  background: var(--panel); font-size: 1.05rem; font-weight: 500;
  display: flex; align-items: center; gap: .8rem; transition: background .15s;
}
#song-list li .idx { font-weight: 800; opacity: .6; }
#song-list li:hover { background: #242424; }
#song-list li.active { background: var(--accent); color: #000; font-weight: 700; }
.fld { display: block; font-size: .75rem; color: var(--muted); margin-bottom: .6rem; }
.fld input { width: 100%; margin-top: .3rem; background: #222; color: #fff;
  border: 1px solid #333; border-radius: 8px; padding: .55rem; font-family: inherit; font-size: .85rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-flat, .btn.side, .btn { }
.side-section .row .btn {
  flex: 1; background: #222; color: #fff; border: 1px solid #333;
  border-radius: 8px; padding: .6rem; cursor: pointer; font-family: inherit; font-size: .85rem;
  width: auto; height: auto; transform: none; font-weight: 600;
}
.side-section .row .btn:hover { border-color: var(--accent); }
/* ---- mappa-tallozo ---- */
/* ---- mappa-valaszto: "Selected folder" doboz (ut + gomb egyben) + lista ---- */
.picker { margin: .2rem 0 .1rem; }
/* felso sav: csak azt mutatja, hol jarsz (nincs gomb) */
.picker-here {
  display: flex; align-items: center; gap: .5rem;
  background: #101010; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem;
}
.browser-current {
  flex: 1; min-width: 0; color: var(--fg); font-size: .8rem; font-weight: 600;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.browser-current::-webkit-scrollbar { display: none; }
.browser-items { list-style: none; max-height: 30vh; overflow-y: auto; margin-top: .45rem;
  border: 1px solid var(--line); border-radius: 10px; }
.drive-list { list-style: none; max-height: 30vh; overflow-y: auto; }

/* Sajat legordulo (natv <select> helyett): a DOM-ban van, ezert allo (rotate-90) modban is
   helyesen jelenik meg (a natv select legordulojet nem forgatja a CSS-transzform). */
.dropdown { position: relative; width: 100%; }
.dropdown-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: #222; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem;
  font-family: inherit; font-size: .9rem; cursor: pointer; }
.dropdown-btn .dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-btn .dd-caret { flex: 0 0 auto; color: var(--muted); }
.dropdown-list { list-style: none; margin: .3rem 0 0; max-height: 40vh; overflow-y: auto;
  background: #141414; border: 1px solid var(--line); border-radius: 8px; }
.dropdown-list li { padding: .55rem .7rem; cursor: pointer; border-bottom: 1px solid #1e1e1e; }
.dropdown-list li:last-child { border-bottom: none; }
.dropdown-list li:hover, .dropdown-list li:active { background: #1c1c1c; }
.dropdown-list li.active { color: var(--accent); font-weight: 700; }

/* WiFi panel (szinpadi doboz csatlakoztatasa) + kepernyo-billentyuzet a touch-hoz */
.wifi-list { list-style: none; max-height: 28vh; overflow-y: auto; margin: .4rem 0; }
.wifi-list li { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: .35rem; background: #141414; }
.wifi-list li:hover, .wifi-list li:active { background: #1c1c1c; }
.wifi-list li.active { border-color: var(--accent); }
.wifi-list .w-ssid { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wifi-list .w-sig { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }
.wifi-kbd { display: grid; grid-template-columns: repeat(10, 1fr); gap: .25rem; margin: .5rem 0; }
.wifi-kbd button { padding: .55rem 0; border-radius: 6px; border: 1px solid #333; background: #222;
  color: #fff; font-size: .9rem; font-family: inherit; cursor: pointer; }
.wifi-kbd button:active { background: var(--accent); color: #000; }
.wifi-kbd button.wide { grid-column: span 2; }
.wifi-kbd button.space { grid-column: span 4; }
/* ---- eszkozlista (jelenlet) ---- */
.devices-list { list-style: none; margin-top: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.devices-list li { padding: .5rem .6rem; border-radius: 8px; font-size: .85rem;
  background: var(--panel); border: 1px solid var(--line); }
.devices-list li.ctrl { border-color: var(--upcoming); color: var(--upcoming); font-weight: 700; }
.devices-list li.me { border-color: var(--accent); }
.devices-list li.me.ctrl { border-color: var(--upcoming); }
.devices-list li.muted { background: transparent; border: none; color: var(--muted); }
/* eszkoz-sor fejlec: nev + (leadernek) legordito nyil */
.dev-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
/* a leader-sor fejlece IGAZI <button> -> a gomb alapstilusat nullazzuk, hogy a sor ne valtozzon */
button.dev-head { width: 100%; background: transparent; border: none; color: inherit;
  font: inherit; padding: 0; margin: 0; text-align: left; -webkit-appearance: none; appearance: none; }
.dev-head.clickable { cursor: pointer; }
/* iOS Safari: a gomb tartalmara (span) koppintva a click a gombra bubblingol -> pointer-events:none
   biztositja, hogy a koppintas a gombra essen. */
.dev-head.clickable > * { pointer-events: none; }
.dev-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-caret { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }
/* legordulo jog-sav az eszkoz alatt */
.perm-drawer { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem;
  padding-top: .5rem; border-top: 1px dashed var(--line); }
.perm-drawer .perm-toggle { flex: 1 1 8rem; min-width: 0; }

/* jogosultsag-panel (felso sav "⚙ Access" -> legordulo) */
.perms-panel {
  position: fixed; top: 3.6rem; right: .6rem; z-index: 10500;
  width: 24rem; max-width: 94vw; max-height: 72vh; overflow-y: auto;
  background: var(--sidebar-bg, #111); border: 1px solid var(--line, #333); border-radius: 12px;
  padding: .8rem .9rem; box-shadow: 0 10px 40px #000c;
}
.perms-panel.hidden { display: none; }
.perms-panel-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; font-weight: 800; color: var(--fg, #fff);
  border-bottom: 1px solid var(--line, #333); padding-bottom: .4rem; margin-bottom: .4rem; }
.pp-tools { display: flex; gap: .4rem; flex-wrap: wrap; margin: .1rem 0 .5rem; }
.pp-tool { background: #222; color: #ddd; border: 1px solid #3a3a3a; border-radius: 9px;
  padding: .45rem .7rem; font-family: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pp-tool:active { background: #333; }
.pp-dev { border-top: 1px solid var(--line, #2a2a2a); padding: .6rem 0; }
.pp-dev:first-of-type { border-top: none; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.pp-name { font-weight: 700; color: var(--fg, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-badge { flex: 0 0 auto; font-size: .68rem; font-weight: 800; letter-spacing: .02em;
  padding: .18rem .5rem; border-radius: 999px; background: #2a2a2a; color: var(--muted, #9aa); }
.pp-badge.lock { background: rgba(176,0,32,.22); color: #ff6b81; }
.pp-badge.song { background: rgba(255,170,0,.18); color: var(--upcoming, #ffb020); }
.pp-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.pp-btns .perm-toggle { flex: 1 1 8rem; min-width: 0; }
/* kis kijelzon (telefon): a panel alulrol feljovo lap, teljes szelesseg */
@media (max-width: 560px) {
  .perms-panel { top: auto; right: 0; left: 0; bottom: 0; width: auto; max-width: none;
    max-height: 80vh; border-radius: 16px 16px 0 0; }
}
.browser-item { border-bottom: 1px solid #1c1c1c; display: flex; align-items: stretch; }
.browser-item:last-child { border-bottom: none; }
/* ".. feljebb" sor */
.browser-item.parent {
  padding: .6rem; font-size: .86rem; cursor: pointer; color: var(--upcoming);
  font-weight: 700; transition: background .12s;
}
.browser-item.parent:hover { background: #242424; }
/* mappa-sor: nyito resz (bi-main) + kozvetlen "Use" gomb */
.bi-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem;
  background: none; border: none; color: var(--fg); font: inherit; text-align: left;
  padding: .6rem; cursor: pointer; transition: background .12s;
}
.bi-main:hover { background: #242424; }
.bi-ic { flex: 0 0 auto; }
.bi-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.bi-go { flex: 0 0 auto; color: var(--muted); font-size: .72rem; }
.bi-main:hover .bi-go { color: var(--accent); }
.bi-use {
  flex: 0 0 auto; align-self: center; margin: 0 .5rem; padding: .35rem .7rem;
  background: #1c1c1c; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 7px; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer;
  transition: background .12s, color .12s;
}
.bi-use:hover { background: var(--accent); color: #000; }
/* torles-gomb a mappakezelo sorokban (mappa/dal) */
.bi-del {
  flex: 0 0 auto; align-self: center; margin: 0 .5rem; padding: .35rem .55rem;
  background: #1c1c1c; color: #ff6b6b; border: 1px solid #7a2b2b;
  border-radius: 7px; font: inherit; font-size: .8rem; cursor: pointer; transition: background .12s, color .12s;
}
.bi-del:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.browser-item.song { padding: .55rem 0 .55rem .6rem; align-items: center; }
.browser-item.song .bi-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-items .muted, .drive-list .muted { padding: .55rem .6rem; font-size: .8rem; color: var(--muted); cursor: default; }
.drive-list { margin-top: .4rem; border: 1px solid var(--line); border-radius: 10px; }
.drive-list:empty { border: none; }
.btn-primary { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; font-weight: 800 !important; box-shadow: 0 0 12px var(--glow); }
.msg { margin-top: .5rem; font-size: .8rem; color: var(--accent); min-height: 1.1em; }
.side-foot { margin-top: auto; color: var(--muted); font-size: .72rem; }
#scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: #000a; z-index: 9500; }

/* ---- stage / lyrics ---- */
#stage { flex: 1; position: relative; overflow: hidden; background: var(--bg); }
#lyrics-container {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; padding: 6vh 5vw; overflow-y: auto;
  text-align: center; scroll-behavior: auto; scrollbar-width: none;
  font-size: 3.2rem;       /* alap sor-meret (scroll mod); full/verse modban az auto-fit felulirja inline */
  background: var(--bg);   /* sajat reteg feketet fessen (regi iOS GPU-szemet ellen) */
}
#lyrics-container::-webkit-scrollbar { display: none; }
/* A sor-meret EM-ben orokli a konténer font-size-jat -> az auto-fit a konténer style.fontSize-javal
   allitja (nem CSS-valtozoval), mert az iOS 9-on is biztosan hat es reflow-t valt ki. */
.lyric-line {
  font-size: 1em; line-height: 1.24; font-weight: 700;
  margin-bottom: .6rem; transition: color .2s, text-shadow .2s, opacity .2s;
}
.lyric-line.empty-line { height: 2rem; margin: 0; }
.lyric-line.is-title { color: var(--accent); text-shadow: 0 0 20px var(--glow); font-size: 1.5em; }
/* gorgetos mod: aktiv sor kiemelese, tobbi halvany */
#lyrics-container:not(.full-view) .lyric-line { opacity: .4; }
#lyrics-container:not(.full-view) .lyric-line.active {
  opacity: 1; color: var(--accent); text-shadow: 0 0 30px var(--glow);
  background: rgba(0,255,136,.08); border-radius: 10px;
}
#lyrics-container.full-view .lyric-line.active { color: var(--accent); }
/* teljes / verzus mod: fuggolegesen kozepre igazitott, kepernyore meretezett szoveg */
#lyrics-container.full-view { display: flex; flex-direction: column; justify-content: center; }
/* verzus mod: nagyobb levegos sorkoz (keves sor, nagy betu) */
#lyrics-container.verse-view .lyric-line { line-height: 1.3; margin-bottom: 1rem; }

/* ---- controls (jobbra lent, kor gombok) ---- */
.controls-overlay {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem; z-index: 9800;
}
/* elozo/kovetkezo: egyseges, visszafogottabb meret */
.controls-overlay .btn { width: 3.6rem; height: 3.6rem; font-size: 2rem; }
.btn {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; border: none;
  background: #222; color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px #0008; transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.94); }
.btn-next { background: var(--accent); color: #000; box-shadow: 0 0 18px var(--glow); }

/* aktualis dal jelveny (bal lent) */
#song-badge {
  position: fixed; bottom: 1.6rem; left: 1.6rem; z-index: 9700;
  background: var(--accent); color: #000; padding: .12rem .7rem; border-radius: 6px;
  font-size: .85rem; font-weight: 800; letter-spacing: .4px; line-height: 1.35;
  box-shadow: 0 0 15px var(--glow);
  max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Regi Safari flexbox-bug: a column-flex gyerekek flex-shrink:1 miatt 0 magassagra
   zsugorodnak es ATFEDNEK (a dalszoveg-sorok es az oldalsav szekcioi egymason).
   flex-shrink:0 -> megtartjak a tartalom-magassagot, rendesen egymas ala kerulnek. */
.lyric-line { flex-shrink: 0; -webkit-flex-shrink: 0; }
#sidebar > * { flex-shrink: 0; -webkit-flex-shrink: 0; }
.devices-list > li, .controls-overlay > *, .browser-items > li, .content-list > li { flex-shrink: 0; -webkit-flex-shrink: 0; }

/* Regi Safari (<14.1): a flex-gap nem mukodik -> margo-fallback, hogy ne toroljon ossze minden */
@supports not (gap: 1px) {
  #topbar > * + * { margin-left: .45rem; }
  #setlist-tape > * + * { margin-left: .1rem; }
  #sidebar > * + * { margin-top: 1.2rem; }
  .mode-group > * + * { margin-left: .4rem; }
  .row > * + * { margin-left: .5rem; }
  .picker-here > * + * { margin-left: .5rem; }
  .devices-list > * + * { margin-top: .3rem; }
  .controls-overlay > * + * { margin-top: 1rem; }
  #song-list li > * + * { margin-left: .8rem; }
  .bi-main > * + * { margin-left: .5rem; }
}

@media (max-width: 720px) {
  #topbar { height: 3.4rem; padding: 0 .6rem; gap: .3rem; }
  .menu-toggle { padding: .45rem .6rem; font-size: .68rem; letter-spacing: .06em; }
  #setlist-tape { max-width: 24vw; }
  .tape-number { font-size: .82rem; padding: .2rem .4rem; }
  .pill { padding: .4rem .55rem; font-size: .72rem; }
  .presence { padding: .3rem .45rem; font-size: .72rem; }
  #main-logo { width: 4.5rem; top: calc(2.4rem + 20px); right: .8rem; }
  .btn { width: 3.6rem; height: 3.6rem; font-size: 2rem; }
  .controls-overlay .btn { width: 3rem; height: 3rem; font-size: 1.6rem; }
}

/* ---- Menu: setup-elvalaszto (a hetkoznapi es a beallitas-szekciok kozott) ---- */
.side-divider {
  margin: 1.4rem 0 .2rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}

/* ---- Setlist szerkeszto (teljes kepernyos, dal-tar -> setlist) ---- */
/* a Setlist-szekcio gombja: a sidebar tobbi gombjaval egyezo lapos stilus */
.setlist-edit-btn {
  width: 100%; margin-top: .6rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: #222; color: #fff; border: 1px solid #333; border-radius: 8px;
  padding: .6rem; font-family: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer;
}
.setlist-edit-btn:hover { border-color: var(--accent); }
.sled {
  position: fixed; inset: 0; z-index: 12000;   /* MINDEN app-elem (topbar, gombok, badge) folott */
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column;
}
/* editor fulek (Setlists / Library) + panelek */
.sled-tabs { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem;
  border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.sled-tab { background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: .5rem 1rem; font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.sled-tab.on { background: var(--accent); color: #000; border-color: var(--accent); }
.sled-tabs-sp { flex: 1; }
.sled-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sled-panel.hidden { display: none; }
.sled-lib { display: flex; flex-direction: column; overflow-y: auto; padding: .7rem 1rem 1rem; }
.sled-lib .picker, .sled-lib .src-panel, .sled-lib .row, .sled-lib > .hint, .sled-lib .sub-label { max-width: 680px; }
.sled-lib .browser-items { max-width: 680px; }

/* Ketpaneles fajlkezelo (commander) */
.fm { display: flex; gap: .5rem; align-items: stretch; margin: .3rem 0 .6rem; flex: 1 1 auto; min-height: 18rem; }
.fm-pane {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 10px; background: #0d0d0d; overflow: hidden;
}
.fm-pane.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fm-pane-head {
  display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem;
  border-bottom: 1px solid var(--line); background: #141414;
}
.fm-up {
  flex: 0 0 auto; background: #1c1c1c; color: var(--fg); border: 1px solid #2a2a2a;
  border-radius: 6px; padding: .15rem .45rem; cursor: pointer; font-family: inherit; font-size: .85rem;
}
.fm-up:hover { border-color: var(--accent); color: var(--accent); }
.fm-path { flex: 1; min-width: 0; font-size: .78rem; color: #cfcfcf; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-cnt { flex: 0 0 auto; font-size: .68rem; color: var(--muted); }
.fm-list { list-style: none; margin: 0; padding: .3rem; overflow-y: auto; flex: 1 1 auto; min-height: 8rem; }
.fm-row {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; margin: .12rem 0;
  border-radius: 7px; border: 1px solid transparent; cursor: pointer; font-size: .85rem;
}
.fm-row:hover { background: #161616; }
.fm-dir { color: var(--fg); }
.fm-dir:hover { border-color: var(--accent); }
.fm-updir { color: var(--muted); }
.fm-song.sel { background: rgba(0,255,136,.14); border-color: var(--accent); }
.fm-ic, .fm-ck { flex: 0 0 auto; }
.fm-ck { color: var(--muted); font-size: .95rem; }
.fm-song.sel .fm-ck { color: var(--accent); }
.fm-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-go { flex: 0 0 auto; color: var(--muted); font-size: 1.1rem; }
.fm-list .muted { padding: .5rem .6rem; font-size: .78rem; color: var(--muted); cursor: default; }
.fm-mid { display: flex; flex-direction: column; justify-content: center; gap: .4rem; flex: 0 0 auto; }
.fm-op {
  background: #161616; color: var(--fg); border: 1px solid #2a2a2a; border-radius: 8px;
  padding: .5rem .55rem; cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 700; white-space: nowrap;
}
.fm-op:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.fm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .4rem; flex: 0 0 auto; }
.fm-active-label { font-size: .74rem; color: var(--muted); margin-right: .3rem; }
.fm-active-label b { color: var(--accent); text-transform: capitalize; }
.fm-adv-toggle {
  display: block; margin: .6rem 0 .3rem; background: none; border: none; color: var(--muted);
  font-family: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: .3rem 0;
}
.fm-adv-toggle:hover { color: var(--accent); }
.fm-adv.hidden { display: none; }
.fm-adv { border-top: 1px dashed var(--line); padding-top: .6rem; }
.fm-modebar { display: flex; gap: .3rem; padding: .35rem .4rem; border-bottom: 1px solid var(--line); background: #101010; }
.fm-modebtn { flex: 1; background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 6px;
  padding: .32rem .4rem; font-family: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.fm-modebtn.on { background: var(--accent); color: #000; border-color: var(--accent); }
.fm-modebar-static { justify-content: center; align-items: center; color: var(--accent); font-size: .74rem; font-weight: 800; }
.fm-src { flex: 0 0 auto; font-size: .85rem; }
.fm-drop { border-top: 1px dashed var(--line); padding: .5rem; }
.fm-drop.hidden { display: none; }
.fm-drop-label { display: block; text-align: center; padding: .7rem .5rem; border: 1px dashed #2a2a2a; border-radius: 8px;
  color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; background: #0d0d0d; }
.fm-drop-label:hover { border-color: var(--accent); color: var(--accent); }
.fm-drop.over .fm-drop-label { border-color: var(--accent); color: var(--accent); background: rgba(0,255,136,.08); }
.fm-drop-sub { display: block; font-size: .68rem; color: #666; margin-top: .2rem; font-weight: 500; }
.fm-rowbtn { flex: 0 0 auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: .1rem .35rem; border-radius: 5px; }
.fm-rowbtn:hover { color: #ff6b6b; background: rgba(255,90,90,.14); }
.fm-op-off, .fm-op:disabled { opacity: .32; cursor: default; }
.fm-op-off:hover, .fm-op:disabled:hover { background: #161616; color: var(--fg); border-color: #2a2a2a; }
@media (max-width: 680px) {
  .fm { flex-direction: column; }
  .fm-mid { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .fm-list { max-height: 34vh; }
}
.sled-head {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--sidebar-bg);
}
.sled-name {
  flex: 1 1 240px; min-width: 0; font-size: 1.05rem; font-weight: 600;
  padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); font-family: inherit;
}
.sled-head-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.sled-existing {
  padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--fg); max-width: 220px; font-family: inherit;
}
.sled .btn { width: auto; height: auto; padding: .5rem .8rem; font-size: .9rem; border-radius: 8px; }
.sled .btn.primary { background: var(--accent); color: #04120b; border-color: var(--accent); font-weight: 700; }
.sled .btn.danger { border-color: #ff5a5a; color: #ff8080; }
.sled-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
@media (max-width: 680px) { .sled-cols { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }
.sled-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.sled-col:last-child { border-right: none; }
.sled-col-head { padding: .6rem 1rem .3rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: .4rem; }
.sled-viewtoggle { margin-left: auto; display: inline-flex; gap: .3rem; }
.sled-vt {
  background: #161616; color: #b8b8b8; border: 1px solid #2a2a2a; border-radius: 6px;
  padding: .2rem .55rem; font-family: inherit; font-size: .72rem; font-weight: 600; cursor: pointer;
}
.sled-vt.on { background: var(--accent); color: #000; border-color: var(--accent); }
.sled-folder {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; margin: .25rem 0;
  border-radius: 8px; background: var(--panel); border: 1px solid var(--line); cursor: pointer;
}
.sled-folder:hover { border-color: var(--accent); }
.sled-fic { flex: 0 0 auto; }
.sled-chev { color: var(--muted); flex: 0 0 auto; font-size: 1.1rem; }
.sled-back { color: var(--accent); font-weight: 600; }
.sled-newfolder { color: var(--accent); font-weight: 600; border-style: dashed; }
/* dal athelyezese mappaba (popup a szerkeszto folott) */
.sled-move { position: fixed; inset: 0; z-index: 12001; background: #000a;
  display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sled-move-box { width: min(480px, 100%); max-height: 80vh; display: flex; flex-direction: column;
  background: var(--sidebar-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sled-move-head { display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--accent); }
.sled-move-newrow { display: flex; gap: .4rem; padding: .7rem 1rem 0; align-items: center; }
.sled-move-newrow .sled-search { margin: 0; flex: 1; }
.sled-count { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: .4rem; }
.sled-hint { color: var(--muted); font-size: .82rem; padding: 0 1rem .3rem; }
.sled-search {
  margin: 0 1rem .5rem; padding: .5rem .7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-family: inherit;
}
.sled-listbox { list-style: none; overflow-y: auto; flex: 1; padding: 0 .6rem 1rem; }
.sled-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .6rem; margin: .25rem 0; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); cursor: grab;
}
.sled-item.sled-in { cursor: default; }
.sled-target { min-height: 60px; }
.sled-num { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 1.6rem; text-align: right; font-weight: 700; }
.sled-item-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sled-item-c { color: var(--muted); font-size: .78rem; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sled-mini {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 7px;
  background: #000; color: var(--fg); border: 1px solid var(--line);
  font-size: .95rem; cursor: pointer; line-height: 1; padding: 0;
}
.sled-mini:hover { border-color: var(--accent); color: var(--accent); }
.sled-rm:hover { border-color: #ff5a5a; color: #ff8080; }
.sled-msg { padding: .5rem 1rem; color: var(--accent); min-height: 1.6rem; }
.sled-msg.err { color: #ff8080; }

/* ---------- Kepernyo-billentyuzet (kiosk touchscreen; Linuxon nincs OS-billentyuzet) ---------- */
.oskb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: #0a0a0a; border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 -10px 34px rgba(0,0,0,.7);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.oskb.hidden { display: none; }
.oskb-row { display: flex; gap: 6px; justify-content: center; }
.oskb-key {
  flex: 1 1 0; min-width: 0; height: 56px;
  background: #1b1b1b; color: var(--fg); border: 1px solid var(--line);
  border-radius: 9px; font-size: 1.3rem; font-family: inherit; line-height: 1;
  cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent;
}
.oskb-key:active { background: var(--accent); color: #000; }
.oskb-key.on { background: var(--accent); color: #000; }
.oskb-key.oskb-wide { flex: 1.5 1 0; font-size: 1.05rem; }
.oskb-key.oskb-space { flex: 5 1 0; }
.oskb-key.oskb-enter { background: var(--accent); color: #000; font-weight: 700; }

/* ---------- Panel sajat belepo (Account szekcio) ---------- */
.acc-input { width: 100%; margin-bottom: .45rem; background: #0d0d0d; color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .65rem;
  font-family: inherit; font-size: .9rem; }
.acc-input:focus { outline: none; border-color: var(--accent); }
.acc-btn.primary { background: var(--accent); color: #04120b; border-color: var(--accent); font-weight: 700; }
.acc-msg { min-height: 1.1rem; margin-top: .35rem; font-size: .8rem; color: var(--accent); }
.acc-msg.err { color: #ff8080; }
.acc-links { display: flex; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.acc-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.acc-links a:hover { color: var(--accent); }

/* Setlist "hianyzo dal" jelzes a Show list valasztoban */
#concert-dd-list li.has-missing, .concert-dd-list li.has-missing { color: #f0a63c; }
