:root {
  color-scheme: dark;
  --bg: #090b20;
  --panel: #12162e;
  --ink: #f5f6ff;
  --soft: #b6bed6;
  --line: #323850;
  --aqua: #75e5fa;
  --accent: linear-gradient(100deg,#76edff,#92b5ff 53%,#d2a8ff);
  font-family: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding: 12px }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 84% 6%,#16183a,transparent 47%),var(--bg) }
h1,h2,p { margin: 0 }
button,input { font: inherit }
button,a,input { touch-action: manipulation }
button { cursor: pointer; color: inherit }
a { text-decoration: none; color: inherit }
a:hover { text-decoration: underline }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px }
.shell { width: min(100% - 32px, 960px); margin-inline: auto }
.top { background: #090b20; border-bottom: 1px solid #252842 }
.bar,nav,.controls,.volume,.times,.sectionhead,.tabs,.schedule-note,footer { display: flex; align-items: center }
.bar, .times, .sectionhead, .schedule-note,footer { justify-content: space-between }
.bar { min-height: 58px }
.brand { display: flex; align-items: center; min-height: 44px }
.brand img { width: 130px; height: auto }
nav { gap: 10px }
nav a { padding: 12px 5px; min-height: 44px; align-content: center; color: #d7dcee; font-weight: 550; font-size: .875rem }
#radio { margin-top: 12px }
.mast { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px 16px 0 0; background: #141a36 }
.mast picture,.mast img,.mast::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1 }
.mast img { object-fit: cover; object-position: center 24% }
.mast::after { content: ""; background: linear-gradient(90deg,rgba(8,12,34,.97) 0%,rgba(12,15,39,.86) 38%,rgba(12,15,39,.18) 83%),linear-gradient(0deg,rgba(10,13,32,.44),transparent 68%) }
.mast-copy { padding: 21px 18px }
h1 { font-size: clamp(1.85rem,6.8vw,3.75rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 750 }
.mast-copy p { margin-top: 7px; color: #dce3f8; font-size: .83rem }
.receiver { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; column-gap: 16px; row-gap: 15px; padding: 18px; border: 1px solid #363c60; border-top: 2px solid transparent; border-radius: 0 0 16px 16px; background: linear-gradient(117deg,#151a35,#12152c) padding-box,linear-gradient(95deg,#5fdaff,#7578ee 55%,#e090ee) border-box }
.record img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; background: #222944 }
.info { min-width: 0 }
.on-air { display: flex; align-items: center; gap: 7px; text-transform: uppercase; font-size: .69rem; letter-spacing: .14em; font-weight: 750; color: var(--aqua) }
.on-air i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua) }
#title { line-height: 1.12; font-size: clamp(1.22rem,4.7vw,2.6rem); letter-spacing: -.04em; overflow-wrap: anywhere; margin-top: 6px }
.playback { grid-column: 1/-1; min-width: 0 }
.times,.rowtime,.runtime,.schedule-note time { font-variant-numeric: tabular-nums }
.times { margin: 5px 0 10px; font-size: .75rem; color: var(--soft) }
.controls { flex-direction: column; align-items: stretch; gap: 2px }
#play { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; border: 0; border-radius: 9px; background: var(--accent); color: #0a1230; font-weight: 750 }
#play:hover { filter: brightness(1.07) }
.volume { gap: 10px; justify-content: center; color: var(--soft) }
#status:not(:empty) { margin-top: 8px; color: #e2d5ff; font-size: .87rem }
#lista,#kanava { margin-top: 30px }
.sectionhead { gap: 10px; flex-wrap: wrap }
.sectionhead h2,#kanava h2 { letter-spacing: -.045em; font-size: 1.5rem }
.tabs { gap: 2px; padding: 2px; background: #14192e; border: 1px solid var(--line); border-radius: 9px }
.tabs button { min-height: 44px; padding: 0 10px; font-size: .79rem; font-weight: 600; border: 0; border-radius: 6px; background: transparent; color: var(--soft) }
.tabs [aria-pressed=true] { color: #e9f5ff; background: #343e62 }
#queue { padding: 0; list-style: none; margin: 12px 0 8px }
.row { display: grid; grid-template-columns: 40px 40px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 60px; border-top: 1px solid var(--line) }
.row:last-child { border-bottom: 1px solid var(--line) }
.row img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover }
.rowtime,.runtime { font-size: .78rem; color: var(--soft) }
.rowtime { color: var(--aqua) }
.row strong { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.25; font-weight: 620 }
.schedule-note { flex-wrap: wrap; gap: 5px 14px; color: var(--soft); font-size: .74rem }
#kanava { border-top: 1px solid var(--line); padding: 24px 0 }
#kanava p { max-width: 61ch; color: var(--soft); line-height: 1.55; margin: 10px 0 6px }
#kanava a { display: inline-flex; align-items: center; min-height: 44px; color: var(--aqua); font-weight: 600 }
footer { padding: 16px 0 max(20px,env(safe-area-inset-bottom)); color: var(--soft); font-size: .82rem; border-top: 1px solid var(--line) }
@media (min-width: 520px) {
  .controls { flex-direction: row; align-items: center; gap: 14px }
  #play { flex: 1; padding-inline: 20px }
}
@media (min-width: 700px) {
  .shell { width: min(100% - 64px,960px) }
  .bar { min-height: 68px }
  .brand img { width: 159px }
  nav { gap: 24px }
  #radio { margin-top: 24px }
  .mast-copy { padding: 36px }
  .mast-copy p { font-size: 1rem }
  .receiver { grid-template-columns: minmax(160px,25%) minmax(0,1fr); padding: 26px 36px; gap: 12px 32px; align-content: center }
  .record { grid-row: 1/3 }
  .playback { grid-column: 2 }
  .info { align-self: end }
  .playback { align-self: start }
  #play { flex: 0 1 auto }
  .controls { justify-content: space-between }
  #lista { margin-top: 36px }
  .row { grid-template-columns: 58px 44px minmax(0,1fr) auto; gap: 16px; min-height: 64px }
  .row strong { font-size: 1rem }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
#symbol { display: inline-block; width: 12px; height: 12px; flex: 0 0 auto }
#symbol[data-shape="play"] { width: 0; height: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor }
#symbol[data-shape="pause"] { border-inline: 4px solid currentColor }
#symbol[data-shape="stop"] { background: currentColor }
@font-face { font-family: Inter; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap }
@font-face { font-family: Montserrat; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 400 800; font-display: swap }
:root { font-family: Inter, Arial, sans-serif }
h1,h2 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; letter-spacing: -.045em }
h1 { line-height: .98 }
nav { gap: 5px }
#language,#info,#dismiss { color: var(--ink); background: var(--panel); border: 1px solid var(--line); font: inherit; border-radius: 9px }
#language { min-height: 44px; font-size: .83rem; padding: 0 4px; cursor: pointer }
#info,#dismiss { width: 44px; height: 44px; padding: 0; cursor: pointer }
#info { border: 0; background: none }
#info span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--aqua); color: var(--aqua); border-radius: 50%; font: bold 16px/1 Georgia,serif }
#kanava { position: fixed; margin: auto; padding: 24px; border: 1px solid #454e73; background: #171b36; color: var(--ink); border-radius: 15px; width: min(440px,calc(100% - 32px)); max-height: 85dvh; box-shadow: 0 20px 80px #0008 }
#kanava::backdrop { background: #050717c9 }
#kanava form { float: right; margin: -7px -7px 0 8px }
#kanava h2 { min-height: 37px; line-height: 1.2; display: flex; align-items: center }
#dismiss { font-size: 24px; line-height: 1 }
#lista { padding-bottom: 28px }
#play { position: relative; width: 50px; height: 50px; flex: none; padding: 0; border-radius: 50% }
.controls { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px }
#symbol[data-shape="stop"] { width: 14px; height: 14px; border-radius: 1px }
#action { display: none; position: absolute; z-index: 2; left: 0; bottom: calc(100% + 7px); width: max-content; max-width: 200px; font-size: .8rem; padding: 6px 10px; background: #080b1c; color: white; border: 1px solid #586480; border-radius: 5px; pointer-events: none }
#play:focus-visible #action { display: block }
@media (hover: hover) { #play:hover #action { display: block } }
@media (max-width: 420px) { .brand img { width: clamp(80px,26vw,112px) } nav a { font-size: .76rem; padding-inline: 2px } }

.track-meta { color: #c8d1ec; font-size: clamp(.88rem, 2.6vw, 1.1rem); line-height: 1.35; margin: 5px 0 0; overflow-wrap: anywhere }
.row-details { min-width: 0; padding-block: 7px }
.row-details strong, .row-meta { display: block }
.row-meta { margin-top: 3px; color: var(--soft); font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere }

.timeline { position: relative; height: 40px; margin-top: 3px; --played: 0%; }
.wave-bars, .wave-played { position: absolute; inset: 0 }
.wave-bars { display: flex; align-items: center; justify-content: space-between; gap: 1px }
.wave-bars b { min-width: 0; flex: 1; max-width: 4px; background: #56617f; border-radius: 3px }
.wave-played { clip-path: inset(0 calc(100% - var(--played)) 0 0) }
.wave-played b { background: #7ddff3 }
.wave-played b:nth-child(n+49) { background: #97c8ff }
.wave-played b:nth-child(n+97) { background: #b6afff }
.playhead { position: absolute; left: clamp(1px,var(--played),calc(100% - 1px)); top: 0; bottom: 0; width: 2px; background: #f4fbff; border-radius: 2px; box-shadow: 0 0 7px #81bffa80 }
.playhead::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; left: -2px; top: -2px; background: #e9f6ff }
@media (max-width: 519px) {
  .timeline { height: 32px }
  .wave-bars b:nth-child(even) { display: none }
}

.volume { gap: 4px; padding: 0 10px 0 12px; min-width: 0; border: 1px solid #333d60; border-radius: 24px; background: #10152c }
.level-bank { display: inline-flex; align-items: flex-end; gap: 2px; height: 17px; width: 22px }
.level-bank i { flex: 1; background: #46516d; height: 24%; border-radius: 2px }
.level-bank i:nth-child(2) { height: 38% }
.level-bank i:nth-child(3) { height: 52% }
.level-bank i:nth-child(4) { height: 66% }
.level-bank i:nth-child(5) { height: 82% }
.level-bank i:nth-child(6) { height: 100% }
.level-bank i.lit { background: #74e3ef }
.level-bank i:nth-child(n+4).lit { background: #aeafff }
#mute { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: #cbe8fd }
#mute:hover { background: #26324f }
#mute .speaker-cross, #mute[data-muted="true"] .speaker-waves { display: none }
#mute[data-muted="true"] .speaker-cross { display: inline }
#mute[data-muted="true"] { color: #b6b9cb }

.volume { border-radius: 30px; padding: 3px 11px; gap: 1px }
.dial-control { display: flex; gap: 3px; align-items: center }
.dial { width: 56px; height: 56px; position: relative; border-radius: 50%; touch-action: none; user-select: none; cursor: grab; --arc: 216deg; --angle: 81deg }
.dial:active { cursor: grabbing }
.dial-arc { position: absolute; inset: 4px; border-radius: 50%; background: conic-gradient(from 225deg,#76deed 0deg,#b1adff var(--arc),#454f70 var(--arc) 270deg,transparent 270deg); }
.dial-face { position: absolute; inset: 8px; border-radius: 50%; background: linear-gradient(145deg,#586587,#232e4d 65%,#1c2440); box-shadow: inset 0 1px 2px #c6d6ff55,0 2px 5px #050917; border: 1px solid #647293 }
.dial-face i { position: absolute; inset: 0; transform: rotate(var(--angle)) }
.dial-face i::before { content: ''; display: block; width: 3px; height: 10px; margin: 3px auto; background: #edfcff; border-radius: 2px; box-shadow: 0 0 3px #70e4ff }
.volume-value { min-width: 4ch; font-size: .78rem; color: #e0e8ff; font-variant-numeric: tabular-nums }
.assist { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media(max-width:350px) { .volume { padding-inline: 6px } .controls { gap: 4px } }

/* v8.14.53: continuous, gapless mobile radio ticker */
.radio-ticker { display: none; }
#kanava #music-submission { margin-top: 16px; }
#kanava #music-submission a { display: inline; min-height: 0; overflow-wrap: anywhere; }
@media (max-width: 699px) {
  .mast { border-radius: 16px 16px 0 0; }
  .radio-ticker { display: block; position: relative; overflow: hidden; border-inline: 1px solid #363c60; background: #1b2340; color: #e7f7ff; padding: 9px 0; font-size: .78rem; font-weight: 650; letter-spacing: .015em; }
  .ticker-viewport { overflow: hidden; width: 100%; }
  .ticker-scroll { display: flex; align-items: center; width: max-content; white-space: nowrap; animation: cantaimy-ticker 30s linear infinite; will-change: transform; }
  .ticker-scroll span { display: block; flex: none; padding: 0; white-space: nowrap; }
  .receiver { border-radius: 0 0 16px 16px; }
  @keyframes cantaimy-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-scroll { animation: none; width: 100%; white-space: normal; }
  .ticker-scroll span { padding: 0 12px; }
  #ticker-repeat { display: none; }
}
