/* =========================================================
   HiFiTurk Radyo — persistent dock player (+ soft-navigation transitions)
   Contemporary streamer front panel: matte graphite, machined hairlines,
   cool display text, segmented level meters, encoder with LED ring.
   Orange LED = active / playing only.
   ========================================================= */

.hr-dock {
  --hr-bg: rgba(14, 16, 19, .94);
  --hr-raise: #1A1D22;
  --hr-hair: rgba(255, 255, 255, .09);
  --hr-text: var(--on-glass, #E8EDF3);
  --hr-muted: var(--on-glass-muted, #8C96A3);
  --hr-display: var(--lamp, #A9D2FF);
  --hr-led: var(--amber, #FF7A1A);
  --hr-red: #FF4D3D;
  --hr-tap: 44px;

  position: fixed;
  z-index: 60;
  left: 0; right: 0; bottom: 0;
  color: var(--hr-text);
  font-family: var(--font, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.3;
  view-transition-name: hr-dock;
}
.hr-dock audio { display: none; }
.hr-dock p { margin: 0; max-width: none; }
.hr-dock svg { display: block; width: 100%; height: 100%; }

/* ---------- the bar ---------- */
.hr-dock__bar {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
  padding: 10px max(var(--gutter, 16px), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter, 16px), env(safe-area-inset-left));
  background: var(--hr-bg);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .55);
}
/* hairline aluminium edge on top: a machined chamfer catching light */
.hr-dock__bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(216,219,223,.08), rgba(216,219,223,.55) 22%, rgba(255,255,255,.8) 50%, rgba(216,219,223,.55) 78%, rgba(216,219,223,.08));
  pointer-events: none;
}
.hr-dock__bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px;
  background: rgba(0, 0, 0, .55); pointer-events: none;
}
@media (min-width: 1380px) {
  .hr-dock__bar { padding-inline: calc((100vw - var(--max, 1280px)) / 2 + var(--gutter, 48px)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hr-dock { --hr-bg: #0E1013; }
}

/* ---------- shared button ---------- */
.hr-btn {
  flex: none;
  display: inline-grid; place-items: center;
  width: var(--hr-tap); height: var(--hr-tap);
  padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--hr-muted);
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.hr-btn svg { width: 20px; height: 20px; }
.hr-btn:hover { background: rgba(255, 255, 255, .06); color: var(--hr-text); }
.hr-btn:active { background: rgba(255, 255, 255, .1); }
.hr-dock :focus-visible { outline: 2px solid var(--hr-display); outline-offset: 2px; }

/* ---------- power / play ---------- */
.hr-power {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
  background: radial-gradient(circle at 50% 30%, #2B3037, #16191D 68%);
  color: var(--hr-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 3px rgba(0,0,0,.35), 0 6px 14px -6px rgba(0,0,0,.8);
  cursor: pointer;
  transition: transform .1s var(--ease), border-color .2s var(--ease);
}
.hr-power:hover { border-color: rgba(255, 255, 255, .24); }
.hr-power:active { transform: scale(.96); }
.hr-power__icon { width: 20px; height: 20px; }
.hr-led {
  position: absolute; top: 6px; left: 50%;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: #3A2416;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.6);
  transition: background-color .2s, box-shadow .2s;
}
.hr-dock[data-state="playing"] .hr-led { background: var(--hr-led); box-shadow: 0 0 6px var(--hr-led), 0 0 14px rgba(255,122,26,.5); }
.hr-dock[data-state="loading"] .hr-led { background: var(--hr-led); box-shadow: 0 0 6px var(--hr-led); animation: hr-blink .9s steps(2, jump-none) infinite; }
.hr-dock[data-state="error"] .hr-led { background: var(--hr-red); box-shadow: 0 0 6px rgba(255,77,61,.8); }
@keyframes hr-blink { 50% { opacity: .2; } }

/* ---------- album cover window ---------- */
.hr-art {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 8px; overflow: hidden;
  background: #08090B;
  color: rgba(169, 210, 255, .28);
  box-shadow: inset 0 1px 6px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08), 0 1px 0 rgba(255,255,255,.05);
}
.hr-art > svg { position: absolute; inset: 11px; width: auto; height: auto; }
.hr-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hr-art img[hidden] { display: none; }
/* glass reflection over the cover */
.hr-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%);
  border-radius: inherit;
}

/* ---------- display text ---------- */
.hr-info { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.hr-line1 {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--hr-display);
  white-space: nowrap;
}
.hr-badge {
  flex: none;
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid rgba(169, 210, 255, .32);
  font-size: 10.5px; line-height: 1.3; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.hr-badge:empty { display: none; }
.hr-dock[data-live="true"] .hr-badge { border-color: var(--hr-led); color: var(--hr-led); }
.hr-station { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px rgba(169,210,255,.35); }
.hr-credit {
  flex: none;
  color: var(--hr-muted); font-weight: 500; letter-spacing: .02em;
  text-decoration: none;
}
.hr-credit::before { content: "·"; margin-right: 8px; color: rgba(140,150,163,.6); }
.hr-credit:hover { color: var(--hr-text); text-decoration: underline; }
.hr-credit[hidden], .hr-dock[data-started="false"][data-collapsed="true"] .hr-credit { display: none; }

.hr-line2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hr-np {
  display: block; flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
}
.hr-np.is-marquee { text-overflow: clip; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.hr-np.is-marquee .hr-np__text { display: inline-block; animation: hr-marquee var(--hr-dur, 12s) linear infinite alternate; }
@keyframes hr-marquee {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(var(--hr-shift, 0)); }
}
.hr-dock[data-state="error"] .hr-np { color: #FFB4AA; }
.hr-dock[data-state="loading"] .hr-np { color: var(--hr-muted); }
.hr-retry {
  flex: none;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(169, 210, 255, .35); background: transparent;
  color: var(--hr-display); font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.hr-retry:hover { background: rgba(169, 210, 255, .1); }
.hr-retry[hidden] { display: none; }

/* ---------- stereo level meters ---------- */
.hr-meter {
  flex: none;
  width: 150px; height: 22px;
  padding: 0; display: block;
}

/* ---------- station selector ---------- */
.hr-tuner { flex: none; display: flex; align-items: center; gap: 2px; }
.hr-preset {
  width: auto; min-width: var(--hr-tap); justify-content: center; padding: 0 12px 0 10px; gap: 6px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--hr-hair);
  color: var(--hr-text);
}
.hr-preset svg { width: 18px; height: 18px; color: var(--hr-muted); }
.hr-preset__num { font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--hr-display); font-variant-numeric: tabular-nums; min-width: 2.4ch; }
.hr-preset[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: rgba(255,255,255,.18); }

/* ---------- volume encoder with LED ring ---------- */
.hr-knob {
  position: relative; flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  cursor: ns-resize; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.hr-knob__ring { position: absolute; inset: 0; }
.hr-knob__ring circle { fill: rgba(255, 255, 255, .13); transition: fill .12s; }
.hr-knob__ring circle.on { fill: var(--hr-display); }
.hr-knob__cap {
  position: absolute; inset: 8px; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.035) 0 2deg, rgba(0,0,0,0) 2deg 6deg),
    radial-gradient(circle at 50% 30%, #30353C, #17191D 70%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 8px rgba(0,0,0,.6), 0 0 0 2px rgba(0,0,0,.35);
  transition: transform .08s linear;
}
.hr-knob__mark {
  position: absolute; left: 50%; top: 4px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--hr-text);
}
.hr-knob:focus-visible { outline-offset: 1px; border-radius: 50%; }
.hr-knob.is-active .hr-knob__cap { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 4px rgba(0,0,0,.6), 0 0 0 2px rgba(0,0,0,.35); }

/* ---------- collapse ---------- */
.hr-collapse svg { transform: rotate(180deg); transition: transform .25s var(--ease); }
.hr-dock[data-collapsed="true"] .hr-collapse svg { transform: none; }

/* ---------- station list popover ---------- */
.hr-list {
  position: absolute;
  right: max(var(--gutter, 16px), env(safe-area-inset-right));
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  max-height: min(60vh, 440px); overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: #15181C;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px -12px rgba(0,0,0,.7);
  overscroll-behavior: contain;
}
@media (min-width: 1380px) {
  .hr-list { right: calc((100vw - var(--max, 1280px)) / 2 + var(--gutter, 48px)); }
}
.hr-list[hidden] { display: none; }
.hr-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 8px 10px; font-size: 13px; font-weight: 700; }
.hr-list__note { font-size: 11.5px; font-weight: 500; color: var(--hr-muted); }
.hr-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hr-item {
  display: grid; grid-template-columns: 38px 1fr 10px; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 6px 10px 6px 8px;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--hr-text); text-align: left; cursor: pointer;
}
.hr-item:hover { background: rgba(255, 255, 255, .05); }
.hr-item[aria-pressed="true"] { background: rgba(169, 210, 255, .08); }
.hr-item__num {
  display: grid; place-items: center; height: 34px; border-radius: 8px;
  border: 1px solid rgba(169, 210, 255, .25); color: var(--hr-display);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.hr-item__txt { display: grid; min-width: 0; }
.hr-item__name { font-weight: 650; font-size: 14.5px; }
.hr-item__genre { font-size: 12.5px; color: var(--hr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-item__led { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.hr-item[aria-pressed="true"] .hr-item__led { background: var(--hr-display); opacity: .6; }
.hr-dock[data-state="playing"] .hr-item[aria-pressed="true"] .hr-item__led { background: var(--hr-led); opacity: 1; box-shadow: 0 0 6px var(--hr-led); }
.hr-list__credit { padding: 10px 8px 4px; font-size: 12px; color: var(--hr-muted); border-top: 1px solid var(--hr-hair); margin-top: 6px !important; }
.hr-list__credit a { color: var(--hr-text); }

/* ---------- collapsed: a floating pill ---------- */
.hr-dock[data-collapsed="true"] {
  left: auto;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
}
.hr-dock[data-collapsed="true"] .hr-dock__bar {
  min-height: 0; gap: 12px;
  padding: 6px 6px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
.hr-dock[data-collapsed="true"] .hr-dock__bar::before { left: 22px; right: 22px; }
.hr-dock[data-collapsed="true"] .hr-dock__bar::after { display: none; }
.hr-dock[data-collapsed="true"] :is(.hr-art, .hr-meter, .hr-tuner, .hr-knob) { display: none; }
.hr-dock[data-collapsed="true"] .hr-info { width: 250px; max-width: calc(100vw - 32px - 46px - 44px - 36px); }
.hr-dock[data-collapsed="true"] .hr-np { font-size: 13px; font-weight: 500; color: var(--hr-muted); }
.hr-dock[data-collapsed="true"][data-state="playing"] .hr-np { color: var(--hr-text); }
.hr-dock[data-collapsed="true"] .hr-retry { display: none; }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hr-dock { animation: hr-in .5s var(--ease) both .2s; }
  @keyframes hr-in { from { opacity: 0; transform: translateY(16px); } }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hr-dock__bar { gap: 10px; }
  .hr-meter { width: 96px; }
}
@media (max-width: 720px) {
  .hr-prev, .hr-next { display: none; }
  .hr-meter { width: 58px; }
}
@media (max-width: 560px) {
  .hr-knob { display: none; }        /* phones: hardware volume buttons */
  .hr-dock__bar { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); min-height: 60px; }
  .hr-line1 { font-size: 11.5px; }
  .hr-np { font-size: 13.5px; }
  .hr-preset { padding: 0 10px 0 8px; }
  .hr-dock[data-collapsed="true"] { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .hr-dock[data-collapsed="true"] .hr-info { max-width: calc(100vw - 24px - 46px - 44px - 36px); }
}
@media (max-width: 420px) {
  .hr-dock { --hr-bg: rgba(14, 16, 19, .97); }
  .hr-art { display: none; }
  .hr-credit { display: none; }   /* attribution stays in the station list */
  .hr-meter { width: 40px; }
}
@media (max-width: 360px) {
  .hr-meter { display: none; }
  .hr-preset svg { display: none; }
}

/* reserve room at the end of the page so the dock never covers the footer */
body::after {
  content: ""; display: block;
  height: var(--hr-dock-space, 0px);
  background: var(--glass, #0E1013);
}

@media (prefers-reduced-motion: reduce) {
  .hr-dock *, .hr-dock { animation: none !important; transition: none !important; }
  .hr-dock[data-state="loading"] .hr-led { opacity: .6; }
}

/* =========================================================
   Soft navigation: a short cross-fade between pages.
   The header and the dock are excluded so they stay rock-still.
   ========================================================= */
.site-header { view-transition-name: site-header; }
::view-transition-old(hr-dock), ::view-transition-old(site-header) { display: none; }
::view-transition-new(hr-dock), ::view-transition-new(site-header) { animation: none; }
::view-transition-group(hr-dock), ::view-transition-group(site-header) { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: hr-vt-out .18s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: hr-vt-in .34s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes hr-vt-out { to { opacity: 0; } }
  @keyframes hr-vt-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* router: page-title announcer */
.hr-route-announcer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the dock follows the room's mood colour */
.hr-dock { --hr-display: var(--accent-soft, #A9D2FF); --hr-led: var(--accent, #FF7A1A); }
.hr-dock[data-state="playing"] .hr-led { box-shadow: 0 0 6px var(--hr-led), 0 0 16px color-mix(in srgb, var(--glow, #FF7A1A) 55%, transparent); }
.hr-dock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent, #B08D57) 70%, transparent), transparent); opacity: 0; transition: opacity 1s; pointer-events: none; }
.hr-dock[data-state="playing"]::before { opacity: 1; }
.hr-item[aria-pressed="true"] { background: color-mix(in srgb, var(--accent, #A9D2FF) 12%, transparent); }

/* =========================================================
   The hidden bar: the radio is always with you.
   Tucked: a light line along the bottom edge that draws the music, and a small tab.
   Revealed (near the bottom edge, on the tab, or when focused): the full bar with a frequency scale.
   ========================================================= */
.hr-dock { left: 0; right: 0; bottom: 0; pointer-events: none; animation: none; }
.hr-dock > * { pointer-events: auto; }
.hr-dock::before { content: none; }
.hr-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38px; pointer-events: none !important; transition: opacity .6s; }
.hr-dock[data-tucked="false"] .hr-wave { opacity: 0; }
.hr-tab {
  position: absolute; right: max(var(--gutter, 16px), calc((100vw - var(--max, 1280px)) / 2 + var(--gutter, 48px))); bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,11,13,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--hr-text); font: 600 12.5px/1 var(--font, system-ui); cursor: pointer;
  transition: opacity .4s, transform .5s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.hr-tab:hover { border-color: var(--accent, #B08D57); }
.hr-tab__f { color: var(--hr-muted); font-weight: 500; max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-tab__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.hr-tab__eq i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.hr-dock[data-state="playing"] .hr-tab__eq i { background: var(--accent, #FF7A1A); animation: hr-eq .9s ease-in-out infinite alternate; }
.hr-dock[data-state="playing"] .hr-tab__eq i:nth-child(2) { animation-duration: .65s; }
.hr-dock[data-state="playing"] .hr-tab__eq i:nth-child(3) { animation-duration: 1.15s; }
@keyframes hr-eq { from { height: 20%; } to { height: 100%; } }
.hr-dock[data-tucked="false"] .hr-tab { opacity: 0; transform: translateY(12px); pointer-events: none; }
.hr-dock__bar {
  flex-wrap: wrap; row-gap: 6px;
  width: min(var(--max, 1280px), calc(100% - 24px)); margin: 0 auto;
  border-radius: 18px 18px 0 0; border: 1px solid rgba(255,255,255,.08); border-bottom: 0;
  background: color-mix(in srgb, var(--glow, #FFBA78) 5%, rgba(12,13,15,.92));
  padding-inline: clamp(14px, 2vw, 24px) !important;
  transform: translateY(calc(100% + 30px)); transition: transform .75s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,.9);
}
.hr-dock[data-tucked="false"] .hr-dock__bar { transform: none; }
.hr-dock__bar::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent, #B08D57) 80%, transparent), transparent); }
/* frequency scale across the top of the bar */
.hr-scale { position: relative; flex: 1 0 100%; order: -1; height: 34px; margin: 2px 0 4px; }
.hr-scale__rule { position: absolute; left: 0; right: 0; bottom: 10px; height: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 1%); -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.hr-scale__st {
  position: absolute; left: calc(var(--p) * 100%); bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 4px; padding: 0 4px; height: 34px; align-content: end;
  border: 0; background: none; color: var(--hr-muted); font: 500 10.5px/1 var(--font, system-ui); cursor: pointer; white-space: nowrap;
}
.hr-scale__st::after { content: ""; width: 1px; height: 12px; background: rgba(255,255,255,.4); }
.hr-scale__st span { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s; }
.hr-scale__st:hover span, .hr-scale__st:focus-visible span, .hr-scale__st[aria-pressed="true"] span { opacity: 1; transform: none; }
.hr-scale__st:hover, .hr-scale__st[aria-pressed="true"] { color: var(--hr-text); }
.hr-scale__st[aria-pressed="true"]::after { background: var(--accent, #FF7A1A); height: 16px; }
.hr-scale__needle { position: absolute; bottom: 0; left: calc(var(--n, 0) * 100%); width: 2px; height: 30px; margin-left: -1px; background: var(--accent, #FF7A1A); box-shadow: 0 0 10px var(--glow, #FF7A1A); transition: left .8s cubic-bezier(.34,1.3,.4,1); }
@media (max-width: 720px) {
  .hr-scale__st span { display: none; }
  .hr-tab { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .hr-dock__bar { width: 100%; border-radius: 16px 16px 0 0; }
}
body::after { background: transparent; }
.hr-dock__bar { background: color-mix(in srgb, var(--glow, #FFBA78) 6%, rgba(11,12,14,.975)); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }

/* the pill: always in the same place; play here, open the bar with the label */
.hr-pill {
  position: absolute; right: max(var(--gutter, 16px), calc((100vw - var(--max, 1280px)) / 2 + var(--gutter, 48px))); bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,11,13,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8);
  z-index: 2;
}
.hr-pill .hr-tab { position: static; border: 0; background: none; min-height: 36px; padding: 0 12px 0 8px; opacity: 1 !important; transform: none !important; pointer-events: auto !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hr-pill__play {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 0; background: var(--accent, #B08D57); color: #0E0F11; cursor: pointer;
  transition: transform .2s, background .6s;
}
.hr-pill__play:hover { transform: scale(1.06); }
.hr-pill__play:active { transform: scale(.95); }
.hr-pill__icon { width: 16px; height: 16px; display: block; }
.hr-dock[data-state="loading"] .hr-pill__play { animation: hr-blink .9s steps(2, jump-none) infinite; }
/* the bar opens above the pill, so nothing moves under the pointer */
.hr-dock__bar { margin-bottom: calc(64px + env(safe-area-inset-bottom)); border-radius: 18px; border: 1px solid rgba(255,255,255,.08); transform: translateY(calc(100% + 120px)); }
.hr-dock[data-tucked="false"] .hr-dock__bar { transform: none; }
.hr-dock[data-tucked="false"] .hr-wave { opacity: 1; }
@media (max-width: 720px) {
  .hr-pill { right: 12px; }
  .hr-tab__f { max-width: 12ch; }
  .hr-dock__bar { width: calc(100% - 16px); }
}
.hr-dock__bar { background: color-mix(in srgb, var(--glow, #FFBA78) 6%, #0B0C0E); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* phones: the pill shrinks to play + a small equaliser button, so it never covers the page */
@media (max-width: 720px) {
  .hr-pill { right: 12px; padding: 3px; gap: 2px; }
  .hr-pill__play { width: 40px; height: 40px; }
  .hr-pill .hr-tab { min-width: 40px; min-height: 40px; padding: 0 12px; justify-content: center; }
  .hr-pill .hr-tab__t, .hr-pill .hr-tab__f { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .hr-tab__eq { height: 14px; gap: 3px; }
  .hr-tab__eq i { width: 2.5px; }
}

/* =========================================================
   The invitation: "Ne dinlemek istersin?" — opens beside the pill
   ========================================================= */
.hr-ask {
  position: absolute; right: max(var(--gutter, 16px), calc((100vw - var(--max, 1280px)) / 2 + var(--gutter, 48px)));
  bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 3;
  width: min(380px, calc(100vw - 24px)); padding: 20px 20px 16px;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.1);
  background: color-mix(in srgb, var(--glow, #FFBA78) 5%, #0D0E10);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4);
  color: var(--hr-text, #F2EEE8);
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: 90% 100%;
  transition: opacity .35s, transform .55s cubic-bezier(.16,1,.3,1);
}
.hr-ask.is-on { opacity: 1; transform: none; }
.hr-ask::after { /* a little tail pointing at the pill */
  content: ""; position: absolute; right: 30px; bottom: -6px; width: 12px; height: 12px; transform: rotate(45deg);
  background: inherit; border: inherit; border-top: 0; border-left: 0;
}
.hr-ask__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--hr-muted, #9AA0A8); cursor: pointer; }
.hr-ask__x:hover { color: var(--hr-text, #fff); background: rgba(255,255,255,.06); }
.hr-ask__x svg { width: 16px; height: 16px; }
.hr-ask__q { margin: 0 36px 4px 0; font-family: var(--serif, Georgia, serif); font-weight: 350; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; }
.hr-ask__s { margin: 0 0 14px; color: var(--hr-muted, #9AA0A8); font-size: .82rem; line-height: 1.45; }
.hr-ask__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hr-ask__o {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025);
  color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color .25s, background .25s, transform .2s;
}
.hr-ask__o::before { /* the mood colour floods in on hover */
  content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.hr-ask__o:hover, .hr-ask__o:focus-visible { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.hr-ask__o:hover::before, .hr-ask__o:focus-visible::before { opacity: 1; }
.hr-ask__o:active { transform: scale(.97); }
.hr-ask__o i { grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hr-ask__o span { position: relative; font-weight: 600; font-size: .86rem; }
.hr-ask__o small { position: relative; grid-column: 2; color: var(--hr-muted, #9AA0A8); font-size: .72rem; }
.hr-ask.is-on .hr-ask__o { animation: hr-ask-in .5s cubic-bezier(.16,1,.3,1) backwards; }
.hr-ask.is-on .hr-ask__o:nth-child(2) { animation-delay: .04s; } .hr-ask.is-on .hr-ask__o:nth-child(3) { animation-delay: .08s; }
.hr-ask.is-on .hr-ask__o:nth-child(4) { animation-delay: .12s; } .hr-ask.is-on .hr-ask__o:nth-child(5) { animation-delay: .16s; }
.hr-ask.is-on .hr-ask__o:nth-child(6) { animation-delay: .2s; }
@keyframes hr-ask-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 720px) { .hr-ask { right: 12px; padding: 18px 16px 14px; } .hr-ask::after { right: 52px; } .hr-ask__q { font-size: 1.35rem; } }
@media (prefers-reduced-motion: reduce) { .hr-ask, .hr-ask__o { transition: none; animation: none !important; } }

/* ---- Sahne müziği dock (radyo dock'unun yerini alır) ---- */
.sc-dock { position: fixed; left: 18px; right: auto; bottom: 18px; width: auto; z-index: 60; }
.sc-bar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(18, 15, 11, .92); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
  backdrop-filter: blur(10px); max-width: min(92vw, 440px);
}
.sc-play { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: #d9a441; color: #1a1206; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.sc-play svg, .sc-vol svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.sc-dock[data-state="playing"] .sc-play { background: #e8e0d2; }
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-size: 13px; font-weight: 600; color: #efe7da; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-desc { font-size: 12px; color: #9a8f7d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-dock[data-muted="true"] .sc-play { background: #3a332a; color: #9a8f7d; }
.sc-vol { width: 30px; height: 30px; flex: none; border: 0; background: none; color: #9a8f7d; font-size: 15px; display: grid; place-items: center; }
.sc-range { width: 72px; accent-color: #d9a441; }
@media (max-width: 720px) { .sc-dock { left: 10px; bottom: 10px; } .sc-range { display: none; } }
@media (prefers-reduced-motion: reduce) { .sc-bar { backdrop-filter: none; } }
