:root {
  --bg: #07060b;
  --chassis-1: #17151f;
  --chassis-2: #0d0c13;
  --edge: #2a2735;
  --amber: #ffb547;
  --amber-hot: #ffd27a;
  --amber-dim: rgba(255, 181, 71, 0.13);
  --cyan: #2ef2ff;
  --cyan-dim: rgba(46, 242, 255, 0.18);
  --magenta: #ff3d8b;
  --text: #ece8f6;
  --muted: #8b8698;
  --glass: #0a0905;
  --radius: 22px;
  --display-font: 'Orbitron', sans-serif;
  --lcd-font: 'VT323', monospace;
  --body-font: 'Space Grotesk', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 70% at 50% 110%, #2a0c3a 0%, transparent 60%),
              radial-gradient(80% 50% at 85% -10%, rgba(46, 242, 255, 0.08), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px calc(16px + var(--safe-b));
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* atmosphere */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-2%,6%)} 80%{transform:translate(5%,2%)} 100%{transform:translate(0,0)} }
.horizon {
  position: fixed; left: -20%; right: -20%; bottom: 0; height: 42vh; pointer-events: none; z-index: 0;
  background:
    linear-gradient(to top, rgba(255, 61, 139, .16), transparent 70%),
    repeating-linear-gradient(to right, rgba(255, 61, 139, .22) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to top, rgba(255, 61, 139, .22) 0 1px, transparent 1px 34px);
  transform: perspective(380px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}

/* chassis */
.radio {
  position: relative; z-index: 1;
  width: min(100%, 760px);
  padding: 18px 16px 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 22%),
    linear-gradient(160deg, var(--chassis-1), var(--chassis-2));
  border: 1px solid var(--edge);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 -1px 0 rgba(0,0,0,.6) inset,
    0 40px 80px -20px rgba(0,0,0,.9),
    0 0 0 6px #0b0a10,
    0 0 0 7px #24212e;
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr);
}
.radio > * { min-width: 0; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.radio > :nth-child(2) { animation-delay: .08s; }
.radio > :nth-child(3) { animation-delay: .16s; }
.radio > :nth-child(4) { animation-delay: .24s; }
.radio > :nth-child(5) { animation-delay: .32s; }
.radio > :nth-child(6) { animation-delay: .40s; }
.radio > :nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 2px; font-family: var(--display-font); font-weight: 900; font-size: 28px; letter-spacing: .02em; line-height: 1; }
.logo-web {
  background: linear-gradient(180deg, #fff 0%, #c9c4d8 45%, #5f5a70 52%, #e6e2f0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-fm { color: var(--magenta); font-style: italic; text-shadow: 0 0 14px rgba(255,61,139,.7); }
.logo-tag { flex-basis: 100%; font: 500 10px/1 var(--body-font); letter-spacing: .28em; color: var(--muted); margin-top: 6px; }
.top-actions { display: flex; gap: 8px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #23202d, #15131c);
  border: 1px solid #2f2b3b; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 12px -6px #000;
  transition: color .2s, border-color .2s, transform .1s;
}
.icon-btn:hover { color: var(--cyan); border-color: rgba(46,242,255,.4); }
.icon-btn:active { transform: translateY(1px); }

/* display */
.display { border-radius: var(--radius); padding: 6px; background: linear-gradient(180deg, #050407, #1a1822); box-shadow: 0 2px 0 rgba(255,255,255,.05), 0 0 0 1px #000 inset; }
.display-glass {
  position: relative; overflow: hidden; border-radius: 17px; padding: 14px 16px 10px;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255,181,71,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px),
    var(--glass);
  box-shadow: 0 0 40px rgba(0,0,0,.9) inset;
}
.display-glass::after { /* glass reflection */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 30%, transparent 31%);
}
.leds { display: flex; gap: 10px; flex-wrap: wrap; font: 400 16px/1 var(--lcd-font); letter-spacing: .08em; }
.led { color: rgba(255,181,71,.18); transition: color .25s, text-shadow .25s; }
.led.on { color: var(--amber); text-shadow: 0 0 8px rgba(255,181,71,.8); }
.led.on#ledAir { color: var(--magenta); text-shadow: 0 0 8px rgba(255,61,139,.9); }
.led.on#ledTune { color: var(--cyan); text-shadow: 0 0 8px rgba(46,242,255,.9); }
.led-timer { color: var(--amber); text-shadow: 0 0 8px rgba(255,181,71,.8); margin-left: auto; }
.led-timer b { font-weight: 400; }

.freq-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; }
.freq { position: relative; font: 700 clamp(52px, 15vw, 104px)/.95 var(--display-font); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.freq-ghost { visibility: hidden; }
.freq-val {
  position: absolute; right: 0; top: 0; color: var(--amber);
  text-shadow: 0 0 6px rgba(255,181,71,.8), 0 0 28px rgba(255,140,0,.45);
  transition: color .3s, text-shadow .3s;
}
.radio[data-power="off"] .freq-val { color: rgba(255,181,71,.22); text-shadow: none; }
.radio[data-tuning="1"] .freq-val { animation: flicker .12s steps(2) infinite; }
@keyframes flicker { 50% { opacity: .82; } }
.freq-unit { font: 500 13px/1.2 var(--display-font); color: var(--amber); opacity: .8; padding-bottom: 10px; }
.freq-unit b { font-size: 18px; color: var(--amber-hot); }
.signal { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 34px; padding-bottom: 10px; }
.signal i { width: 6px; background: rgba(46,242,255,.13); border-radius: 1px; transition: background .2s, box-shadow .2s; }
.signal i:nth-child(1) { height: 20%; } .signal i:nth-child(2) { height: 40%; } .signal i:nth-child(3) { height: 60%; }
.signal i:nth-child(4) { height: 80%; } .signal i:nth-child(5) { height: 100%; }
.signal i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.station-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; min-height: 52px; }
.station-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(255,181,71,.3); filter: sepia(.2) saturate(1.1); }
.station-text { min-width: 0; flex: 1; }
.marquee { overflow: hidden; white-space: nowrap; font: 400 30px/1 var(--lcd-font); color: var(--cyan); text-shadow: 0 0 8px rgba(46,242,255,.65); letter-spacing: .06em; text-transform: uppercase; }
.marquee span { display: inline-block; }
.marquee.scroll span { animation: marquee 12s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }
.radio[data-power="off"] .marquee { color: rgba(46,242,255,.25); text-shadow: none; }
.station-meta { font: 400 19px/1.1 var(--lcd-font); color: rgba(255,181,71,.75); letter-spacing: .05em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.viz { display: block; width: 100%; height: 44px; margin-top: 8px; }

/* dial */
.dial-wrap { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #0b0a10, #121019); border: 1px solid #000; box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 24px -10px #000 inset; }
.dial { display: block; width: 100%; height: 96px; touch-action: none; cursor: grab; outline: none; }
.dial:active { cursor: grabbing; }
.dial:focus-visible { box-shadow: 0 0 0 2px var(--cyan) inset; }
.needle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--magenta); box-shadow: 0 0 10px 1px var(--magenta), 0 0 30px rgba(255,61,139,.6); pointer-events: none; }
.needle::before { content: ''; position: absolute; top: -1px; left: -6px; border: 7px solid transparent; border-top-color: var(--magenta); }
.dial-wrap::before, .dial-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; pointer-events: none; z-index: 1; }
.dial-wrap::before { left: 0; background: linear-gradient(90deg, #0b0a10, transparent); }
.dial-wrap::after { right: 0; background: linear-gradient(-90deg, #0b0a10, transparent); }

/* transport */
.controls { display: grid; grid-template-columns: 1fr 1.15fr 1.4fr 1.15fr 1fr; gap: 10px; align-items: center; }
.ctl {
  height: 62px; border-radius: 18px; display: grid; place-items: center; border: 1px solid #312d3e;
  background: linear-gradient(180deg, #2a2735 0%, #1a1822 55%, #131119 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 -2px 0 rgba(0,0,0,.5) inset, 0 10px 18px -10px #000;
  transition: transform .08s, box-shadow .15s, color .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.ctl svg { width: 26px; height: 26px; }
.ctl:active, .ctl.is-down { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 4px 10px -6px #000; color: var(--cyan); }
.ctl-seek svg { width: 22px; height: 22px; fill: currentColor; stroke-width: 1.4; }
.ctl-power { height: 76px; border-radius: 50%; aspect-ratio: 1; justify-self: center; color: var(--muted); border-color: #3a3548; }
.ctl-power svg { width: 32px; height: 32px; stroke-width: 2.2; }
.radio[data-power="on"] .ctl-power { color: var(--magenta); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 0 0 2px rgba(255,61,139,.35), 0 0 28px rgba(255,61,139,.35), 0 10px 18px -10px #000; }
.radio[data-power="off"] .ctl-power { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px rgba(46,242,255,.35), 0 0 26px rgba(46,242,255,.3); color: var(--cyan); } }

.deck { display: flex; align-items: center; gap: 12px; }
.volume { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 0 6px; }
.volume input { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--amber) var(--v, 80%), #2a2735 var(--v, 80%)); outline: none; }
.volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9b96aa 45%, #3b3747); border: 1px solid #000; box-shadow: 0 2px 6px #000; }
.volume input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9b96aa 45%, #3b3747); border: 1px solid #000; }
.deck-btns { display: flex; gap: 8px; }
.chip { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #15131c; border: 1px solid #2c2838; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); }
.chip.is-on { color: var(--amber); border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.08); }
.chip.is-on svg { fill: currentColor; }
#btnTimer.is-on svg { fill: none; }

.claim-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 16px;
  border: 1px dashed rgba(46,242,255,.45); background: rgba(46,242,255,.05); color: var(--cyan);
  font: 700 14px/1 var(--display-font); letter-spacing: .12em; text-transform: uppercase; transition: background .2s, box-shadow .2s;
}
.claim-btn:hover { background: rgba(46,242,255,.1); box-shadow: 0 0 24px rgba(46,242,255,.15); }
.claim-btn.is-free { border-style: solid; background: linear-gradient(90deg, rgba(46,242,255,.18), rgba(255,61,139,.18)); box-shadow: 0 0 24px rgba(46,242,255,.2); color: #fff; }
.claim-btn.is-mine { border-color: rgba(255,61,139,.5); color: var(--magenta); background: rgba(255,61,139,.06); }

@media (pointer: coarse) { .foot { display: none; } }
.foot { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
kbd { font: 500 11px var(--body-font); padding: 1px 6px; border-radius: 5px; border: 1px solid #34303f; background: #17151e; margin: 0 1px; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(3,2,6,.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 86dvh; overflow: auto; overscroll-behavior: contain;
  transform: translateX(-50%); padding: 8px 18px calc(22px + var(--safe-b));
  border-radius: 24px 24px 0 0; border: 1px solid var(--edge); border-bottom: 0;
  background: linear-gradient(180deg, #1b1924, #0f0e15);
  box-shadow: 0 -30px 60px -20px #000;
  animation: sheetUp .32s cubic-bezier(.2,.9,.25,1) both;
}
@keyframes sheetUp { from { transform: translate(-50%, 100%); } }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: #3a3647; margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font: 700 17px/1.2 var(--display-font); letter-spacing: .06em; text-transform: uppercase; }

.search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; border-radius: 14px; background: #0b0a10; border: 1px solid #2c2838; color: var(--muted); }
.search-box:focus-within { border-color: rgba(46,242,255,.5); color: var(--cyan); }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 500 16px var(--body-font); }
.tabs { display: flex; gap: 6px; margin: 12px 0 6px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid #2c2838; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.tab.is-active { color: #000; background: var(--amber); border-color: var(--amber); }
.station-list { list-style: none; margin: 0; padding: 0; }
.station-item { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid #211e2a; cursor: pointer; border-radius: 10px; }
.station-item:hover, .station-item:focus-visible { background: rgba(255,255,255,.03); outline: none; }
.station-item.is-current .si-freq { color: var(--magenta); text-shadow: 0 0 10px rgba(255,61,139,.6); }
.si-freq { font: 700 20px/1 var(--display-font); color: var(--amber); min-width: 76px; font-variant-numeric: tabular-nums; }
.si-body { min-width: 0; flex: 1; }
.si-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-meta { font-size: 13px; color: var(--muted); }
.si-fav { color: var(--amber); }
.si-fav svg { width: 16px; height: 16px; fill: currentColor; }
.empty { padding: 26px 8px; text-align: center; color: var(--muted); }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.form input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #2c2838; background: #0b0a10; color: var(--text); font: 500 16px var(--body-font); outline: none; width: 100%; }
.form input:focus { border-color: rgba(46,242,255,.55); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-freq { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.freq-picker { display: flex; align-items: center; gap: 8px; }
.freq-picker input { text-align: center; font: 700 26px var(--display-font); color: var(--amber); width: 140px; height: 56px; flex: none; }
.freq-picker b { font: 500 14px var(--display-font); color: var(--amber); }
.mini { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #2c2838; background: #15131c; font-size: 22px; }
.form-freq small { font-size: 13px; }
.form-freq small.ok { color: var(--cyan); }
.form-freq small.bad { color: var(--magenta); }
.form-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.form-error { margin: 0; min-height: 1em; color: var(--magenta); font-size: 14px; font-weight: 500; }
.form-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.btn { height: 50px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1px solid transparent; }
.btn.primary { background: linear-gradient(180deg, var(--amber-hot), var(--amber)); color: #1a1000; box-shadow: 0 0 20px rgba(255,181,71,.25); }
.btn.primary:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: none; border-color: #3a3647; color: var(--text); }
.btn.wide { width: 100%; margin-top: 12px; }

.timer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timer-opt { height: 74px; border-radius: 16px; border: 1px solid #2c2838; background: #0e0d14; font: 700 26px/1 var(--display-font); color: var(--amber); display: grid; place-content: center; gap: 4px; }
.timer-opt small { font: 500 11px var(--body-font); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.timer-opt:hover, .timer-opt.is-active { border-color: var(--amber); box-shadow: 0 0 18px rgba(255,181,71,.2); }
.timer-custom { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.timer-custom label { flex: 1; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.timer-custom input { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #2c2838; background: #0b0a10; color: var(--text); font: 500 16px var(--body-font); }

.share-what { margin: 0 0 14px; color: var(--muted); }
.share-what b { color: var(--amber); font-family: var(--display-font); }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-btn { display: grid; place-items: center; height: 52px; border-radius: 14px; font-weight: 700; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.1); }
.share-btn.wa { background: #128c4a; } .share-btn.tg { background: #1c87c9; } .share-btn.fb { background: #1b5bd6; } .share-btn.x { background: #000; border-color: #444; }
.copy-row { display: flex; gap: 10px; margin-top: 14px; }
.copy-row input { flex: 1; min-width: 0; height: 50px; padding: 0 12px; border-radius: 12px; border: 1px solid #2c2838; background: #0b0a10; color: var(--muted); font: 500 14px var(--body-font); }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 12px; background: #1d1a27; border: 1px solid #34303f; box-shadow: 0 10px 30px #000;
  font-weight: 500; font-size: 14px; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }

/* station logo upload */
.logo-field { display: grid; gap: 6px; }
.lf-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.logo-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; border: 1px dashed #3a3647; background: #0b0a10; transition: border-color .2s, background .2s; }
.logo-drop.is-drop { border-color: var(--cyan); background: rgba(46,242,255,.06); }
.logo-preview { width: 64px; height: 64px; flex: none; border-radius: 14px; display: grid; place-items: center; overflow: hidden; color: #4a4558; background: repeating-conic-gradient(#14121b 0 25%, #100e16 0 50%) 0 0 / 14px 14px; border: 1px solid #2c2838; }
.logo-preview svg { width: 30px; height: 30px; }
.logo-drop.has-logo .logo-preview svg { display: none; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-drop.has-logo .logo-preview { border-color: rgba(255,181,71,.6); box-shadow: 0 0 18px rgba(255,181,71,.2); }
.lf-body { display: grid; gap: 6px; min-width: 0; flex: 1; justify-items: start; }
.lf-body small { color: var(--muted); font-size: 12px; }
.btn.sm { height: 38px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.lf-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: #221f2c; overflow: hidden; }
.lf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width .2s; }
.lf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lf-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: #0b0a10; border: 1px solid #2c2838; }
.lf-tab { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 12px 'Space Grotesk', sans-serif; letter-spacing: .02em; cursor: pointer; }
.lf-tab.on { background: #221f2c; color: var(--amber, #ffb547); box-shadow: inset 0 0 0 1px rgba(255,181,71,.35); }
.logo-link { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; border: 1px dashed #3a3647; background: #0b0a10; }
.logo-link .lf-body { justify-items: stretch; }
.logo-link input { width: 100%; }
.logo-link.has-logo .logo-preview svg { display: none; }
.logo-link.has-logo .logo-preview { border-color: rgba(255,181,71,.6); box-shadow: 0 0 18px rgba(255,181,71,.2); }
.logo-link .logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.radio[data-power="off"] .station-logo { opacity: .45; filter: grayscale(.6); }
.lf-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3a3647; background: #15131c; color: var(--muted); }

/* desktop: car-stereo landscape layout */
@media (min-width: 860px) {
  body { padding: 32px; }
  .radio {
    width: min(100%, 1040px); padding: 22px 24px 18px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas:
      "brand brand" "display controls" "display deck" "dial dial" "claim claim" "foot foot";
    column-gap: 22px;
  }
  .brand { grid-area: brand; }
  .display { grid-area: display; }
  .controls { grid-area: controls; align-self: end; }
  .deck { grid-area: deck; align-self: start; flex-direction: column; align-items: stretch; }
  .deck-btns { justify-content: space-between; }
  .deck-btns .chip { flex: 1; }
  .dial-wrap { grid-area: dial; }
  .dial { height: 110px; }
  .claim-btn { grid-area: claim; }
  .foot { grid-area: foot; }
  .freq { font-size: 112px; }
  .sheet { bottom: auto; top: 50%; border-radius: 24px; border-bottom: 1px solid var(--edge); transform: translate(-50%, -50%); animation: sheetPop .25s cubic-bezier(.2,.9,.25,1) both; }
  @keyframes sheetPop { from { opacity: 0; transform: translate(-50%, -46%); } }
  .sheet-grip { display: none; }
}
@media (max-width: 380px) {
  .radio { padding: 14px 10px 12px; gap: 12px; }
  .controls { gap: 6px; }
  .ctl { height: 54px; }
  .ctl-power { height: 66px; }
  .deck-btns .chip { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
