/* =========================================================
   SKALA — online radio Srbije
   Dve teme: dark (default) / light
   ========================================================= */

:root {
  --bg:        #0B0B0C;
  --bg-elev:   #131316;
  --surface:   #1C1C20;
  --surface-2: #2A2A30;
  --line:      #2E2E36;
  --line-soft: #242429;
  --text:      #FFFFFF;
  --text-2:    #B4B4BE;
  --text-3:    #94949E;
  --accent:    #FF5A2E;
  --accent-ink:#0B0B0C;
  --art-pad:   #F4F4F5;
  --shadow:    0 8px 28px -10px rgba(0,0,0,.75);
  --shadow-art:0 6px 18px -8px rgba(0,0,0,.7);
  --r:   12px;
  --r-sm: 8px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --player-h: 84px;
  --dial-h: 76px;
  --tick: 16px;           /* visina kratke crtice na skali */
  --tick-big: 32px;       /* visina crtice na punom broju */
  --rail-w: 288px;
  --pad-x: 32px;          /* bočna margina glavnog dela */
  --ease: cubic-bezier(.2,.7,.3,1);
}

[data-skin="light"] {
  --bg:        #FFFFFF;
  --bg-elev:   #FFFFFF;
  --surface:   #F6F6F7;
  --surface-2: #EDEDEF;
  --line:      #DFDFE4;
  --line-soft: #E9E9ED;
  --text:      #14110F;
  --text-2:    #5A5A63;
  --text-3:    #6A6A74;
  --accent:    #D93A16;
  --accent-ink:#FFFFFF;
  --art-pad:   #F4F4F5;
  --shadow:    0 8px 26px -12px rgba(15,15,20,.22);
  --shadow-art:0 4px 14px -6px rgba(15,15,20,.2);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + var(--dial-h));
}

/* ---------- Sidebar ---------- */
.rail {
  padding: 24px 16px 28px;
  position: sticky; top: 0;
  height: calc(100vh - var(--player-h) - var(--dial-h));
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line-soft);
}
.rail::-webkit-scrollbar { width: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }

/* ---------- Logotip ----------
   Zvanični znak iz brend kompleta (assets/img). Ide kao pozadina, pa se
   svetla i tamna verzija menjaju samo preko CSS-a — bez JS-a, i putanje
   važe i sa stranica stanica jer su relativne u odnosu na ovaj fajl. */
/* Sajdbar: pun lockup sa sloganom (338 × 80) */
.brand {
  display: block; padding: 0 8px; margin: 0 0 22px;
  width: 212px; height: 50px;
  background: url('../img/skala-lockup-dark.svg') no-repeat left center / contain;
}
[data-skin="light"] .brand { background-image: url('../img/skala-lockup-light.svg'); }

/* Zaglavlje i podnožje stranica stanica: uža verzija bez slogana (271 × 58) */
.site-head .brand, .site-foot .brand {
  width: 168px; height: 36px; margin-bottom: 0;
  background-image: url('../img/skala-lockup-notagline-dark.svg');
}
[data-skin="light"] .site-head .brand,
[data-skin="light"] .site-foot .brand {
  background-image: url('../img/skala-lockup-notagline-light.svg');
}

.nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 26px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
  text-align: left; width: 100%;
}
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item[aria-pressed="true"] { color: var(--text); background: var(--surface); }
.nav-item[aria-pressed="true"] svg { color: var(--accent); }
/* Omotač ikonice je blok sa linijskom kutijom višom od same ikonice, pa je
   SVG sedeo 3px iznad sredine reda. Flex ga centrira u odnosu na tekst. */
.nav-item > span[aria-hidden] { display: flex; align-items: center; flex: none; }
.nav-item svg { flex: none; color: var(--text-3); transition: color .15s var(--ease); }
.nav-item:hover svg { color: var(--text-2); }
.nav-item__n { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-3); }

.group { margin-bottom: 24px; }
.group__title {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3);
  margin: 0 0 10px; padding: 0 10px;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 8px; }
.chip {
  font-size: 12.5px; padding: 7px 12px;
  border-radius: 6px; color: var(--text-2);
  background: var(--surface);
  transition: background .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip__n { font-family: var(--mono); font-size: 9.5px; opacity: .5; margin-left: 5px; }

.select {
  /* Puna širina, kao .nav-item iznad — inače dropdown ispada uži od menija. */
  width: 100%; margin: 0;
  padding: 9px 30px 9px 11px; border-radius: var(--r-sm);
  background-color: var(--surface); border: 0; font-size: 13px; color: var(--text);
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.rail__foot {
  padding: 18px 10px 0; margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-3); line-height: 2;
}
.rail__foot kbd {
  font-family: var(--mono); font-size: 10px; background: var(--surface);
  padding: 1px 5px; border-radius: 4px; color: var(--text-2);
}

/* ---------- Topbar ---------- */
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  padding: 16px var(--pad-x); display: flex; align-items: center; gap: 14px;
}
.search {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: var(--r); padding: 0 15px; height: 42px;
  transition: box-shadow .16s var(--ease);
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search input { flex: 1; background: none; border: 0; outline: none; font-size: 14px; min-width: 0; }
.search input::placeholder { color: var(--text-3); }
.search__icon { color: var(--text-3); display: flex; flex: none; }
.search__clear { color: var(--text-3); font-size: 19px; line-height: 1; padding: 0 2px; }
.search__clear:hover { color: var(--text); }

.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2);
  background: var(--surface); flex: none;
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--bare { background: none; }
#themeBtn { margin-left: auto; }
.icon-btn--bare:hover { background: var(--surface); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }

/* ---------- Obaveštenje ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 var(--pad-x) 16px; padding: 12px 15px;
  border-radius: var(--r); background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
}
.notice code {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--text);
}
.notice button { margin-left: auto; color: var(--text-3); font-size: 18px; line-height: 1; flex: none; }
.notice button:hover { color: var(--text); }

/* ---------- Head ---------- */
.head {
  padding: 12px var(--pad-x) 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.head__title { margin: 0 0 2px; font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.head__count { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.sortbar { display: flex; align-items: center; gap: 8px; }
.sortbar label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.sortbar .select { width: auto; margin: 0; padding: 7px 30px 7px 11px; font-size: 12.5px; background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 6px;
  padding: 0 calc(var(--pad-x) - 14px) 72px;
}

.card {
  position: relative;
  display: block; text-align: left; width: 100%;
  padding: 14px 14px 16px;
  border-radius: var(--r);
  background: transparent;
  transition: background .18s var(--ease);
}
.card:hover, .card:focus-within { background: var(--surface); }

/* Providno dugme preko cele kartice — nosi „pusti". Sedi ispod srca i
   ⓘ linka (z-index 2), pa oni hvataju svoj klik pre njega. */
.card__play {
  position: absolute; inset: 0; z-index: 1;
  border-radius: var(--r); cursor: pointer;
  background: transparent; border: 0;
}
.card__play:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.card__info {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .16s var(--ease), color .16s var(--ease);
}
.card:hover .card__info, .card__info:focus-visible { opacity: 1; }
.card__info:hover { color: var(--accent); }

.art {
  display: block;
  position: relative; aspect-ratio: 1; width: 100%;
  border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-art); margin-bottom: 13px;
  background-size: cover; background-position: center;
}
.art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 15%; background: var(--art-pad);
}
.art__fab {
  position: absolute; right: 8px; bottom: 8px;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  pointer-events: none;
}
.card:hover .art__fab, .card:focus-visible .art__fab, .card.is-current .art__fab { opacity: 1; transform: none; }

.card__name {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.012em;
  margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
  overflow: hidden;
}
.card.is-current .card__name { color: var(--accent); }
.card__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta {
  display: block;
  font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card__fav {
  position: absolute; cursor: pointer; top: 20px; left: 20px; z-index: 2;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .16s var(--ease), color .16s var(--ease);
}
.card:hover .card__fav, .card__fav.is-on, .card__fav:focus-visible { opacity: 1; }
.card__fav.is-on { color: var(--accent); }

/* equalizer */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.eq i { width: 2px; background: var(--accent); border-radius: 1px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.5s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.25s; }
.eq i:nth-child(3) { height: 65%; }
@keyframes eq { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--text-3); }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; font-weight: 600; }

/* ---------- Podnožje aplikacije ---------- */
.app-foot {
  margin: 16px var(--pad-x) 64px; padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.app-foot nav { display: flex; gap: 20px; font-size: 13px; }
.app-foot nav a { color: var(--text-2); text-decoration: none; }
.app-foot nav a:hover { color: var(--accent); }
.app-foot p { margin: 0 auto; font-size: 12px; color: var(--text-3); max-width: 60ch; line-height: 1.6; }
.app-foot p a { color: var(--text-2); }
.app-foot p a:hover { color: var(--accent); }

/* ---------- Player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--player-h) + var(--dial-h));
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.player__row {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 22px; padding: 0 26px;
}
.player__progress {
  position: absolute; top: var(--dial-h); left: 0; height: 2px; width: 0;
  background: var(--accent); opacity: 0;
}
.player.is-loading .player__progress { opacity: 1; animation: load 1.1s var(--ease) infinite; }
@keyframes load { 0% { width: 0; left: 0; } 50% { width: 45%; } 100% { width: 0; left: 100%; } }

/* Skala — sada trajno vidljiva na vrhu plejera, umesto na vrhu stranice */
.dial {
  position: relative; height: var(--dial-h); overflow: hidden; flex: none;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 65%, transparent) 0%, transparent 88%);
}
.dial__ticks { position: absolute; inset: 0; }
.dial__ticks b {
  position: absolute; bottom: 26px; width: 1px; height: var(--tick);
  background: currentColor; color: var(--text-2); opacity: .45;
}
.dial__ticks b.big { height: var(--tick-big); opacity: .8; }
.dial__ticks u {
  position: absolute; bottom: 7px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9.5px; color: var(--text-3);
  text-decoration: none; letter-spacing: .02em;
}
.dial__needle {
  position: absolute; bottom: 26px; top: 22px; width: 2px;
  background: var(--text-3); left: 50%; border-radius: 2px;
  transition: left .8s var(--ease), background .3s var(--ease);
}
.dial__needle::before {
  content: ""; position: absolute; bottom: -4px; left: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); transition: background .3s var(--ease);
}
.dial.is-live .dial__needle,
.dial.is-live .dial__needle::before { background: var(--accent); }
.dial.is-live .dial__needle { box-shadow: 0 0 16px 1px var(--accent); }
.dial__label {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2);
  padding: 0 6px;
  white-space: nowrap; transition: left .8s var(--ease);
}

.now { display: flex; align-items: center; gap: 13px; min-width: 0; }
.now__art {
  width: 54px; height: 54px; border-radius: var(--r-sm); flex: none;
  overflow: hidden; position: relative; background-size: cover; background-position: center;
  box-shadow: var(--shadow-art);
}
.now__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; background: var(--art-pad); }
.now__txt { min-width: 0; }
.now__name { font-size: 14px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__sub {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 8px; margin-top: 3px;
}
/* Naziv pesme (kad ga stanica šalje) — svetliji od žanra i grada,
   i skraćuje se sa tri tačke umesto da gura dugmad plejera. */
#np { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#np.is-song { color: var(--text); }

.live { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--accent); font-weight: 500; }
.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.transport { display: flex; align-items: center; gap: 12px; }
.btn-play {
  width: 50px; height: 50px; border-radius: var(--r);
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  transition: transform .14s var(--ease);
}
.btn-play:hover { transform: scale(1.07); }
.btn-play:active { transform: scale(.96); }
.btn-step {
  width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--text-2); transition: color .15s var(--ease), background .15s var(--ease);
}
.btn-step:hover { color: var(--text); background: var(--surface); }

.player__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.volume { display: flex; align-items: center; gap: 8px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 92px; height: 18px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--vol,80%), var(--surface-2) var(--vol,80%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--text); margin-top: -3.5px; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--text); }

.sleep-wrap { position: relative; }
.sleep-menu {
  position: absolute; bottom: 46px; right: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; min-width: 154px;
}
.sleep-menu button { display: flex; justify-content: space-between; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); }
.sleep-menu button:hover { background: var(--surface-2); color: var(--text); }
.sleep-count { font-family: var(--mono); font-size: 10px; color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(14px);
  bottom: calc(var(--player-h) + var(--dial-h) + 18px); z-index: 90;
  background: var(--text); color: var(--bg);
  padding: 10px 17px; border-radius: var(--r); font-size: 12.5px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .26s var(--ease);
  box-shadow: var(--shadow); max-width: 90vw; text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.rail-toggle { display: none; }
.scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --player-h: 74px; --dial-h: 54px; --tick: 11px; --tick-big: 21px; }
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; width: 276px; z-index: 80;
    height: 100%; background: var(--bg-elev);
    transform: translateX(-100%); transition: transform .3s var(--ease);
    box-shadow: var(--shadow);
  }
  .rail.is-open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .scrim.is-on { opacity: 1; pointer-events: auto; }
  .rail-toggle { display: grid; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .notice { margin: 0 16px 12px; }
  .head { padding: 10px 18px 20px; }
  .head__title { font-size: 24px; }
  .app-foot { margin: 12px 18px 48px; }
  .grid { padding: 0 8px 28px; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); }
  .card { padding: 10px 10px 13px; }
  .art { margin-bottom: 11px; }
  .card__fav { top: 16px; left: 16px; opacity: 1; background: rgba(0,0,0,.4); }
  /* Nema hovera na dodiru — ⓘ mora da bude stalno vidljiv. */
  .card__info { top: 16px; right: 16px; opacity: 1; background: rgba(0,0,0,.4); }
  /* Podsetnik na tastaturne prečice nema svrhu na telefonu. */
  .rail__foot { display: none; }
  .player__row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 0 12px; }
  .player__right { display: none; }
  .dial__label { display: none; }
  .dial__ticks u { display: none; }
  .dial__ticks b { bottom: 11px; }
  .dial__needle { top: 12px; bottom: 11px; }
  .now__art { width: 46px; height: 46px; }
  .btn-play { width: 44px; height: 44px; }
  .btn-step { display: none; }
  .sortbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Statične stranice (stanica/, o-sajtu/, …)
   ========================================================= */
body.page { display: flex; flex-direction: column; min-height: 100vh; }

.site-head {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 34px; border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
}
.brand--link { text-decoration: none; padding: 0; margin: 0; }
.site-nav { display: flex; gap: 20px; font-size: 13.5px; }
.site-nav a { color: var(--text-2); text-decoration: none; transition: color .15s var(--ease); }
.site-nav a:hover { color: var(--text); }
.site-head .icon-btn { margin-left: auto; }

.crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  margin-bottom: 22px; display: flex; gap: 8px; align-items: center;
}
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.station, .page-body { max-width: 1000px; margin: 0 auto; padding: 38px 34px 84px; width: 100%; flex: 1; }

.station__hero {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.station__art {
  width: 176px; height: 176px; flex: none; position: relative;
  border-radius: var(--r); overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.station__art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 14%; background: var(--art-pad);
}
.station__intro { flex: 1; min-width: 260px; }
.station__intro h1 {
  margin: 0 0 14px; font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 700; letter-spacing: -.042em; line-height: 1.03;
  text-wrap: balance;
}
.station__intro h1 span { color: var(--text-3); font-weight: 500; }
.station__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.station__chips .chip { text-decoration: none; }
.chip--static { cursor: default; }
.chip--static:hover { background: var(--surface); color: var(--text-2); }

.station__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-listen {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px 0 20px; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .14s var(--ease), filter .14s var(--ease);
}
.btn-listen:hover { transform: scale(1.03); filter: brightness(1.06); }
.btn-listen:active { transform: scale(.98); }
.btn-listen__icon { display: flex; }
.btn-ghost {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  border-radius: var(--r); background: var(--surface); color: var(--text-2);
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.station__status {
  margin: 16px 0 0; font-family: var(--mono); font-size: 11.5px;
  color: var(--text-2); min-height: 17px;
  display: flex; align-items: center; gap: 8px;
}

.station__cols {
  display: grid; grid-template-columns: 1fr 268px; gap: 40px;
  margin-bottom: 48px; align-items: start;
}

.prose { max-width: 62ch; }
.prose--wide { max-width: 68ch; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -.04em; margin: 0 0 18px; line-height: 1.06; text-wrap: balance; }
.prose h2 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: var(--text-2); line-height: 1.65; }
.prose .lede { font-size: 16.5px; color: var(--text); line-height: 1.55; margin-bottom: 26px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: 2px 6px; border-radius: 5px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: normal; color: var(--text); font-weight: 500; }

.specs {
  background: var(--surface); border-radius: var(--r);
  padding: 20px; position: sticky; top: 88px;
}
.specs h2 {
  margin: 0 0 14px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 500;
}
.specs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 13px; }
.specs dt { color: var(--text-3); }
.specs dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text); }
.specs__note { margin: 16px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.55; }

.related h2 { font-size: 19px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 14px; }
.grid--rel { padding: 0; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
.grid--rel .card { text-decoration: none; }

.site-foot { border-top: 1px solid var(--line-soft); padding: 40px 34px 30px; margin-top: auto; }
.site-foot__in {
  max-width: 1000px; margin: 0 auto; display: flex; gap: 40px;
  justify-content: space-between; flex-wrap: wrap;
}
.site-foot p { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.site-foot nav a { color: var(--text-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--accent); }
.site-foot__fine {
  max-width: 1000px; margin: 26px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--text-3);
}

@media (max-width: 820px) {
  .site-head { padding: 13px 16px; gap: 14px; }
  .site-nav { display: none; }
  .station, .page-body { padding: 22px 16px 56px; }
  .station__hero { gap: 20px; padding-bottom: 26px; margin-bottom: 26px; }
  .station__art { width: 116px; height: 116px; }
  .station__cols { grid-template-columns: 1fr; gap: 30px; }
  .specs { position: static; }
  .site-foot { padding: 28px 16px 22px; }
  .grid--rel { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
}

/* ---------- Spisak svih stanica (/stanice/) ---------- */
.spisak {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.spisak li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 8px; border-radius: var(--r-sm);
}
.spisak li:hover { background: var(--surface); }
.spisak a { text-decoration: none; color: var(--text); font-size: 13.5px; }
.spisak a:hover { color: var(--accent); }
.spisak li span {
  margin-left: auto; font-size: 11px; color: var(--text-3);
  white-space: nowrap;
}
.spisak__n {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--text-3); margin-left: 6px;
}
