/* Radiofy – sötét dizájn */
:root {
  --bg: #0B0D17;
  --surface: #161A2B;
  --surface2: #1C2036;
  --line: #1F2338;
  --line2: #2A2F4A;
  --text: #F2F1F8;
  --text2: #C9CADB;
  --muted: #9A9DB5;
  --accent: #FF6B3D;
  --accent-text: #FF8A63;
  --wave: #8F7BFF;
  --online-bg: #2A2350; --online-fg: #C4B9FF;
  --fm-bg: #1D2A40; --fm-fg: #9FC3FF;
  --radius: 18px;
  --head: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.5px; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Fejléc */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.brand:hover { color: var(--text); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; font-size: 15px; }
.menu a { color: var(--text2); padding: 6px 0; }
.menu a.on, .menu a:hover { color: var(--text); }
.menu a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.search { flex: 1 1 240px; max-width: 380px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
@media (max-width: 720px) { .search { max-width: none; order: 3; flex-basis: 100%; } }

main.wrap { flex: 1; padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }

/* Logó-kocka */
.tile { --tile: #444; position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: var(--tile); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-family: var(--head); font-weight: 700; font-size: 22px; }
.tile .ini { line-height: 1; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.tile img[src*=".dark."] { background: #1B2036; }
.tile.xs { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.tile.xs img { padding: 3px; }
.tile.sm { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.tile.xl { width: 112px; height: 112px; border-radius: 22px; font-size: 40px; }
.tile.sq { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; font-size: 34px; }
.tile.sq img { padding: 12%; }
.tile.hero { width: 200px; height: 200px; border-radius: 36px; font-size: 72px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.tile.hero img { padding: 10%; }
@media (max-width: 600px) { .tile.hero { width: 120px; height: 120px; border-radius: 26px; font-size: 44px; } }

/* Gombok */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-primary.big { height: 56px; font-size: 17px; padding: 0 30px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid #343A5C; background: transparent; font-weight: 600; font-size: 15px; }
.btn-ghost.small { height: 44px; padding: 0 16px; font-size: 14px; }
.btn-ghost[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent); }
.btn-ghost[aria-pressed="true"] svg { fill: currentColor; }
.play-round { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: #23284A; display: inline-flex; align-items: center; justify-content: center; }
.play-round:hover { background: var(--accent); color: #fff; }
.play-round.playing { background: var(--accent); color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--text2); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
.icon-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Címkék */
.badge { flex-shrink: 0; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge.online, .tag.online { background: var(--online-bg); color: var(--online-fg); }
.badge.fm, .tag.fm { background: var(--fm-bg); color: var(--fm-fg); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,107,61,.16); color: var(--accent-text); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { height: 38px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; border: 1px solid var(--line2); background: var(--surface); color: #E3E2EE; }
.chips a.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Főoldal – nyitó rész */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-text); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -2px; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text2); max-width: 640px; }
.feature { flex: 1 1 360px; min-width: 0; border-radius: 24px; padding: 26px; background: linear-gradient(150deg, #22284A 0%, var(--surface) 60%); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 18px; }
.feature-top { display: flex; justify-content: space-between; align-items: center; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.feature-st { display: flex; gap: 18px; align-items: center; min-width: 0; }
.feature-st > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feature-st strong { font-family: var(--head); font-size: 24px; }
.feature-st small { color: var(--muted); font-size: 14px; }
.now-line { display: flex; color: #E3E2EE; font-size: 15px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.bars i { flex: 1; border-radius: 3px; background: var(--accent); opacity: .9; transform-origin: bottom; }
.bars i:nth-child(n+27) { background: #3A4066; }
body.is-playing .bars i { animation: bar 1.1s ease-in-out infinite alternate; }
.bars i:nth-child(3n) { animation-delay: -.3s; } .bars i:nth-child(3n+1) { animation-delay: -.7s; }
@keyframes bar { to { transform: scaleY(.45); } }

/* Szakaszok */
.block { display: flex; flex-direction: column; gap: 18px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.block-head h2 { font-size: 28px; }
.block-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.block-head a { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.block-head.small h2 { font-size: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 20px; }

/* Rácsok és kártyák */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.card:hover { border-color: #343A5C; }
.card-link { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: center; }
.card-link:hover { color: var(--text); }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.card-now { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); min-width: 0; }
.card-now svg, .st-now svg { color: var(--accent-text); flex-shrink: 0; }
.big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.big-card { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.big-card a { display: flex; flex-direction: column; gap: 10px; }
.big-card strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-card small { font-size: 12px; color: var(--muted); margin-top: -6px; }
.play-round.on-tile { position: absolute; top: 22px; right: 22px; background: rgba(11,13,23,.7); backdrop-filter: blur(6px); }
.fav-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.fav-row a { width: 96px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 13px; color: var(--text2); text-align: center; }
.fav-row .tile { width: 96px; height: 96px; border-radius: 22px; font-size: 30px; }
.fav-row span.ell { width: 96px; }

.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.recent a { display: flex; gap: 12px; align-items: center; min-width: 0; }
.recent a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.recent .strong { font-size: 14px; font-weight: 500; }
.recent small { font-size: 12px; color: var(--muted); }

/* Listaoldal */
.list-head { display: flex; flex-direction: column; gap: 14px; }
.list-head h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -1.5px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort span { margin-right: auto; }
.sort a { padding: 7px 14px; border-radius: 999px; color: var(--muted); }
.sort a.on { background: var(--surface); border: 1px solid var(--line2); color: var(--text); }

/* Rádió aloldal */
.crumbs { margin: 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: #E3E2EE; }
.st-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: -16px; padding: 28px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,107,61,.18) 0%, rgba(22,26,43,.6) 70%); border: 1px solid var(--line); }
.st-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.st-info h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--surface2); color: var(--text2); }
.st-now { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; color: #E3E2EE; min-width: 0; }
.st-now strong { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.history time { width: 48px; flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 22px; margin-top: 8px; }
.prose p { margin: 0; color: var(--text2); line-height: 1.7; }
.prose a { color: var(--accent-text); }
.prose.narrow { max-width: 760px; }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.facts dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.facts a { color: var(--accent-text); }

/* Most szól oldal */
.now-table { list-style: none; margin: 0; padding: 0; }
.now-table li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.now-table li:first-child { border-top: 0; }
.now-table a { display: flex; align-items: center; gap: 12px; flex: 0 1 260px; min-width: 0; }
.nt-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-song { flex: 1; min-width: 0; display: flex; color: var(--text2); }
@media (max-width: 640px) { .now-table li { flex-wrap: wrap; } .now-table a { flex-basis: calc(100% - 60px); } .nt-song { order: 3; flex-basis: 100%; padding-left: 52px; } }

/* Hirdetés */
.ad { display: flex; justify-content: center; overflow: hidden; }

/* Lábléc */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: calc(var(--pbar, 0px) + 28px); font-size: 13px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

/* Lejátszósáv */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(17,20,36,.96); border-top: 1px solid #262B45; backdrop-filter: blur(12px); }
.player-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.pl-station { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.pl-station:hover { color: var(--text); }
.pl-text { display: flex; flex-direction: column; min-width: 0; }
.pl-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-now { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-big { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.play-big .i-pause { display: inline-flex; }
.play-big .i-play { display: none; }
.player.paused .play-big .i-pause { display: none; }
.player.paused .play-big .i-play { display: inline-flex; }
.spinner { display: none; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; }
.player.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.vol { display: flex; align-items: center; gap: 10px; color: var(--text2); width: 170px; }
.vol input { flex: 1; accent-color: var(--text); }
@media (max-width: 640px) { .vol { display: none; } #pl-fav { display: none; } }
.pl-msg { max-width: 1280px; margin: 0 auto; padding: 0 20px 10px; font-size: 13px; color: var(--accent-text); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pl-msg a { color: var(--text); text-decoration: underline; }
