
:root{font-family:Manrope,Inter,system-ui,sans-serif;color:#f4eee6;background:#151515}*{box-sizing:border-box}body{margin:0;padding:22px 14px}.app{max-width:520px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}h1{font-size:25px;letter-spacing:2px;color:#d8b78d;margin:0}p{color:#aaa;margin:5px 0 20px}.panel{background:linear-gradient(140deg,#383838,#242424);border:1px solid #555;border-radius:19px;padding:17px;margin:15px 0}.eyebrow{font-size:12px;color:#d8b78d;letter-spacing:1px;text-transform:uppercase}button,select,input{font:inherit}button{border:1px solid #68615a;background:#333;color:#f7f1e9;border-radius:12px;padding:11px;cursor:pointer}button:focus-visible{outline:2px solid #d8b78d}.countries{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.countries button{font-size:13px;min-height:62px}.countries button.active{border-color:#d8b78d;background:#51463a}input{width:100%;background:#262626;border:1px solid #555;color:white;border-radius:12px;padding:13px;margin:12px 0}.station{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #494949;padding:12px 0}.station small{color:#aaa;display:block;margin-top:5px}.station button{color:#d8b78d;min-width:65px}.player{position:sticky;bottom:8px;background:#242424;border:1px solid #ae8b62;border-radius:18px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.player strong{display:block}.player small{color:#aaa}#status{font-size:13px;color:#bbb}#countryTitle{margin:10px 0}a{color:#d8b78d}
/* ---------- Press feel, active station, soft info change (2026-10-19) ---------- */
/* Idle buttons keep their smoky NOW look; only the pressed and selected states are added. */
.countries button,.station button,#toggle{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .26s cubic-bezier(.2,.8,.2,1),box-shadow .26s ease,background-color .26s ease,border-color .26s ease,color .26s ease;
}
.countries button.is-pressed,.station button.is-pressed,#toggle.is-pressed,
.countries button:active,.station button:active,#toggle:active{
  transform:scale(.955);
  box-shadow:inset 0 3px 7px rgba(0,0,0,.55),inset 0 1px 2px rgba(0,0,0,.45);
  transition-duration:.07s;
}
/* Selected station stays slightly pressed in, with a muted bronze glow. */
.station button.is-active{
  transform:scale(.97);
  background:#2b2622;border-color:#ae8b62;color:#e3c7a2;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.55),inset 0 0 0 1px rgba(216,183,141,.12),0 0 12px rgba(174,139,98,.28);
}
.station button.is-active.is-pressed,.station button.is-active:active{transform:scale(.95)}
/* Station name and status change with a short cross-fade instead of jumping. */
#nowPlaying,#playStatus{transition:opacity .22s ease,transform .22s ease}
#nowPlaying.is-swapping,#playStatus.is-swapping{opacity:0;transform:translateY(3px);transition-duration:.16s}
@media (prefers-reduced-motion:reduce){
  .countries button,.station button,#toggle,#nowPlaying,#playStatus{transition:none}
  .countries button.is-pressed,.station button.is-pressed,#toggle.is-pressed,.station button.is-active,
  .countries button:active,.station button:active,#toggle:active{transform:none}
}

/* Keep the full station list reachable on laptop screens and in embedded app browsers. */
html{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}body{height:auto;min-height:100vh;overflow-x:hidden;overflow-y:visible;padding-bottom:120px}.app{min-height:100vh;padding-bottom:20px}.player{z-index:5}.page-actions{display:flex;gap:10px;margin:0 0 20px}.page-actions button,.page-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid #68615a;border-radius:12px;background:#333;color:#f4eee6;text-decoration:none;font-size:14px}.page-actions button:hover,.page-actions a:hover{background:#51463a}@media(max-width:600px){html{scrollbar-gutter:auto}body{padding-bottom:100px}}

/* Wide-screen NOW Radio: country selector on the left, station list on the right. */
.radio-columns{display:block}
@media (min-width:850px){
  .app{max-width:1160px}
  .radio-columns{display:grid;grid-template-columns:minmax(320px,0.9fr) minmax(400px,1.1fr);gap:22px;align-items:start}
  .radio-country-column,.radio-stations-column{min-width:0}
  .radio-columns .panel{margin:14px 0}
  .radio-stations-column .panel{min-height:420px}
  #stations{max-height:min(65vh,720px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px}
  .player{margin-top:18px}
}

/* Actual flag images remain colorful on Windows, Android and iOS. */
.country-flag{display:inline-block;width:24px;height:18px;object-fit:cover;vertical-align:-3px;border-radius:2px;margin-right:4px;box-shadow:0 1px 3px rgba(0,0,0,.22)}
.countries button .country-flag{vertical-align:-4px}

/* Optional personal country addition, same dark-glass style as country buttons. */
.add-country-toggle{width:100%;margin-top:10px;border:1px dashed #ae8b62;color:#d8b78d;min-height:48px}
.add-country-form{margin-top:12px;padding:14px;border:1px solid #555;border-radius:14px;background:#262626}
.add-country-form[hidden]{display:none}
.add-country-form label{display:block;font-size:13px;color:#d8b78d}
.add-country-form input{margin:8px 0}
.add-country-form button{background:#51463a;border-color:#ae8b62}
#addCountryStatus{font-size:12px;color:#bbb;margin-top:9px}

/* Plus occupies exactly one country grid cell; search field remains independent. */
.countries .add-country-tile{display:flex;align-items:center;justify-content:center;min-height:62px;font-size:29px;font-weight:300;color:#d8b78d;border:1px dashed #ae8b62;background:#303030}
.countries .add-country-tile:hover{background:#51463a;border-style:solid}

/* NOW Sound-inspired atmospheric city photo behind smoky glass radio panels. */
:root{background:#111}
body{position:relative;isolation:isolate;background:transparent;color:#f4eee6}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:linear-gradient(90deg,rgba(9,10,13,.60),rgba(9,10,13,.30) 48%,rgba(9,10,13,.55)),var(--radio-city-image,url('/brand/hero-city.webp'));background-size:cover;background-position:center center;filter:saturate(.85)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.36))}
.panel{background:linear-gradient(145deg,rgba(25,25,27,.60),rgba(9,9,12,.47));border:1px solid rgba(232,224,211,.23);box-shadow:0 18px 48px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(16px) saturate(1.12);-webkit-backdrop-filter:blur(16px) saturate(1.12)}
.player{background:rgba(18,18,20,.70);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 12px 36px rgba(0,0,0,.30)}
.countries button{background:rgba(40,40,43,.66);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.countries button.active{background:rgba(112,89,65,.73)}
input{background:rgba(18,18,21,.64)}
@media(max-width:600px){body::before{background-position:50% center}.panel{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}

/* Visitor-local weather clock in the same floating smoked-glass NOW visual language. */
.radio-local{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin:8px 0 20px;padding:12px 17px;border:1px solid rgba(232,224,211,.27);border-radius:19px;background:linear-gradient(130deg,rgba(28,28,31,.62),rgba(8,8,11,.45));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 14px 35px rgba(0,0,0,.17)}
.radio-local-city{font-size:13px;color:#e3c7a2;font-weight:650}.radio-local-clock{font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;color:#fff}.radio-local-weather{font-size:14px;color:#f4eee6}
@media(min-width:850px){.radio-local{max-width:100%}}
/* Desktop: raised hover like EMMILY, with selected radio visually unmistakable. */
@media(hover:hover) and (pointer:fine){
  .countries button:hover,.station button:hover,.page-actions button:hover,.page-actions a:hover,#toggle:hover,.radio-local :is(.radio-local-city,.radio-local-clock,.radio-local-weather):hover{
    transform:translateY(-3px) scale(1.07);box-shadow:0 12px 26px rgba(0,0,0,.32),0 3px 8px rgba(0,0,0,.18);position:relative;z-index:2
  }
  .station button.is-active:hover{transform:translateY(-3px) scale(1.07)}
}
.station button.is-playing{background:rgba(130,99,65,.78);border-color:#e3c7a2;color:#fff;box-shadow:0 0 0 1px rgba(227,199,162,.24),0 6px 19px rgba(0,0,0,.28)}
.station button.is-playing::before{content:'●';display:inline-block;color:#e3c7a2;font-size:8px;margin-right:5px;vertical-align:2px}
.station button{min-width:94px;white-space:nowrap}
.radio-local :is(.radio-local-city,.radio-local-clock,.radio-local-weather){display:inline-block;padding:5px 7px;border-radius:9px;transition:transform .22s ease,box-shadow .22s ease}
@media(hover:none) and (pointer:coarse){.station button:active,.countries button:active,#toggle:active{transform:translateY(2px) scale(.96);box-shadow:inset 0 3px 8px rgba(0,0,0,.45)}}
@media(prefers-reduced-motion:reduce){.radio-local :is(.radio-local-city,.radio-local-clock,.radio-local-weather){transition:none!important}}

/* Inline status beside LIVE — no separate weather panel or frame. */
header .radio-header-right{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}
header .radio-live{white-space:nowrap}
header .radio-local{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:0;padding:0;max-width:none;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
header .radio-local-city{font-size:12px;font-weight:500;color:inherit}
header .radio-local-clock{font-size:15px;font-weight:650;color:inherit}
header .radio-local-weather{font-size:13px;color:inherit}
header .radio-local :is(.radio-local-city,.radio-local-clock,.radio-local-weather){padding:0;border-radius:0;box-shadow:none}
@media(max-width:640px){header{align-items:flex-start;gap:8px}header .radio-header-right{gap:8px;justify-content:flex-start}header .radio-local{gap:4px 9px}header .radio-local-city{display:none}header .radio-local-clock{font-size:13px}header .radio-local-weather{font-size:12px}}

/* Atmospheric weather over the city photo, never over clickable controls. */
#radio-weather-fx{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1;isolation:isolate}
body>.app{position:relative;z-index:2}
.radio-fx-particle{position:absolute;left:var(--x);top:-12%;animation:radio-weather-fall var(--duration) linear var(--delay) infinite;transform:scale(var(--scale));will-change:transform}
.radio-fx-particle.rain{width:3px;height:35px;border-radius:90%;background:linear-gradient(180deg,transparent,rgba(208,233,255,.87),rgba(255,255,255,.38));box-shadow:0 0 5px rgba(183,223,255,.6);filter:drop-shadow(1px 1px 2px rgba(0,0,0,.3))}
.radio-fx-particle.snow{font-size:24px;color:rgba(255,255,255,.88);text-shadow:0 2px 5px rgba(0,0,0,.25)}
.radio-fx-particle.wind{font-size:38px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));animation-name:radio-weather-wind}
.radio-fx-sun{position:absolute;width:35vw;height:35vw;min-width:230px;min-height:230px;right:5%;top:-12%;border-radius:50%;background:radial-gradient(circle,rgba(255,237,158,.46) 0%,rgba(255,219,130,.19) 26%,transparent 68%);animation:radio-sun-sweep 14s ease-in-out infinite alternate}
@keyframes radio-weather-fall{from{transform:translate3d(0,-10vh,0) scale(var(--scale))}to{transform:translate3d(-8vw,120vh,0) scale(var(--scale))}}
@keyframes radio-weather-wind{from{transform:translate3d(-30vw,0,0) rotate(-30deg) scale(var(--scale))}to{transform:translate3d(110vw,110vh,0) rotate(540deg) scale(var(--scale))}}
@keyframes radio-sun-sweep{from{transform:translateX(-10vw);opacity:.6}to{transform:translateX(12vw);opacity:1}}
@media(prefers-reduced-motion:reduce){#radio-weather-fx *{animation:none!important}}
