/* Etar - izgled. Paleta: noćni teget kao staklo skale starog prijemnika, kobalt za stanice, ćilibar samo za iglu i oznaku "uživo". */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  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: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  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 {
  --paper: #EDF0F5;
  --surface: #F8F9FB;
  --surface-2: #E3E8F0;
  --ink: #18203A;
  --muted: #5B657B;
  --line: #D3D9E3;
  --dial: #2340D8;
  --dial-soft: #DCE2FB;
  --on-dial: #FFFFFF;
  --needle: #F2B705;
  --danger: #B73A26;
  --glass: #111936;
  --glass-ink: #C9D2EC;
  --glass-dim: #5E6A92;
  --shadow: 0 1px 0 rgba(24, 32, 58, .06), 0 8px 24px -12px rgba(24, 32, 58, .25);
  --r-sm: 6px;
  --r-md: 10px;
  --rail: 232px;
  --bar-h: 84px;
  --tab-h: 0px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0E1424;
  --surface: #151D33;
  --surface-2: #1D2742;
  --ink: #E6EAF3;
  --muted: #99A3BA;
  --line: #27324F;
  --dial: #7B90FF;
  --dial-soft: #222D55;
  --on-dial: #0E1424;
  --danger: #F08A73;
  --glass: #0A1020;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--dial); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- raspored ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
#rail {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px calc(var(--bar-h) + 16px);
  display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--needle) 0 3px, transparent 3.5px), conic-gradient(from 210deg, var(--dial) 0 300deg, transparent 300deg);
  -webkit-mask: radial-gradient(circle, #000 0 4px, transparent 4px 8px, #000 8px);
  mask: radial-gradient(circle, #000 0 4px, transparent 4px 8px, #000 8px);
}
.brand-name { font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: -.01em; }
#rail nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 560; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current] { color: var(--ink); background: var(--surface); box-shadow: inset 3px 0 0 var(--dial); }
.rail-foot { margin-top: auto; font-size: 13px; color: var(--muted); padding: 0 10px; }

.main { min-width: 0; padding-bottom: calc(var(--bar-h) + var(--tab-h) + 24px); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.search { position: relative; flex: 1; max-width: 640px; }
.search input {
  width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.search input:focus { outline: none; border-color: var(--dial); box-shadow: 0 0 0 3px var(--dial-soft); }
.search button { position: absolute; right: 4px; top: 4px; }
.search-sugg { position: absolute; top: 48px; left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 14px; }
.top-mobile-brand { display: none; }
#settingsTop { margin-left: auto; }
.view { padding: 24px clamp(16px, 4vw, 40px) 0; max-width: 1180px; outline: none; }

/* ---------- tipografija ---------- */
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 760; font-stretch: 118%; letter-spacing: -.012em; }
h2 { font-size: 20px; font-weight: 700; font-stretch: 110%; }
h3 { font-size: 16px; font-weight: 700; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.page-sub { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.kicker { display: inline-block; color: var(--dial); font-weight: 650; text-decoration: none; margin: 0 0 4px; }
.note { color: var(--muted); font-size: 14px; margin: 8px 0; max-width: 72ch; }

/* ---------- sekcije ---------- */
.sec { margin: 34px 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.sec-more { white-space: nowrap; margin-left: auto; color: var(--dial); font-weight: 600; font-size: 14px; text-decoration: none; }
.sec-more:hover { text-decoration: underline; }

/* ---------- dugmad i polja ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--dial); border-color: var(--dial); color: var(--on-dial); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--dial); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-more { display: flex; margin: 16px auto 0; }
.btn.on, .btn-ghost.on { border-color: var(--dial); color: var(--dial); }
.btn .ico { width: 18px; height: 18px; }
.btn-text { background: none; border: 0; color: var(--needle); font-weight: 700; cursor: pointer; padding: 4px 6px; }
.ibtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none;
}
.ibtn:hover { color: var(--ink); background: var(--surface-2); }
.ibtn.on, .ibtn.fav.on { color: var(--dial); }
.ibtn-lg { width: 52px; height: 52px; }
.ibtn-lg .ico { width: 30px; height: 30px; }
.ico { display: inline-block; width: 22px; height: 22px; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.input, .select {
  height: 42px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); min-width: 0;
}
.select { padding-right: 32px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus { outline: none; border-color: var(--dial); box-shadow: 0 0 0 3px var(--dial-soft); }
.input.invalid { border-color: var(--danger); }
.input-sm, .select-sm { height: 36px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filters .input { flex: 1 1 220px; }
.head-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink);
}
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-sm { height: 28px; font-size: 13px; }

/* ---------- omoti ---------- */
.art {
  position: relative; display: block; flex: none; overflow: hidden; border-radius: var(--r-sm);
  background: hsl(var(--h) 45% 38%); color: #fff;
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.art-station img, .station .art img, .st-chip .art img { object-fit: contain; padding: 3px; }
.art-fb { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-stretch: 112%; letter-spacing: .02em; }
.art.has-img .art-fb { display: none; }
.art-xs { width: 28px; height: 28px; border-radius: 5px; } .art-xs .art-fb { font-size: 11px; }
.art-sm { width: 48px; height: 48px; } .art-sm .art-fb { font-size: 16px; }
.art-cover { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); } .art-cover .art-fb { font-size: 34px; }
.art-xl { width: clamp(120px, 22vw, 220px); aspect-ratio: 1; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow); } .art-xl .art-fb { font-size: 48px; }
.art-hero { width: min(340px, 70vw); aspect-ratio: 1; height: auto; border-radius: 14px; box-shadow: var(--shadow); } .art-hero .art-fb { font-size: 72px; }

/* ---------- redovi ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 68px; }
.row-play { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); }
.row-play-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 25, 54, .55); color: #fff; opacity: 0; border-radius: var(--r-sm); transition: opacity .12s; }
.row-play-ico .ico { width: 22px; height: 22px; }
.row-play:hover .row-play-ico, .row-play:focus-visible .row-play-ico, .is-playing .row-play-ico { opacity: 1; }
.is-playing .row-play-ico { background: color-mix(in srgb, var(--dial) 82%, transparent); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 640; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title:hover { text-decoration: underline; }
.is-playing .row-title { color: var(--dial); }
.row-meta { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.is-played .row-title { color: var(--muted); font-weight: 500; }
.mini-prog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 6px; max-width: 220px; overflow: hidden; }
.mini-prog span { display: block; height: 100%; background: var(--dial); }
.snippet { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* brzi izbor stanica */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; max-width: 240px; }
.st-chip span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; }
.st-chip.is-playing { border-color: var(--dial); box-shadow: inset 0 0 0 1px var(--dial); }

/* mreža podkasta */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.tile .art { margin-bottom: 6px; transition: transform .15s; }
.tile:hover .art { transform: translateY(-2px); }
.tile-title { font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- početna: skala ---------- */
.hero { margin: 0 0 8px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.hero-title { font-size: clamp(28px, 3.6vw, 42px); font-stretch: 125%; font-weight: 780; letter-spacing: -.02em; }
.hero-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.dial-box { min-height: 250px; }
.dial {
  background: var(--glass); color: var(--glass-ink); border-radius: 16px; padding: 18px 0 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--shadow);
}
.dial-head { padding: 0 22px 10px; display: flex; justify-content: space-between; gap: 12px; min-height: 66px; }
.dial-name { font-size: clamp(22px, 3vw, 32px); font-weight: 760; font-stretch: 116%; color: #fff; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.dial-sub { color: var(--glass-dim); font-size: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.dial-band { position: relative; }
.dial-scroll {
  display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab;
  height: 118px; outline: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.dial-scroll::-webkit-scrollbar { display: none; }
.dial-scroll:focus-visible { outline: none; }
.dial-scroll:focus-visible + .dial-needle::before { box-shadow: 0 0 0 4px rgba(242, 183, 5, .35); }
.dial-pad {
  flex: none; width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(201, 210, 236, .22) 0 1px, transparent 1px 16px) 0 70px / 100% 14px no-repeat;
}
.dial-track {
  position: relative; flex: none; height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(201, 210, 236, .38) 0 1px, transparent 1px 16px) 0 70px / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(201, 210, 236, .6) 0 1px, transparent 1px 64px) 0 62px / 100% 22px no-repeat;
}
.dial-num { position: absolute; top: 88px; transform: translateX(-50%); font-size: 12px; font-stretch: 75%; color: var(--glass-dim); letter-spacing: .04em; }
.dial-mark { position: absolute; top: 0; width: 64px; height: 84px; margin-left: -32px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.dial-tick { position: absolute; left: 50%; top: 30px; width: 3px; height: 54px; margin-left: -1.5px; border-radius: 2px; background: #6F86FF; opacity: .75; transition: background .15s, height .15s, top .15s; }
.dial-mark:hover .dial-tick { opacity: 1; }
.dial-mark.on .dial-tick { background: #B8C5FF; opacity: 1; top: 24px; height: 60px; }
.dial-label {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 60px;
  font-size: 10.5px; font-stretch: 80%; line-height: 1.15; color: var(--glass-dim); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dial-mark.on .dial-label { color: #fff; }
.dial-needle { position: absolute; left: 50%; top: -4px; bottom: 18px; width: 0; pointer-events: none; }
.dial-needle::before { content: ''; position: absolute; left: -1.5px; top: 0; bottom: 0; width: 3px; background: var(--needle); border-radius: 2px; box-shadow: 0 0 14px rgba(242, 183, 5, .55); }
.dial-needle::after { content: ''; position: absolute; left: -6px; top: -4px; border: 6px solid transparent; border-top: 8px solid var(--needle); }
.dial-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 0; }
.dial-btns { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dial .ibtn { color: var(--glass-ink); }
.dial .ibtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dial .btn { border-color: rgba(201, 210, 236, .25); color: var(--glass-ink); }
.dial .btn.on { border-color: var(--needle); color: var(--needle); }

.cont .rows + .rows { border-top: 0; }

/* ---------- podkast / stanica / epizoda ---------- */
.pod-head { display: flex; gap: clamp(16px, 3vw, 32px); align-items: flex-start; margin-bottom: 22px; }
.pod-info { flex: 1; min-width: 0; }
.pod-info h1 { overflow-wrap: anywhere; }
.pod-author { color: var(--muted); margin: 6px 0 12px; }
.pod-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.desc { color: var(--ink); max-width: 72ch; overflow-wrap: anywhere; }
.desc p { margin: 0 0 .8em; }
.desc a { color: var(--dial); }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 14px; }
.links a { display: inline-flex; gap: 6px; align-items: center; color: var(--dial); text-decoration: none; font-weight: 600; }
.links .ico { width: 16px; height: 16px; }
.ep-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ep-tools .input { flex: 1 1 200px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 650; cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--dial); }
.tab-panel { min-height: 120px; }

.chapters { list-style: none; padding: 0; margin: 0; }
.chapter { display: flex; gap: 14px; width: 100%; text-align: left; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.chapter:hover { background: var(--surface); }
.ch-time { color: var(--dial); font-weight: 650; min-width: 64px; }
.transcript { max-height: 60vh; overflow-y: auto; padding-right: 8px; margin-top: 10px; }
.cue { margin: 0 0 12px; max-width: 72ch; }
.cue-time { border: 0; background: none; color: var(--dial); font-weight: 650; cursor: pointer; padding: 0 8px 0 0; font-size: 13px; }
.cue.now { background: var(--dial-soft); box-shadow: -8px 0 0 var(--dial-soft), 8px 0 0 var(--dial-soft); border-radius: 2px; }
.cue.hit .cue-text { background: color-mix(in srgb, var(--needle) 35%, transparent); }

.songs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.song { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.song-time { color: var(--muted); font-size: 14px; }
.song-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.song-title .muted { font-weight: 400; font-size: 14px; }
.song-links { display: flex; gap: 10px; font-size: 13px; }
.song-links a { color: var(--dial); text-decoration: none; font-weight: 600; }

/* ---------- mapa ---------- */
.map { height: min(68vh, 640px); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-info { min-height: 28px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.map-pop { display: grid; gap: 2px; min-width: 180px; font-family: var(--font); }
.map-pop strong { font-size: 15px; }
.map-pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.leaflet-container { font-family: var(--font); }
.mc { display: grid !important; place-items: center; border-radius: 50%; background: color-mix(in srgb, #2340D8 85%, transparent); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 5px rgba(35, 64, 216, .25); }

/* ---------- plejer na dnu ---------- */
#player {
  position: fixed; left: 0; right: 0; bottom: var(--tab-h); z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(24, 32, 58, .35);
}
.pb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 16px; height: var(--bar-h); padding: 0 18px; }
.pb-main { min-width: 0; }
.pb-open { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }
.pb-text { display: grid; min-width: 0; }
.pb-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.pb-center { display: grid; gap: 4px; justify-items: center; }
.pb-controls { display: flex; align-items: center; gap: 10px; }
.pb-play { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--paper); cursor: pointer; }
.pb-play:hover { background: var(--dial); color: var(--on-dial); }
.pb-play.loading { animation: pulse 1.1s ease-in-out infinite; }
.pb-play-lg { width: 72px; height: 72px; }
.pb-play-lg .ico { width: 32px; height: 32px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px var(--dial-soft); } }
.pb-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; }
.pb-seek.is-live { justify-content: center; }
.time { font-size: 12px; color: var(--muted); min-width: 44px; text-align: center; }
.seek, .vol { -webkit-appearance: none; appearance: none; flex: 1; height: 20px; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track, .vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
.seek::-moz-range-track, .vol::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.seek::-webkit-slider-thumb, .vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--dial); border: 0; }
.seek::-moz-range-thumb, .vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--dial); border: 0; }
.vol { width: 90px; flex: none; }
.pb-extra { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.vol-wrap { display: inline-flex; align-items: center; }
.speed-btn { min-width: 56px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; font-stretch: 110%; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live-dot.on { background: var(--needle); box-shadow: 0 0 0 3px color-mix(in srgb, var(--needle) 30%, transparent); }
.pb-error { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }

/* ---------- plejer preko cijelog ekrana ---------- */
#sheet { position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; }
.sheet-inner { max-width: 1100px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px) 40px; }
.sheet-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 60px); align-items: start; }
.sheet-left { display: grid; justify-items: center; gap: 18px; text-align: center; }
.sheet-meta { display: grid; gap: 4px; max-width: 440px; }
.sheet-title { font-size: clamp(22px, 3vw, 30px); font-stretch: 112%; overflow-wrap: anywhere; }
.sheet-np { font-size: 17px; font-weight: 600; margin: 4px 0 0; }
.sheet-seek { width: min(440px, 100%); }
.sheet-seek .seek { width: 100%; }
.sheet-times { display: flex; justify-content: space-between; }
.sheet-controls { display: flex; align-items: center; gap: 20px; }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sheet-lower h3 { margin-bottom: 10px; }
.rec-on { color: var(--danger) !important; border-color: var(--danger) !important; }
.sheet-lower .tabs { margin-top: 0; }
body.sheet-open { overflow: hidden; }

/* ---------- meni, dijalog, poruke ---------- */
.menu { position: fixed; z-index: 80; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.menu-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus { background: var(--surface-2); outline: none; }
.menu-item.active { color: var(--dial); font-weight: 700; }
.menu-item[disabled] { color: var(--muted); cursor: default; }
.menu-item .ico { width: 18px; height: 18px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 32, .5); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px 22px; }
.modal-body { padding: 6px 22px 16px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 22px 20px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.days legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.day { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500 !important; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + var(--tab-h) + 14px); z-index: 95; display: grid; gap: 8px; justify-items: center; width: min(560px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 15px; transition: opacity .3s, transform .3s; }
.toast-err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--dial); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dial-box .loading { justify-content: center; min-height: 250px; background: var(--glass); border-radius: 16px; color: var(--glass-dim); }
.empty { padding: 26px 0; color: var(--muted); }
.empty p { margin: 0 0 12px; max-width: 60ch; }
.empty.err p { color: var(--danger); }
.list-status:empty { display: none; }

/* ---------- podešavanja ---------- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-label { display: grid; gap: 2px; }
.set-label small { color: var(--muted); font-size: 13px; max-width: 60ch; }
.set-row .input { width: min(360px, 50vw); }
.switch { -webkit-appearance: none; appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.switch:checked { background: var(--dial); }
.switch:checked::after { transform: translateX(18px); }
.btn-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.keys { border-collapse: collapse; }
.keys td { padding: 6px 16px 6px 0; }
kbd { font-family: var(--font); font-weight: 700; font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
.rec-dot { color: var(--danger); display: grid; place-items: center; width: 48px; }
.rec-dot .ico { width: 14px; height: 14px; }

/* ---------- mobilni ---------- */
#tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tab-h: 62px; --bar-h: 68px; }
  .shell { grid-template-columns: 1fr; }
  #rail { display: none; }
  .top-mobile-brand { display: flex; }
  .top-mobile-brand .brand-name { font-size: 19px; }
  #tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  #tabbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); }
  .tab-link { display: grid; justify-items: center; align-content: center; gap: 2px; height: 100%; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
  .tab-link[aria-current] { color: var(--dial); }
  #player { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .pb-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 0 8px 0 12px; gap: 6px; }
  .pb-center { display: flex; }
  .pb-seek, .hide-sm { display: none !important; }
  .pb-extra .ibtn:not(.fav) { display: none; }
  .speed-btn { display: none; }
  .pb-play { width: 44px; height: 44px; }
  .pod-head { flex-direction: column; }
  .sheet-body { grid-template-columns: 1fr; }
  .song { grid-template-columns: 46px 1fr; }
  .song-links { grid-column: 2; }
  .set-row { flex-wrap: wrap; }
  .set-row .input { width: 100%; }
  .view { padding-top: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .dial-name, .dial-sub { max-width: 86vw; }
}
@media (max-width: 520px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .top-mobile-brand .brand-name { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px; }
  .row-actions .ibtn:not(:last-child):not(:first-child) { display: none; }
  .hero-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .dial-needle::before { background: Highlight; }
  .switch:checked { background: Highlight; }
}
