/* webradio.one Player */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }

:root {
  --graphite: #2a2e30; --graphite-2: #363b3e; --graphite-3: #33383b; --ink: #24282a; --paper: #e6e7e3; --soft: #b5b8b2; --accent: #c5f135;
  --v: 80%;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden; color: var(--paper); font: 400 16px/1.4 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(420px 320px at 90% 8%, rgba(197, 241, 53, .12), transparent 70%), var(--graphite);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(230, 231, 227, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 231, 227, .045) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.pl { position: relative; height: 100%; max-width: 560px; margin-inline: auto; padding: 14px 22px 8px; display: flex; flex-direction: column; }

.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.pl-logo { height: 22px; width: auto; }
.pl-flag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; background: rgba(197, 241, 53, .12); border-radius: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.pl-flag .dot { width: 9px; height: 9px; border-radius: 50%; background: #6f7477; }
.pl[data-state="playing"] .pl-flag .dot { background: var(--accent); animation: ping 2.2s ease-out infinite; }
.pl[data-state="error"] .pl-flag { color: #ffb4a3; background: rgba(255, 91, 46, .14); } .pl[data-state="error"] .pl-flag .dot { background: #ff5b2e; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(197, 241, 53, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(197, 241, 53, 0); } }

.pl-stage { --s: clamp(120px, 33vh, 250px); flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.pl-cover {
  position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: var(--ink);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(230, 231, 227, .12);
}
.pl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-cover img[hidden], .pl-ph[hidden] { display: none; }
.pl-ph { width: 100%; height: 100%; }

.pl-spec { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 26px; width: var(--s, 100%); max-width: 100%; }
.pl-spec i { flex: 1; max-width: 8px; height: calc(var(--h) * 1%); border-radius: 3px 3px 0 0; background: #4a5155; transform: scaleY(.3); transform-origin: bottom; }
.pl-spec i:nth-child(5n) { background: var(--accent); }
.pl[data-state="playing"] .pl-spec i { animation: eq var(--t) ease-in-out var(--w) infinite alternate; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

.pl-meta { width: 100%; min-height: 0; }
.pl-title { margin: 0 0 4px; font: 800 clamp(1.7rem, 5.4vh, 2.4rem)/.98 "Barlow Condensed", "Arial Narrow", sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pl-artist { margin: 0; color: var(--soft); font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pl-show { margin: 6px 0 0; font-size: .85rem; color: var(--accent); font-weight: 600; min-height: 1.2em; }

.pl-ctl { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.pl-play {
  position: relative; width: 74px; height: 74px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(197, 241, 53, .6); transition: transform .12s, box-shadow .2s;
}
.pl-play:hover { transform: scale(1.05); background: #d4f766; }
.pl-play:active { transform: scale(.97); }
.pl-play svg { width: 32px; height: 32px; fill: currentColor; grid-area: 1 / 1; }
.pl-play .ic-pause, .pl-play .pl-spin { display: none; }
.pl[data-state="playing"] .ic-play, .pl[data-state="loading"] .ic-play { display: none; }
.pl[data-state="playing"] .ic-pause { display: block; }
.pl[data-state="loading"] .pl-spin { display: block; grid-area: 1 / 1; width: 30px; height: 30px; border-radius: 50%; border: 4px solid rgba(36, 40, 42, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pl-vol { width: 100%; display: flex; align-items: center; gap: 12px; }
.pl-mute { flex: none; width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--graphite-2); cursor: pointer; display: grid; place-items: center; }
.pl-mute:hover { background: #464b4e; }
.pl-mute svg { width: 22px; height: 22px; fill: var(--paper); grid-area: 1 / 1; }
.pl-mute .ic-mute { display: none; }
.pl-mute[aria-pressed="true"] .ic-vol { display: none; }
.pl-mute[aria-pressed="true"] .ic-mute { display: block; }
.pl-pct { flex: none; width: 2.4em; text-align: right; font: 600 .9rem/1 "Barlow", sans-serif; font-variant-numeric: tabular-nums; color: var(--soft); }

.pl-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.pl-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--v), #464b4e var(--v)); }
.pl-range::-moz-range-track { height: 6px; border-radius: 6px; background: #464b4e; }
.pl-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.pl-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.pl-range:focus-visible { outline-offset: 2px; }

.pl-status { flex: none; min-height: 1.3em; margin: 8px 0 0; text-align: center; font-size: .85rem; color: var(--soft); }
.pl[data-state="error"] .pl-status { color: #ffb4a3; }
.pl-foot { flex: none; text-align: center; padding: 2px 0 6px; font-size: .8rem; }
.pl-foot a { color: var(--soft); text-decoration: none; } .pl-foot a:hover { color: var(--accent); }

@media (max-height: 560px) { .pl-spec { display: none; } .pl-play { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
