:root { --accent: #6bdbce; color-scheme: dark; font-family: system-ui, sans-serif; background: #0b1b2a; color: #edf4f8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 80% 5%, #1e4661 0, transparent 58%); }
main { max-width: 480px; padding: 32px 24px; margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -1px; }
.brand span { color: var(--accent); }
.tag, .eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: #a8c4d6; }
.tag { border: 1px solid #4a6476; padding: 7px 9px; border-radius: 5px; }
.station { text-align: center; }
.dial { width: 96px; height: 96px; margin: 0 auto 24px; border: 1px solid var(--accent); border-radius: 26px; display: flex; align-items: center; justify-content: center; flex-direction: column; font-size: 32px; font-weight: 750; color: var(--accent); background: #18354b; box-shadow: 0 0 0 8px #abcddd06; }
.dial .dial-caption { font-size: 8px; letter-spacing: 1.5px; margin-top: 3px; }
h1 { font-size: clamp(32px, 8vw, 42px); letter-spacing: -1.5px; margin: 10px 0; }
h1 span { font-weight: 350; }
.subtitle { color: #a8c4d6; margin: 0 0 22px; }
.authorization-notice { margin: 0 0 22px; padding: 12px; border: 1px solid #8a703f; border-radius: 10px; background: #332b1e; color: #f5d082; font-size: 14px; font-weight: 650; }
.status { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 18px; font-weight: 650; }
#dot { width: 9px; height: 9px; border-radius: 50%; background: #94aab8; }
body[data-state="playing"] #dot { background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
body[data-state="connecting"] #dot { background: #f5d082; }
body[data-state="error"] #dot { background: #ff9c96; }
#detail { color: #b8cbd7; font-size: 13px; min-height: 38px; margin: 12px 0 20px; }
.controls { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
button { min-height: 62px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; font: 700 16px system-ui, sans-serif; background: var(--accent); color: #082b2a; cursor: pointer; touch-action: manipulation; }
button span { margin-right: 5px; }
.secondary { background: #183248; color: #e3edf4; border-color: #4b687c; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #f5d082; outline-offset: 5px; }
[hidden] { display: none !important; }
.help { margin-top: 36px; padding-top: 24px; border-top: 1px solid #355165; }
.station-picker { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.station-picker legend { padding: 0; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #a8c4d6; }
.picker-hint { font-size: 13px; color: #a8c4d6; margin: 9px 0 16px; }
.search-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
#station-search { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #4b687c; border-radius: 12px; background: #132b3d; color: #edf4f8; font: 16px system-ui, sans-serif; }
#station-search::placeholder { color: #a8c4d6; }
#station-search:focus-visible { outline: 3px solid #f5d082; outline-offset: 3px; }
.station-group + .station-group { margin-top: 24px; }
.station-group h2 { font-size: 16px; margin: 0 0 12px; }
.station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.station-card { display: flex; align-items: center; border: 1px solid #365268; border-radius: 14px; background: #132b3d; }
.station-option { position: relative; display: flex; flex: 1; gap: 8px; align-items: center; padding: 15px 4px 15px 10px; min-height: 86px; min-width: 0; border-radius: 14px; cursor: pointer; }
.station-card:hover { background: #1a364b; }
.station-card:has(input:checked) { border-color: var(--station-color); background: color-mix(in srgb, var(--station-color) 9%, #132b3d); box-shadow: inset 0 0 0 1px var(--station-color); }
.favorite-toggle { flex: 0 0 36px; min-height: 44px; padding: 4px; border-radius: 9px; background: transparent; color: #a8c4d6; font-size: 24px; }
.favorite-toggle[aria-pressed="true"] { color: #f5d082; }
.station-option:has(input:focus-visible) { outline: 3px solid #f5d082; outline-offset: 3px; }
.station-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.station-badge { flex: 0 0 32px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--station-color); background: #0b1b2a; font-size: 13px; font-weight: 800; }
.station-option strong { display: block; font-size: 13px; line-height: 1.4; }
.station-option small { display: block; margin-top: 4px; font-size: 11px; color: #a8c4d6; }
.help p { line-height: 1.6; }
#install-help { font-size: 14px; color: #c3d4df; }
.small, footer { font-size: 12px; color: #a8c0d0; line-height: 1.7; }
footer { margin-top: 28px; }
a { color: #80dfd5; text-underline-offset: 3px; }
@media (max-width: 350px) { main { padding: 24px 16px; } .controls, .station-grid { grid-template-columns: 1fr; } }
