/* RadiosOn — site. Cores iguais às do app (Theme.kt). Sem fontes externas para abrir rápido em celular antigo. */
:root{
  --bg:#0F1218; --surf:#191D27; --surf2:#242A38; --ink:#F2F4F8; --muted:#8E96A8; --line:#262C3A;
  --amber:#FFB020; --on-amber:#1B1300; --amber-t:#FFB020; --live:#FF4D4D; --green:#3DD68C;
  --dock:#171B24; --shadow:0 10px 30px -14px rgba(0,0,0,.6);
  --f:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --r:14px; color-scheme:dark;
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
  --bg:#F5F6F8; --surf:#FFFFFF; --surf2:#E9ECF1; --ink:#151922; --muted:#5D6575; --line:#E1E4EA;
  --amber-t:#A35F00; --live:#D92D2D; --green:#13795B; --dock:#FFFFFF; --shadow:0 10px 30px -16px rgba(20,25,35,.35); color-scheme:light}}
:root[data-theme="light"]{
  --bg:#F5F6F8; --surf:#FFFFFF; --surf2:#E9ECF1; --ink:#151922; --muted:#5D6575; --line:#E1E4EA;
  --amber-t:#A35F00; --live:#D92D2D; --green:#13795B; --dock:#FFFFFF; --shadow:0 10px 30px -16px rgba(20,25,35,.35); color-scheme:light}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 var(--f);padding-bottom:140px;padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
a{color:inherit}
h1,h2,h3{margin:0;line-height:1.15;text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:6px}
.skip{position:absolute;left:12px;top:-60px;background:var(--amber);color:var(--on-amber);padding:10px 14px;border-radius:10px;z-index:50;font-weight:700}
.skip:focus{top:12px}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i .f,.i use{}
.wrap{max-width:1180px;margin:0 auto;padding-left:16px;padding-right:16px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
main.wrap{display:flex;flex-direction:column;gap:28px;padding-block:20px 32px;outline:none}

/* cabeçalho */
.top{position:sticky;top:0;z-index:20;background:var(--bg);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
@supports not (background:color-mix(in srgb,red,blue)){.top{background:var(--bg)}}
.top-in{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:10px 16px;padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:800;font-size:18px;letter-spacing:-.01em;white-space:nowrap}
.brand small{display:block;font-size:10.5px;font-weight:500;color:var(--muted);letter-spacing:0}
.lamp{width:34px;height:34px;border-radius:9px;border:2px solid var(--live);display:grid;place-items:center;color:var(--live);font:700 7.5px/1 ui-monospace,Consolas,monospace;letter-spacing:.06em;text-align:center;box-shadow:0 0 14px rgba(255,77,77,.35);box-shadow:0 0 14px color-mix(in srgb,var(--live) 35%,transparent)}
.sbox{order:3;flex:1 1 100%;display:flex;align-items:center;gap:8px;background:var(--surf);border:1px solid var(--line);border-radius:12px;padding:0 12px;color:var(--muted)}
.sbox input{flex:1;min-width:0;border:0;background:none;padding:10px 0;outline:none;color:var(--ink)}
.sbox:focus-within{border-color:var(--amber)}
.where{margin-left:auto;display:flex;align-items:center;gap:6px;background:var(--surf);border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;color:var(--amber-t);max-width:52vw}
.where span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.where .i{width:16px;height:16px}
.tnav{display:none}
.theme{background:none}
@media (min-width:860px){
  .sbox{order:0;flex:1 1 320px;max-width:440px}
  .where{margin-left:0}
  .tnav{display:flex;gap:18px;margin-left:auto;font-size:14px}
  .tnav a{text-decoration:none;color:var(--muted);padding:6px 0;border-bottom:2px solid transparent}
  .tnav a:hover,.tnav a[aria-current]{color:var(--ink)}
  .tnav a[aria-current]{border-color:var(--amber)}
}

/* blocos */
.hero{background:linear-gradient(120deg,var(--surf2),var(--surf) 65%);border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:16px}
.hero h1{font-size:clamp(24px,5vw,34px);font-weight:800;letter-spacing:-.02em}
.hero p{color:var(--muted);margin-top:6px;max-width:60ch}
.hero-b{display:flex;gap:10px;flex-wrap:wrap}
@media (min-width:860px){.hero{flex-direction:row;align-items:center;justify-content:space-between;padding:26px 28px}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--amber);color:var(--on-amber);border:0;border-radius:12px;padding:11px 16px;font-weight:700;text-decoration:none;white-space:nowrap;min-height:44px}
.btn .i{width:17px;height:17px}
.btn.ghost{background:var(--surf2);color:var(--ink);font-weight:600}
.btn:disabled{opacity:.5;cursor:default}
.lnk{background:none;border:0;padding:4px 0;color:var(--amber-t);font-weight:600;font-size:13px;text-decoration:none}
.blk{display:flex;flex-direction:column;gap:12px;min-width:0}
.sec{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.sec h2{font-size:18px;font-weight:800}
.h1s{font-size:26px;font-weight:800;letter-spacing:-.01em}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;background:var(--surf);border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:13px;text-decoration:none;white-space:nowrap}
.chip.on{background:var(--amber);border-color:var(--amber);color:var(--on-amber);font-weight:700}
.empty{color:var(--muted);background:var(--surf);border-radius:var(--r);padding:16px}
.empty .i{width:16px;height:16px;vertical-align:-3px}
.note{color:var(--muted);font-size:14px}
.note a{color:var(--amber-t);font-weight:600}

/* logo com iniciais (aparece se a imagem falhar) */
.lg{position:relative;width:46px;height:46px;border-radius:11px;flex:none;display:grid;place-items:center;overflow:hidden;
  background:hsl(var(--h,210) 55% 42%);color:#fff;font-weight:800;font-size:13px;letter-spacing:-.02em;text-align:center}
.lg img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;opacity:0}
.lg img.ok{opacity:1;background:#fff}
.lg-m{width:52px;height:52px}
.lg-xl{width:132px;height:132px;border-radius:26px;font-size:34px;box-shadow:var(--shadow)}

/* listas */
.list{list-style:none;display:grid;grid-template-columns:1fr;gap:8px}
@media (min-width:700px){.list{grid-template-columns:1fr 1fr}}
@media (min-width:1100px){.list{grid-template-columns:1fr 1fr 1fr}}
.it,.cd{display:flex;align-items:center;gap:4px;background:var(--surf);border:1px solid var(--line);border-radius:var(--r);padding:6px;min-width:0}
.it-a,.cd-a{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none;padding:2px}
.it-t{min-width:0;display:flex;flex-direction:column}
.it-t b{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it-t small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it.playing,.cd.playing{border-color:var(--amber)}
.cards{list-style:none;display:grid;grid-template-columns:1fr;gap:8px}
@media (min-width:560px){.cards{grid-template-columns:1fr 1fr}}
@media (min-width:900px){.cards{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1100px){.cards{grid-template-columns:repeat(4,1fr)}}
.ib{width:44px;height:44px;border-radius:50%;border:0;background:none;display:grid;place-items:center;color:var(--muted);flex:none}
.ib:hover{background:var(--surf2);color:var(--ink)}
.ib.pl{color:var(--amber-t)}
.ib.pl .i{width:18px;height:18px}
.i .f{fill:currentColor;stroke:none}
.ib[aria-pressed="true"]{color:var(--amber)}
.ib[aria-pressed="true"] .i{fill:currentColor}
.more{align-self:center}
.ufs{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ufs a{display:grid;grid-template-columns:36px 1fr;column-gap:8px;align-items:center;background:var(--surf);border:1px solid var(--line);border-radius:12px;padding:8px 10px;text-decoration:none}
.ufs b{grid-row:span 2;font:700 13px ui-monospace,Consolas,monospace;color:var(--amber-t)}
.ufs span{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ufs small{font-size:11.5px;color:var(--muted)}

/* página da rádio */
.crumbs{font-size:13px;color:var(--muted)}
.crumbs a{color:var(--muted)}
.st{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.st h1{font-size:clamp(24px,5vw,34px);font-weight:800;letter-spacing:-.02em}
.st-m{color:var(--muted);margin-top:6px}
.st-c{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}
.st-msg{margin-top:10px;font-size:14px;color:var(--muted);min-height:1.4em}
.st-msg a{color:var(--amber-t);font-weight:600}
@media (min-width:700px){.st{flex-direction:row;text-align:left;align-items:center;gap:26px}.st-c{justify-content:flex-start}}
.pb{width:48px;height:48px;border-radius:50%;border:0;background:var(--amber);color:var(--on-amber);display:grid;place-items:center;flex:none}
.pb .i{width:20px;height:20px}
.pb.big{width:64px;height:64px}
.pb.big .i{width:26px;height:26px}
.facts{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.facts li{display:flex;gap:10px;align-items:flex-start;background:var(--surf);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13.5px;color:var(--muted);min-width:0}
.facts b{display:block;color:var(--ink);font-size:13px}
.facts a{color:var(--amber-t);word-break:break-all}
.facts .ok{color:var(--green)}
.facts .ok .i{width:18px;height:18px;margin-top:1px}
.steps{padding-left:22px;display:flex;flex-direction:column;gap:6px;color:var(--muted)}
.steps b{color:var(--ink)}

/* busca */
.sbig{display:flex;align-items:center;gap:10px;background:var(--surf);border:2px solid var(--amber);border-radius:14px;padding:0 14px;color:var(--muted)}
.sbig input[type=search]{flex:1;min-width:0;border:0;background:none;padding:13px 0;font-size:16px;outline:none;color:var(--ink)}

/* player fixo */
.dock{position:fixed;left:0;right:0;bottom:58px;bottom:calc(58px + env(safe-area-inset-bottom,0px));z-index:30;padding:0 8px}
.dock-in{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:6px;background:var(--dock);border:1px solid var(--line);border-radius:16px;padding:6px 8px;box-shadow:var(--shadow)}
.dock-st{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none}
.dock .lg{width:42px;height:42px;font-size:12px}
.dock-err #dock-status{color:var(--live)}
.vol{display:flex;align-items:center;gap:6px;color:var(--muted)}
.vol input{width:90px;accent-color:var(--amber)}
.hide-s{display:none}
@media (min-width:860px){
  body{padding-bottom:96px}
  .dock{bottom:0;padding:0}
  .dock-in{border-radius:0;border-width:1px 0 0;padding:10px 16px;padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));max-width:none;box-shadow:none}
  .dock .lg{width:46px;height:46px}
  .hide-s{display:grid}
  .vol.hide-s{display:flex}
}
.eq{display:none;gap:2px;align-items:flex-end;height:14px;width:15px;margin:0 4px}
.eq b{width:3px;background:var(--amber);border-radius:1px;animation:eq 1s ease-in-out infinite}
.eq b:nth-child(2){animation-delay:-.4s}.eq b:nth-child(3){animation-delay:-.7s}.eq b:nth-child(4){animation-delay:-.2s}
.dock.on .eq{display:flex}
@keyframes eq{0%,100%{height:30%}50%{height:100%}}
@media (prefers-reduced-motion:reduce){.eq b{animation:none;height:70%}}

/* barra de baixo (celular) */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:31;display:flex;justify-content:space-around;background:var(--bg);border-top:1px solid var(--line);padding:6px;padding:6px max(6px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px))}
.bnav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--muted);text-decoration:none;min-width:64px;padding:2px 0}
.bnav a[aria-current]{color:var(--amber-t)}
@media (min-width:860px){.bnav{display:none}}

/* escolher cidade */
.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:rgba(5,7,10,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet-in{width:100%;max-width:440px;background:var(--surf);border-radius:20px 20px 0 0;padding:18px;padding:18px max(18px,env(safe-area-inset-right,0px)) calc(22px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:10px}
@media (min-width:600px){.sheet{align-items:center}.sheet-in{border-radius:20px}}
.sheet-h{display:flex;justify-content:space-between;align-items:center}
.sheet-h h2{font-size:20px;font-weight:800}
.sheet label{font-size:13px;font-weight:600;margin-top:4px}
.sheet select{width:100%;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);min-height:44px}
.sheet .btn{margin-top:8px}

/* rodapé */
.foot{border-top:1px solid var(--line);margin-top:20px}
.foot-in{display:flex;flex-direction:column;gap:6px;padding-block:20px;font-size:13.5px;color:var(--muted)}
.foot b{color:var(--ink)}
.foot-l{display:flex;flex-wrap:wrap;gap:6px 18px}
.foot-l a{color:var(--ink)}

/* cidades, emissoras oficiais, textos */
.crumbs span{color:var(--ink)}
.towns{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.towns a{display:inline-block;background:var(--surf);border:1px solid var(--line);border-radius:999px;padding:5px 11px;font-size:13px;text-decoration:none}
.off{list-style:none;display:grid;grid-template-columns:1fr;gap:6px}
@media (min-width:700px){.off{grid-template-columns:1fr 1fr}}
.off li{display:flex;align-items:center;gap:10px;background:var(--surf);border:1px dashed var(--line);border-radius:12px;padding:9px 12px;font-size:14px;min-width:0}
.off li span:last-child{min-width:0;overflow-wrap:anywhere}
.tag{flex:none;font:600 11.5px ui-monospace,Consolas,monospace;background:var(--surf2);color:var(--amber-t);border-radius:6px;padding:3px 7px;white-space:nowrap}
.doc{max-width:68ch;display:flex;flex-direction:column;gap:12px}
.doc h2{font-size:19px;font-weight:800;margin-top:10px}
.doc ul{padding-left:20px;display:flex;flex-direction:column;gap:6px}
.doc p,.doc li{color:var(--muted)}
.doc b{color:var(--ink)}
.doc a{color:var(--amber-t);font-weight:600}

/* banners: discretos, sempre marcados como publicidade */
.ad{position:relative;display:block;border-radius:var(--r);overflow:hidden;background:var(--surf);border:1px solid var(--line);max-width:640px;width:100%;align-self:center}
.ad a,.ad .ad-in{display:block;line-height:0}
.ad img{display:block;width:100%;height:auto;aspect-ratio:3.2/1;object-fit:cover}
.ad-tag{position:absolute;right:8px;top:8px;background:rgba(10,12,16,.72);color:#E8EBF1;font-size:10.5px;font-weight:600;letter-spacing:.03em;border-radius:5px;padding:2px 6px;line-height:1.4}
.ad-li{list-style:none;grid-column:1/-1}
.ad-li .ad,.ad-li.ad{max-width:none}
.foot-ad{padding-block:0 8px}
.foot-ad .ad{max-width:728px;margin:0 auto}
.cols2{display:flex;flex-direction:column;gap:28px;min-width:0}
.cols-main{display:flex;flex-direction:column;gap:28px;min-width:0}
.cols-side{display:none}
@media (min-width:1100px){
  .cols2.has-side{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start}
  .cols2.has-side .cols-side{display:block;position:sticky;top:84px}
  .cols2.has-side .list{grid-template-columns:1fr 1fr}
}

/* formulários */
.form{display:flex;flex-direction:column;gap:8px;min-width:0}
.card-f{background:var(--surf);border:1px solid var(--line);border-radius:16px;padding:18px;max-width:720px}
.lbl{font-size:13.5px;font-weight:700;color:var(--ink);margin-top:6px}
.small{font-size:12.5px}
.form input:not([type=radio]):not([type=checkbox]):not([type=file]),.form select,.form textarea,#alarm-time{width:100%;min-width:0;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);min-height:44px}
.form textarea{resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--amber);outline-offset:0;border-color:transparent}
.row2{display:flex;gap:8px;align-items:center}
.row2 input{flex:1}
.grid2{display:grid;grid-template-columns:1fr;gap:4px 12px}
@media (min-width:600px){.grid2{grid-template-columns:200px 1fr}}
.grid2>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.opts{border:0;padding:0;margin:4px 0 0;display:flex;flex-direction:column;gap:6px;min-width:0}
.opts label:not(.lbl){display:flex;gap:10px;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14.5px;cursor:pointer}
.opts input[type=radio]{accent-color:var(--amber);width:18px;height:18px}
.wrap-chips{flex-wrap:wrap;overflow:visible}
label.chip{cursor:pointer}
label.chip:has(input:checked){background:var(--amber);border-color:var(--amber);color:var(--on-amber);font-weight:700}
label.chip.on{background:var(--amber);border-color:var(--amber);color:var(--on-amber);font-weight:700}
.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.form-msg,.test-msg{font-size:14px;font-weight:600;min-height:1.2em}
.form-msg.ok,.test-msg.ok{color:var(--green)}
.form-msg.err,.test-msg.err{color:var(--live)}
.form .btn[type=submit]{align-self:flex-start;margin-top:8px}
.st-rep{margin-top:6px}
.st-rep .lnk{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:600}
.st-rep .i{width:15px;height:15px}
.sheet-in{max-height:92vh;overflow-y:auto}
.chip.on{background:var(--amber);border-color:var(--amber);color:var(--on-amber);font-weight:700}
#dock-clock{position:relative}
.clock-badge{position:absolute;top:4px;right:2px;background:var(--amber);color:var(--on-amber);font-size:10px;font-weight:800;border-radius:999px;padding:0 5px;line-height:16px}

/* modo fácil: letras e botões maiores, menos coisas na tela */
html.easy body{font-size:18px}
html.easy .it-t b{font-size:18px}
html.easy .it-t small{font-size:14.5px}
html.easy .lg{width:58px;height:58px;font-size:15px}
html.easy .lg-xl{width:150px;height:150px}
html.easy .ib{width:52px;height:52px}
html.easy .ib .i{width:24px;height:24px}
html.easy .it,html.easy .cd{padding:10px}
html.easy .list{grid-template-columns:1fr}
html.easy .cards{grid-template-columns:1fr}
html.easy .sec h2{font-size:22px}
html.easy .chips,html.easy .ufs,html.easy .ad,html.easy .ad-li,html.easy .foot-ad{display:none!important}
html.easy .pb{width:64px;height:64px}
html.easy .pb .i{width:28px;height:28px}
html.easy .dock .lg{width:52px;height:52px}
html.easy .btn{font-size:18px;min-height:54px;padding:12px 20px}
html.easy .bnav a{font-size:13px}
html.easy [data-easy-toggle]{background:var(--amber);color:var(--on-amber)}
.aa{font-weight:800;font-size:16px;letter-spacing:-.02em}
html.easy .top .ib{width:44px;height:44px}

/* conectar aparelhos */
.sync{background:var(--surf);border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;max-width:720px}
.sync h2{font-size:18px;font-weight:800;display:flex;align-items:center;gap:8px}
.sync h2 .i{color:var(--green)}
.row-b{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.code-big{font:800 44px/1 ui-monospace,Consolas,monospace;letter-spacing:.08em;color:var(--amber-t);margin:4px 0}
.qr{width:150px;height:150px;background:#fff;border-radius:10px;padding:6px}
.qr:empty{display:none}
.qr svg{width:100%;height:100%;display:block}
.code-in{font:700 24px ui-monospace,Consolas,monospace!important;letter-spacing:.15em;text-align:center;max-width:220px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.steps-l{padding-left:20px;display:flex;flex-direction:column;gap:6px;color:var(--muted)}
.steps-l b{color:var(--ink)}

/* filtro FM / AM / Web */
.bands{display:flex;gap:8px;flex-wrap:wrap}
.bands .chip{cursor:pointer;min-height:36px}
.bands .chip:disabled{opacity:.45;cursor:default}
.band-empty{margin:0}
