/* Vinylo Radio — stílusok. Az oldal: index.html (a szerver: server/src/routes/radio.ts). */

:root {
  --bg: #0d0b10;
  --text: #f4f1f6;
  --dim: rgba(244, 241, 246, 0.62);
  --faint: rgba(244, 241, 246, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff4d5e;
  color-scheme: dark;
}
* { box-sizing: border-box; }

/* Görgetősáv: sötét, keskeny sín; a csúszka sötét, hoverkor a kiemelő szín izzik fel rajta. */
/* A Chrome a szabványos scrollbar-color mellett figyelmen kívül hagyná a ::-webkit- stílust, ezért
   a szabványos változat csak ott él, ahol nincs ::-webkit-scrollbar (Firefox). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg); border-radius: 999px;
  background: linear-gradient(180deg, #4a3038, #2a1d22);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff4d5e, #b3132d); }
::-webkit-scrollbar-thumb:active { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #3a2a30 var(--bg); }
  html:hover { scrollbar-color: #5a3640 var(--bg); }
}
html, body { margin: 0; min-height: 100%; }
/* Nincs szövegkijelölés és kép-húzás; jobb klikkre a megosztás ablak jön (lásd lent). */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }

/* Megosztás ablak: mögötte minden elmosódik és elsötétül; középen üvegkártya. */
/* Ha a kártya nem fér ki (alacsony mobil, fekvő telefon), a réteg görgethető, és a kártya felülről
   indul — középre igazítva felfelé lógna ki, oda pedig nem lehet görgetni. Kifér → margin: auto középre. */
.share-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(8, 6, 10, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.share-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.28s ease; }

/* Licenc: jelvény a fejlécben, sor az oldal alján, részletes ablak. */
.license-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 28px; padding: 0 0.75rem 0 0.6rem; border-radius: 999px;
  border: 1px solid rgba(94, 214, 140, 0.35); background: rgba(94, 214, 140, 0.08);
  color: #7fe0a6; font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.license-badge svg { width: 14px; height: 14px; }
.install-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 28px; padding: 0 0.75rem 0 0.6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.install-btn[hidden] { display: none; }
.install-btn svg { width: 14px; height: 14px; }
.install-btn:hover, .install-btn:focus-visible { outline: none; border-color: var(--accent); background: rgba(255, 77, 94, 0.12); color: var(--accent); }
@media (max-width: 600px) { .install-btn span { display: none; } .install-btn { padding: 0 0.5rem; } }
.license-badge:hover, .license-badge:focus-visible { outline: none; background: rgba(94, 214, 140, 0.16); border-color: #5ed68c; }
.legal-line { margin: 1.6rem 0 0; color: var(--faint); font-size: 0.74rem; line-height: 1.6; text-align: center; }
.legal-link {
  padding: 0; border: 0; background: none; color: var(--dim); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25);
}
.legal-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Ha a tartalom görgethető, a jobb oldali sarkok szögletesek, hogy a görgetősáv a kártya szélén fusson. */
.license-card.scrollable { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* A kártyán belüli görgetősáv sínje átlátszó — mögötte a kártya háttere látszik. */
.license-card::-webkit-scrollbar-track, .license-card::-webkit-scrollbar-corner { background: transparent; }
.license-card::-webkit-scrollbar-thumb { border-color: transparent; background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) {
  .license-card { scrollbar-color: #5a3640 transparent; }
}
/* Licenc ablak: 4:3 arányú rács —
     fejléc        | fejléc
     bevezető      | bevezető
     "You may"     | "You may not"   (ez a sor tölti ki a maradék magasságot)
     feltüntetés   | apró betű
   A ".share-card.license-card" pontosabb szelektor kell, mert a .share-card (lent) is állít szélességet. */
.share-card.license-card {
  width: min(940px, calc(100vw - 3rem)); aspect-ratio: 4 / 3; max-height: calc(100dvh - 3rem);
  overflow-y: auto; text-align: left; padding: 1.8rem 1.9rem 1.6rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto; column-gap: 1rem; row-gap: 1.1rem;
  grid-template-areas: "head head" "intro intro" "ok no" "credit fine";
}
.lic-head { grid-area: head; display: flex; align-items: center; gap: 1rem; padding-right: 2.5rem; }
.lic-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(94, 214, 140, 0.12); color: #7fe0a6; transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.3, 1.3);
}
.lic-head:hover .lic-icon { transform: rotate(-6deg) scale(1.06); }
.lic-icon svg { width: 26px; height: 26px; }
.lic-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.lic-tagline { margin: 0.2rem 0 0; color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lic-intro { grid-area: intro; margin: 0; max-width: 720px; color: var(--dim); font-size: 0.92rem; line-height: 1.6; }
.lic-intro strong { color: var(--text); }
.lic-cols { display: contents; }
.lic-col {
  display: flex; flex-direction: column; min-height: 0;
  padding: 1.1rem 0.9rem 0.8rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.lic-col.ok { grid-area: ok; }
.lic-col.no { grid-area: no; }
.lic-col.ok:hover { border-color: rgba(94, 214, 140, 0.35); background: rgba(94, 214, 140, 0.04); }
.lic-col.no:hover { border-color: rgba(255, 77, 94, 0.35); background: rgba(255, 77, 94, 0.04); }
.lic-col h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.7rem; padding: 0 0.3rem; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lic-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; }
.lic-col.ok h3 { color: #7fe0a6; }
.lic-col.ok .lic-dot { background: rgba(94, 214, 140, 0.15); }
.lic-col.no h3 { color: var(--accent); }
.lic-col.no .lic-dot { background: rgba(255, 77, 94, 0.15); }
.lic-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
/* Sorok: hoverre kiemelt háttér, a pont helyén pipa / kereszt jelenik meg, a szöveg kivilágosodik. */
.lic-col li {
  position: relative; padding: 0.5rem 0.6rem 0.5rem 2.1rem; border-radius: 10px;
  color: var(--dim); font-size: 0.83rem; line-height: 1.5; cursor: default;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lic-col li::before {
  content: ''; position: absolute; left: 0.85rem; top: 1.05em; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.5; transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}
.lic-col li b { color: var(--text); font-weight: 600; }
.lic-col li:hover { color: var(--text); transform: translateX(2px); }
.lic-col.ok li:hover { background: rgba(94, 214, 140, 0.09); }
.lic-col.no li:hover { background: rgba(255, 77, 94, 0.09); }
.lic-col li:hover::before {
  width: 18px; height: 18px; opacity: 1; display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800; line-height: 18px; text-align: center;
}
.lic-col.ok li:hover::before { content: '✓'; background: rgba(94, 214, 140, 0.2); color: #7fe0a6; }
.lic-col.no li:hover::before { content: '✕'; background: rgba(255, 77, 94, 0.2); color: var(--accent); }
.lic-credit {
  grid-area: credit; align-self: end;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 0.8rem 0.8rem 1rem; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.16);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.lic-credit:hover { border-style: solid; border-color: rgba(255, 77, 94, 0.45); background: rgba(255, 77, 94, 0.05); }
.lic-credit-label { display: block; margin-bottom: 0.2rem; color: var(--faint); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lic-credit code { color: var(--text); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; }
.lic-credit { position: relative; }

/* Feltüntetés "matricaként": másoláskor a matrica másolata a jobb alsó sarkánál felpöndörödik
   (a sarok visszahajlik, a hátoldala látszik), megemelkedik, majd a Copy gomb felé repülve eltűnik. */
@property --peel { syntax: '<length>'; inherits: true; initial-value: 0px; }
.sticker {
  display: inline-block; margin-top: 0.1rem; padding: 0.35rem 0.65rem; border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.sticker-peel {
  position: absolute; z-index: 5; margin: 0; pointer-events: none;
  background: linear-gradient(135deg, #3b2d35, #2a2027);
  border-color: rgba(255, 255, 255, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%);
  will-change: transform, opacity;
}
/* A visszahajló sarok: a levágott háromszög tükörképe, a matrica világos hátoldalával. */
.sticker-peel .fold {
  position: absolute; right: 0; bottom: 0; width: var(--peel); height: var(--peel);
  background: linear-gradient(135deg, #f6f0f4 0%, #d9ccd4 48%, transparent 50%);
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.35));
  border-top-left-radius: 2px;
}
.credit-copy { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 84px; justify-content: center; }
.cc-check { width: 0; height: 14px; opacity: 0; transform: scale(0.4) rotate(-20deg); transition: width 0.25s ease, opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.credit-copy.copied .cc-check { width: 14px; opacity: 1; transform: none; }
.credit-copy.copied { animation: cc-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes cc-pop { 40% { transform: scale(1.08); } }
.lic-fine { grid-area: fine; align-self: end; margin: 0; padding: 0.2rem 0 0.2rem 0.4rem; color: var(--faint); font-size: 0.72rem; line-height: 1.55; }
/* Keskeny kijelzőn egy oszlop, kötött arány nélkül (görgethető). */
@media (max-width: 760px) {
  /* Mobilon a kártya nem görget magában — a teljes réteg görget (lásd .share-overlay). */
  .share-card.license-card {
    max-height: none; overflow: visible;
    aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "head" "intro" "ok" "no" "credit" "fine"; padding: 1.5rem 1.2rem 1.3rem;
  }
}
@media (max-width: 600px) {
  .lb-sep, .lb-extra { display: none; }
}
.share-card {
  position: relative; width: min(420px, 100%); margin: auto 0; flex: 0 0 auto;
  padding: 1.8rem 1.6rem 1.5rem; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(40, 30, 36, 0.92), rgba(18, 14, 18, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.share-overlay.open .share-card { transform: none; }
.share-close {
  position: absolute; top: 0.8rem; right: 0.8rem; width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); color: var(--dim); cursor: pointer;
}
.share-close:hover { background: rgba(255, 77, 94, 0.16); color: var(--accent); }
.share-close svg { width: 16px; height: 16px; }
.share-logo { width: 46px; height: 46px; color: var(--accent); margin-bottom: 0.7rem; }
.share-card h2 { margin: 0 0 0.3rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.share-sub { margin: 0 0 1.4rem; color: var(--dim); font-size: 0.88rem; }
.share-sub em { color: var(--text); font-style: normal; font-weight: 600; }
.share-targets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.share-target {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.2rem; border-radius: 14px; border: 1px solid transparent;
  color: var(--dim); font-size: 0.7rem; font-weight: 600; text-decoration: none;
  background: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.share-target svg { width: 22px; height: 22px; }
.share-target:hover, .share-target:focus-visible { outline: none; background: rgba(255, 77, 94, 0.12); border-color: rgba(255, 77, 94, 0.4); color: var(--accent); }
.share-link {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3);
}
.share-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 0.85rem; color: var(--dim); }
.share-copy {
  flex: 0 0 auto; height: 34px; padding: 0 1rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: filter 0.2s ease;
}
.share-copy:hover { filter: brightness(1.1); }
@media (max-width: 420px) { .share-targets { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .share-overlay, .share-card { transition: none; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Elmosott borító-háttér, számváltáskor áttűnik. */
.backdrop { position: fixed; inset: -10%; z-index: 0; pointer-events: none; }
.backdrop div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.3) brightness(0.45);
  transform: scale(1.1);
  opacity: 0; transition: opacity 1.6s ease;
}
.backdrop div.on { opacity: 1; }
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(13, 11, 16, 0.55) 60%, var(--bg) 100%);
}
/* Ünnepi időszakban (html.season-xmas, dec 1 – jan 6) a fő háttér a .scene kép; a szóló szám
   elmosott borítója ilyenkor csak finoman színezi. */
html.season-xmas .backdrop div.on { opacity: 0.3; }
html.season-xmas .backdrop::after {
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(13, 11, 16, 0.45) 60%, rgba(13, 11, 16, 0.88) 100%);
}

/* Háttérkép (fenyőág, bokeh-fények — Unsplash) rózsaszínre színezve, hogy a rádió megszokott
   színvilága megmaradjon: a "color" keverés a kép fényességét megtartja, csak az árnyalatát
   húzza a kiemelő szín felé; fölötte sötétítés az olvashatóságért. Lassan, alig észrevehetően
   közelít-távolodik. */
.scene { display: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
html.season-xmas .scene { display: block; }
.scene::before {
  content: ''; position: absolute; inset: -4%;
  background: url("/radio/assets/bg-xmas.webp") center / cover no-repeat;
  filter: brightness(0.42) contrast(1.05);
  animation: scene-drift 60s ease-in-out infinite alternate;
}
.scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 16, 0.45) 0%, rgba(13, 11, 16, 0.6) 55%, rgba(13, 11, 16, 0.9) 100%);
}
.scene-tint { position: absolute; inset: 0; background: #ff4d5e; mix-blend-mode: color; opacity: 0.7; }
@keyframes scene-drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }

/* Hóesés (dec 1 – feb vége): hátsó réteg a háttér és a tartalom között, az elülső pár nagy
   pehely a tartalom előtt; egyik sem fogja meg az egeret. */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.snow-back { z-index: 0; }
.snow-front { z-index: 3; filter: blur(1.2px); }

main {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}

/* Ragadós fejléc: görgetéskor a képernyő tetején marad. A negatív margó kiegyenlíti a saját
   térközét, így az oldal tetején a helyzete nem változik. Görgetve (.stuck, radio.js) mögötte
   teljes szélességű, elmosott sáv jelenik meg. */
header {
  /* Felül a notch / rendszersáv magassága is (env), hogy rögzítve se kerüljön alá. */
  --hp: 0.65rem; --hpt: max(var(--hp), env(safe-area-inset-top, 0px));
  position: sticky; top: 0; z-index: 20;
  margin: calc(-1 * var(--hpt)) 0 calc(-1 * var(--hp)); padding: var(--hpt) 0 var(--hp);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
header::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: rgba(13, 11, 16, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
header.stuck::before { opacity: 1; }
.brand { margin: 0; display: flex; align-items: center; gap: 0.7rem; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
/* Logó: három koncentrikus kör a kiemelő színben — a belső vastagabb (2px). */
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; color: var(--accent); overflow: visible; }
/* Időnként (7 mp-enként) egy hanghullám fut végig a logón: belülről kifelé, egymás után
   felvillannak és kicsit kitágulnak a körök, majd visszasimulnak. */
.brand-mark circle {
  transform-box: view-box; transform-origin: 15px 15px;
  animation: logo-wave 7s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
}
.brand-mark circle:nth-child(3) { animation-delay: 0s; }
.brand-mark circle:nth-child(2) { animation-delay: 0.14s; }
.brand-mark circle:nth-child(1) { animation-delay: 0.28s; }
@keyframes logo-wave {
  0%, 14%, 100% { transform: scale(1); opacity: 1; filter: none; }
  4% { transform: scale(1.14); opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 77, 94, 0.9)); }
  8% { transform: scale(0.97); opacity: 0.75; }
}
.status { display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem; color: var(--dim); }
#listeners { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
#listeners[hidden] { display: none; }
#listeners svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* Mobil fejléc: minden egy sorban, tömörítve — a márka nem törik, a jelvények ikonosak. */
@media (max-width: 600px) {
  header { gap: 0.6rem; }
  .brand { gap: 0.5rem; font-size: 1rem; white-space: nowrap; flex: 0 0 auto; }
  .brand-mark { width: 26px; height: 26px; }
  .status { gap: 0.45rem; min-width: 0; font-size: 0.8rem; }
  .status > * { flex: 0 0 auto; white-space: nowrap; }
  .ls-word { display: none; }
  .status .live { gap: 0.4rem; padding: 0 0.65rem 0 0.6rem; letter-spacing: 0.14em; }
}
@media (max-width: 480px) {
  .license-badge > span { display: none; }
  .license-badge { width: 28px; padding: 0; justify-content: center; }
  .status .live-eq { display: none; }
}
@media (max-width: 350px) {
  .brand { font-size: 0.92rem; }
  .brand-mark { width: 22px; height: 22px; }
  .status { gap: 0.35rem; }
  /* A licenc az oldal alján ("View license") is elérhető — a legkeskenyebb kijelzőn innen kimarad. */
  .status .license-badge { display: none; }
}
/* LIVE jelvény: piros üveges pirula, lüktető pont hullámgyűrűkkel, végigfutó fénycsík, és
   lejátszás közben mozgó hangszínszint-oszlopok. */
.live {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 28px; padding: 0 0.8rem 0 0.7rem; border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5e 0%, #e3183a 100%);
  color: #fff;
  font-weight: 800; font-size: 0.7rem; letter-spacing: 0.18em; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 24px -8px rgba(255, 45, 70, 0.8);
  animation: live-glow 2.4s ease-in-out infinite;
}
.live::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: live-sheen 3.6s ease-in-out infinite;
}
.live-text { padding-top: 1px; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.live-dot::before, .live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid #fff; animation: live-ripple 2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.live-dot::after { animation-delay: 1s; }
.live-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; margin-left: 0.05rem; }
.live-eq i { width: 2px; height: 3px; border-radius: 1px; background: #fff; opacity: 0.9; transition: height 0.3s ease; }
.playing .live-eq i { animation: live-eq 0.9s ease-in-out infinite alternate; }
.playing .live-eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.playing .live-eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
.playing .live-eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.15s; }
@keyframes live-ripple { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes live-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes live-glow {
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 30px -6px rgba(255, 45, 70, 1); }
}
@keyframes live-eq { 0% { height: 3px; } 100% { height: 11px; } }

.stage {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 3.5rem;
  padding: 2.5rem 0;
}

/* Bakelit: a borító a lemez közepén, lejátszás közben forog. */
.record-wrap { position: relative; width: 100%; max-width: 420px; justify-self: center; aspect-ratio: 1; }
/* Számváltás: a régi lemez kibillenve leesik, az új balról begurul (forogva), majd megáll a helyén. */
.record-wrap.drop { animation: record-drop 0.65s cubic-bezier(0.55, 0, 0.9, 0.45) forwards; }
.record-wrap.enter { animation: record-enter 0.95s cubic-bezier(0.16, 0.9, 0.3, 1.04) both; }
@keyframes record-drop {
  0% { transform: none; opacity: 1; }
  18% { transform: translateY(-4%) rotate(-4deg); opacity: 1; }
  70% { opacity: 0.85; }
  100% { transform: translateY(70%) rotate(22deg) scale(0.92); opacity: 0; }
}
@keyframes record-enter {
  0% { transform: translateX(-110vw) rotate(-540deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.record {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.06) 31.4%, transparent 32%),
    repeating-radial-gradient(circle, #151515 0 1px, #0b0b0b 1px 3px),
    #0b0b0b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #1d1d1d;
  animation: spin 3.2s linear infinite; animation-play-state: paused;
}
.record::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,0.08) 14%, transparent 20% 55%, rgba(255,255,255,0.06) 60%, transparent 66%);
}
.playing .record { animation-play-state: running; }
.label {
  position: absolute; inset: 31%; border-radius: 50%;
  background: #222 center / cover no-repeat;
  box-shadow: 0 0 0 3px #0b0b0b;
}
.label::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}
@keyframes spin { to { transform: rotate(360deg); } }

.now { min-width: 0; }
/* "Now playing ── from Vinylo Original": kiemelő színű, ritkított felirat mozgó szintjelzővel,
   vékony elhalványuló vonal, majd az album neve dőlt talpas betűvel. */
.eyebrow { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1rem; flex-wrap: wrap; }
.np {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
}
.np-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.np-eq i { width: 3px; height: 4px; border-radius: 1.5px; background: currentColor; transition: height 0.3s ease; }
.playing .np-eq i { animation: live-eq 0.85s ease-in-out infinite alternate; }
.playing .np-eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.25s; }
.playing .np-eq i:nth-child(3) { animation-duration: 1s; animation-delay: -0.5s; }
.np-sep { width: 36px; height: 1px; background: linear-gradient(90deg, rgba(255, 77, 94, 0.7), rgba(255, 255, 255, 0)); }
.np-album { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.02em; }
.np-album em {
  margin-left: 0.2rem; color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 1.02rem; letter-spacing: 0.01em;
}
h1 {
  margin: 0 0 0.4rem; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.artist { margin: 0 0 2rem; color: var(--dim); font-size: 1.1rem; }

.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--text); border-radius: 4px; }
.times { display: flex; justify-content: space-between; margin-top: 0.5rem; color: var(--faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
/* Lejátszás gomb — minimalista bakelit: sötét korong két halvány barázdával, középen az ikon.
   Lejátszáskor egy vékony piros ív kering körülötte (mint a forgó lemez). */
.play {
  position: relative; width: 68px; height: 68px; flex: 0 0 auto;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}
.play:hover { transform: scale(1.04); }
.play:active { transform: scale(0.96); }
.play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: #141414;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 9px #141414, inset 0 0 0 10px rgba(255, 255, 255, 0.06),
    inset 0 0 0 16px #141414, inset 0 0 0 17px rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}
.play:hover .disc { background: #1a1a1a; }
.play::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--accent);
  opacity: 0; transition: opacity 0.3s ease;
}
.playing .play::after, .loading .play::after { opacity: 1; animation: spin 1.6s linear infinite; }
.loading .play::after { animation-duration: 0.7s; }
.play svg { position: relative; width: 22px; height: 22px; }
.play .i-play { transform: translateX(1px); }
.play .i-stop { display: none; width: 18px; height: 18px; }
.playing .play .i-play { display: none; }
.playing .play .i-stop { display: block; }
.hint { color: var(--dim); font-size: 0.9rem; }

.volume { display: flex; align-items: center; gap: 0.6rem; color: var(--dim); }
.pip-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--dim); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pip-btn[hidden] { display: none; }

/* Elalvás-időzítő: hold ikon; aktívan mellette a visszaszámlálás; felette lenyíló menü. */
.sleep-wrap { position: relative; margin-left: auto; }
.sleep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 36px; height: 36px; padding: 0 0.55rem; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--dim); font: inherit; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sleep-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.sleep-label:empty { display: none; }
.sleep-btn:hover, .sleep-btn[aria-expanded="true"], .sleep-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(255, 77, 94, 0.1); }
.sleep-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sleep-menu {
  position: absolute; z-index: 20; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 190px; padding: 0.45rem; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 19, 23, 0.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
  animation: sleep-menu-in 0.18s ease-out;
}
.sleep-menu[hidden] { display: none; }
@keyframes sleep-menu-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.sleep-title { margin: 0.25rem 0.6rem 0.4rem; color: var(--faint); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-align: left; }
.sleep-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.55rem 0.65rem; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: inherit; font-size: 0.85rem; text-align: left; cursor: pointer;
}
.sleep-menu button:hover, .sleep-menu button:focus-visible { outline: none; background: rgba(255, 77, 94, 0.12); color: var(--accent); }
.sleep-menu button[aria-checked="true"] { color: var(--accent); font-weight: 700; }
.sleep-menu button[aria-checked="true"]::after { content: '✓'; font-size: 0.8rem; }
.sleep-menu .sleep-off { margin-top: 0.25rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--dim); }
.sleep-menu .sleep-off[hidden] { display: none; }
.pip-btn svg { width: 17px; height: 17px; }
.pip-btn:hover, .pip-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(255, 77, 94, 0.1); }
.pip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.volume svg { width: 20px; height: 20px; }
input[type=range] { width: 110px; accent-color: var(--text); }

.upnext { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.upnext h2 { margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.upnext ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.8rem; }
.upnext li { min-width: 0; }

/* "Up next" jegyek: téglalap kártya — balra a borító, középen átlátszó rész az előadóval és a
   címmel, jobbra perforált (szaggatott vonallal elválasztott, kivágott szélű) szelvény a
   kezdési idővel, mint egy belépőjegyen. Hoverre a jegy megemelkedik, a szelvény kicsit
   "letépődik", a borító ránagyít. */
.ticket {
  --stub: 88px; --notch: 7px;
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) var(--stub); align-items: stretch;
  height: 76px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: transparent;
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
}
.ticket:hover { transform: translateY(-2px); border-color: rgba(255, 77, 94, 0.35); background: rgba(255, 255, 255, 0.025); }
/* A borító kerete fix méretű; hoverkor csak a kép nagyobbodik benne. */
.upnext .cover { width: 76px; height: 100%; overflow: hidden; background: #1a1a1a; isolation: isolate; }
.upnext .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.upnext li:hover .cover img { transform: scale(1.12); }
.tk-info { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; min-width: 0; padding: 0 0.95rem; }
.tk-artist { margin: 0; color: var(--faint); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .t { margin: 0; font-size: 0.84rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  border-left: 2px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 77, 94, 0.07);
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* Hoverre a szelvény a helyén marad — csak a színe erősödik. */
.ticket:hover .tk-stub { background: rgba(255, 77, 94, 0.14); border-left-color: rgba(255, 77, 94, 0.4); }
.tk-label { color: var(--faint); font-size: 0.56rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.upnext .at {
  margin: 0; color: var(--text); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.ticket:hover .at { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .upnext .cover img, .ticket, .tk-stub { transition: none; } }

.empty { margin: auto; text-align: center; color: var(--dim); }

/* Külső lejátszó (VLC stb.): lejátszólista letöltése / stream-cím másolása.
   Alapból (mobil, laptop) vízszintes sáv az oldal alján; széles kijelzőn jobb oldali panel (lent). */
.external {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem;
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--dim);
}
.ext-head { display: contents; }
.ext-head .brand-mark, .ext-sub, .ext-btn small, .ext-arrow, .ext-meta { display: none; }
.external-label { margin-right: 0.3rem; color: var(--faint); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ext-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 32px; padding: 0 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600; text-align: left;
  text-decoration: none; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ext-btn b { font-weight: 600; }
.ext-ico { display: inline-grid; place-items: center; }
.ext-ico svg { width: 14px; height: 14px; }
.ext-btn:hover { border-color: var(--accent); background: rgba(255, 77, 94, 0.14); color: var(--accent); }
.ext-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ext-btn.copied { border-color: var(--accent); color: var(--accent); }
.external-hint { flex-basis: 100%; color: var(--faint); font-size: 0.75rem; }

/* Széles kijelző: jobb oldali, függőleges üvegpanel a képernyő közepén. A tartalom középen marad
   (nem tolódik el); a panel csak ott jelenik meg, ahol a 980px-es tartalom mellett elfér.
   Betöltéskor jobbról beúszik, a sorai egymás után jelennek meg; a logó időnként hullámzik. */
@media (min-width: 1440px) {
  .external {
    position: fixed; z-index: 4; top: 50%; right: 1.25rem;
    width: 206px; margin: 0; padding: 1.1rem 0.7rem 0.8rem;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    background: rgba(22, 18, 22, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    transform: translateY(-50%);
    animation: ext-panel-in 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s both;
  }
  .ext-head {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0 0.4rem 0.85rem; margin-bottom: 0.35rem; border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .ext-head .brand-mark { display: block; width: 26px; height: 26px; margin-bottom: 0.45rem; }
  .external-label { margin: 0; color: var(--text); font-size: 0.68rem; letter-spacing: 0.2em; }
  .ext-sub { display: block; color: var(--faint); font-size: 0.72rem; line-height: 1.4; }

  .ext-btn {
    height: auto; padding: 0.5rem 0.55rem; gap: 0.65rem;
    border: 1px solid transparent; border-radius: 12px; background: none;
    animation: ext-item-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  }
  .ext-btn[href$=".m3u"] { animation-delay: 0.75s; }
  .ext-btn[href$=".pls"] { animation-delay: 0.85s; }
  #copy-url.ext-btn { animation-delay: 0.95s; }
  .ext-head .brand-mark circle { animation-name: logo-wave-soft; }
  .ext-ico {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
    background: rgba(255, 255, 255, 0.06); color: var(--dim);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.3, 0.9, 0.3, 1.3);
  }
  .ext-ico svg { width: 15px; height: 15px; }
  .ext-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .ext-btn b { font-size: 0.8rem; color: var(--text); transition: color 0.25s ease; }
  .ext-btn small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ext-arrow { display: block; width: 14px; height: 14px; flex: 0 0 auto; color: var(--faint); transition: transform 0.25s ease, color 0.25s ease; }
  .ext-btn:hover { background: rgba(255, 77, 94, 0.1); border-color: rgba(255, 77, 94, 0.25); color: inherit; }
  .ext-btn:hover .ext-ico { background: var(--accent); color: #fff; transform: scale(1.06) rotate(-4deg); }
  .ext-btn:hover b, .ext-btn.copied b { color: var(--accent); }
  .ext-btn:hover .ext-arrow { color: var(--accent); transform: translateX(3px); }
  .ext-btn.copied { border-color: rgba(255, 77, 94, 0.25); }
  .ext-btn.copied .ext-ico { background: var(--accent); color: #fff; }

  .ext-meta {
    display: flex; justify-content: center; gap: 0.3rem; margin-top: 0.55rem; padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    animation: ext-item-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 1.05s both;
  }
  .ext-meta span {
    padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05);
    color: var(--faint); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  }
  .external-hint { display: none; }
}
@keyframes ext-panel-in { from { opacity: 0; transform: translate(28px, -50%); } to { opacity: 1; transform: translateY(-50%); } }

/* Hirdetési panel: a jobb oldali panel tükörképe a bal szélen, legfeljebb 3 hely egymás alatt.
   Csak széles kijelzőn (ahol a középre igazított tartalom mellett elfér); máshol nem látszik. */
.ads { display: none; }
/* Ha nincs egyetlen aktív hirdetés sem, az egész "Sponsored" panel rejtve marad. */
.ads[hidden] { display: none !important; }
@media (min-width: 1440px) {
  .ads {
    display: flex; flex-direction: column; gap: 0.55rem;
    position: fixed; z-index: 4; top: 50%; left: 1.25rem;
    /* Magasabb panel (a képernyő magasságához igazodik, legfeljebb 820px), és vízszintesen kitölti
       a bal szél és a középre igazított 980px-es tartalom közti teret (legalább 206, legfeljebb 360px). */
    width: clamp(206px, calc((100vw - 980px) / 2 - 2.5rem), 360px);
    height: min(820px, calc(100vh - 4rem)); padding: 0.75rem 0.45rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    background: rgba(22, 18, 22, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    transform: translateY(-50%);
    animation: ads-panel-in 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s both;
  }
}
.ads-head { display: flex; align-items: center; justify-content: center; padding-bottom: 0.15rem; }
.ads-label { color: var(--faint); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.ads-list { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-height: 0; }
.ad-slot {
  position: relative; display: block; flex: 1 1 0; min-height: 0; width: 100%; align-self: stretch; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, 0.04); isolation: isolate; text-decoration: none; color: inherit;
  animation: ads-item-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ad-slot:nth-child(1) { animation-delay: 0.75s; }
.ad-slot:nth-child(2) { animation-delay: 0.85s; }
.ad-slot:nth-child(3) { animation-delay: 0.95s; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.ad-slot:hover img { transform: scale(1.06); }
a.ad-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad-tag {
  position: absolute; top: 6px; right: 6px; padding: 0.1rem 0.35rem; border-radius: 5px;
  background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.8); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
}
/* Üres hely: szaggatott keret, középen halvány felirat. */
.ad-slot.empty {
  display: grid; place-content: center; justify-items: center; gap: 0.35rem;
  border: 1px dashed rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.02); text-align: center;
}
.ad-slot.empty svg { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.22); }
.ad-slot.empty b { color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ad-slot.empty small { color: rgba(244, 241, 246, 0.28); font-size: 0.64rem; }

/* Hirdetés-kártya (a médiaszerver szerkesztőjének előnézetével azonos): háttérkép, alul sötétedő
   átmenet, logó, cím, szöveg, gomb és platform-ikonok. Az egész kártya link (.ad-cover réteg),
   az ikonok önálló linkek fölötte. */
.ad-card { display: flex; background: linear-gradient(160deg, #3a2430, #15111a); color: var(--text); }
.ad-bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ad-card:hover .ad-bg { transform: scale(1.05); }
.ad-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 12, 0.05) 30%, rgba(10, 8, 12, 0.88) 100%); }
.ad-card.no-image .ad-shade { background: radial-gradient(circle at 30% 20%, rgba(255, 77, 94, 0.25), transparent 60%); }
.ad-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ad-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ad-card .ad-tag { z-index: 2; }
.ad-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; width: 100%; padding: 0.8rem; pointer-events: none; }
.ad-logo { max-width: 60%; max-height: 40px; object-fit: contain; object-position: left center; margin-bottom: 0.15rem; }
.ad-title { margin: 0; font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.ad-sub { margin: 0; color: var(--dim); font-size: 0.74rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.45rem; margin-top: 0.35rem; }
.ad-cta {
  display: inline-flex; align-items: center; height: 26px; padding: 0 0.75rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; transition: filter 0.2s ease;
}
.ad-card:hover .ad-cta { filter: brightness(1.12); }
.ad-icons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ad-icon {
  position: relative; z-index: 2; pointer-events: auto;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background 0.2s ease, transform 0.2s ease;
}
.ad-icon svg { width: 15px; height: 15px; }
.ad-icon:hover, .ad-icon:focus-visible { outline: none; background: var(--accent); transform: translateY(-1px); }
@keyframes ads-panel-in { from { opacity: 0; transform: translate(-28px, -50%); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes ads-item-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes logo-wave-soft { 0%, 14%, 100% { transform: scale(1); opacity: 1; } 4% { transform: scale(1.14); } 8% { transform: scale(0.97); opacity: 0.75; } }
@keyframes ext-item-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 1.5rem 0 2rem; text-align: center; }
  .record-wrap { max-width: 300px; }
  .eyebrow { justify-content: center; }
  /* Mobil: a lejátszás gomb pontosan középen, tőle balra az elalvás-időzítő; alatta a felirat
     és a hangerő teljes szélességben. */
  .controls {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.1rem; row-gap: 1rem;
    grid-template-areas: "sleep play side" "hint hint hint" "vol vol vol";
  }
  .controls .play { grid-area: play; }
  .sleep-wrap { grid-area: sleep; justify-self: end; margin: 0; }
  .pip-btn { grid-area: side; justify-self: start; }
  .hint { grid-area: hint; }
  .hint:empty { display: none; }
  .volume { grid-area: vol; margin-left: 0; width: 100%; justify-content: center; }
  .sleep-menu { left: auto; right: auto; left: 0; transform: none; }
  @keyframes sleep-menu-in { from { opacity: 0; transform: translateY(6px); } }
  /* Up next mobilon: a jegyek egymás alatt, teljes szélességben. */
  .upnext ol { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .ticket { text-align: left; }

  /* Listen in your player: kártya, benne egymás alatti sorok (mint az asztali panelen). */
  .external {
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.3rem;
    margin-top: 1.6rem; padding: 1rem 0.65rem 0.75rem;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.035);
  }
  .ext-head {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0 0.4rem 0.8rem; margin-bottom: 0.3rem; border-bottom: 1px solid var(--line); text-align: center;
  }
  .ext-head .brand-mark { display: block; width: 26px; height: 26px; margin-bottom: 0.4rem; }
  .external-label { margin: 0; color: var(--text); font-size: 0.68rem; letter-spacing: 0.2em; }
  .ext-sub { display: block; color: var(--faint); font-size: 0.75rem; line-height: 1.4; }
  .ext-btn { height: auto; padding: 0.6rem 0.55rem; gap: 0.75rem; border: 1px solid transparent; border-radius: 12px; background: none; }
  .ext-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--dim); }
  .ext-ico svg { width: 16px; height: 16px; }
  .ext-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .ext-btn b { font-size: 0.88rem; color: var(--text); }
  .ext-btn small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--faint); }
  .ext-arrow { display: block; width: 16px; height: 16px; flex: 0 0 auto; color: var(--faint); }
  .ext-btn:hover, .ext-btn:active { background: rgba(255, 77, 94, 0.1); border-color: rgba(255, 77, 94, 0.25); color: inherit; }
  .ext-btn:active .ext-ico, .ext-btn.copied .ext-ico { background: var(--accent); color: #fff; }
  .ext-btn.copied b { color: var(--accent); }
  .ext-meta { display: flex; justify-content: center; gap: 0.3rem; margin-top: 0.45rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
  .ext-meta span { padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--faint); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; }
  .external-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .record { animation: none; }
  .scene::before, .ads, .ad-slot, .external, .ext-btn, .ext-meta, .brand-mark circle, .playing .np-eq i, .playing .play::after, .loading .play::after,
  .live, .live::after, .live-dot::before, .live-dot::after, .playing .live-eq i { animation: none; }
}
