/* Radio Data 1.2: shared visual rules, including controls inside stacked dialogs. */
:root{color-scheme:dark;--field-border:#344660;--focus-ring:0 0 0 3px #4fd1c530}
[hidden]{display:none!important}
.rd-select-source{display:none!important}
.rd-select{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0;min-height:46px;padding:12px 14px;border:1px solid var(--field-border);border-radius:10px;background:var(--panel-2);color:var(--text);font:inherit;font-size:14px;text-align:left;cursor:pointer;line-height:1.45;box-sizing:border-box}
.select-value{min-width:0;white-space:normal;overflow-wrap:anywhere;flex:1}
.select-chevron{width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:0 3px 5px}
.rd-select:hover{border-color:#526580}.rd-select[aria-expanded=true]{border-color:var(--accent);box-shadow:var(--focus-ring)}
button,input,textarea,select,a{outline:none}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
input:focus-visible,textarea:focus-visible,select:focus-visible{border-color:var(--accent)!important;box-shadow:var(--focus-ring);outline:0}
input[type=search],input[type=number],input[type=datetime-local],input:not([type]),textarea{background:var(--panel-2);color:var(--text);border:1px solid var(--field-border);border-radius:10px;padding:11px 12px;line-height:1.45;font-family:inherit;min-width:0}
input::placeholder,textarea::placeholder{color:#9aa8be;opacity:1}textarea{resize:vertical}
input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.btn,.icon-btn,.band-tab,.menu-button{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.btn{min-height:44px}.btn.small{min-height:38px}.icon-btn{flex-shrink:0}
.checkbox{display:flex;align-items:center;gap:10px;font-size:13px;min-height:40px;white-space:normal;line-height:1.45;color:#b8c5d8}
.checkbox input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;flex:0 0 21px;width:21px;height:21px;min-width:21px;min-height:21px;margin:0;border:1.5px solid #607189;border-radius:5px;background:var(--panel-2);cursor:pointer;padding:0}
.checkbox input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
.checkbox input[type=checkbox]:checked::after{content:'';width:9px;height:5px;border-left:2px solid #06231f;border-bottom:2px solid #06231f;transform:rotate(-45deg);margin-top:-2px}
.checkbox input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.filter-grid{align-items:start}.filter-grid label,.field{line-height:1.4;font-size:13px}
#view-explorar .filter-grid{grid-template-columns:1fr}
#view-explorar .toolbar{justify-content:space-between;align-items:center;gap:10px}
#view-bandas .band-filters{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:12px 0}
.band-filters>.field{width:100%;margin:0}.band-filters input{width:100%;font-size:14px}
#bandas-meterband-row{width:100%;margin-top:12px;margin-bottom:0}#bandas-meterband-row .rd-select{flex:1}
#view-ahora>.toolbar{display:grid;grid-template-columns:1fr;gap:10px}#ahora-count{margin-left:0}
#bandas-count,#freq-count,#idioma-count,#curiosidades-count{display:block;line-height:1.5}
/* Give station names their own full row; reception no longer competes for width. */
.card{display:grid;grid-template-columns:minmax(0,1fr) 42px;column-gap:10px;row-gap:7px;padding:14px;align-items:start}
.card-freq{grid-column:1;grid-row:1;flex-direction:row;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.card-freq .f{font-size:17px}.card-freq .band{margin:0;font-size:11px}
.card-main{grid-column:1/-1;grid-row:2;min-width:0}
.card-main .station{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:15px;line-height:1.45}
.card-main .sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin-top:3px;color:#b3c1d5}
.card-side{grid-column:1/-1;grid-row:3;min-width:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #ffffff0b;padding-top:9px;margin-top:2px;text-align:left}
.card-status{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1.4}.card-side .live-dot{margin:0;width:6px;height:6px;flex-shrink:0}
.fav-btn{grid-column:2;grid-row:1;align-self:start;justify-self:end;display:grid;place-items:center;width:42px;height:38px;margin:-5px -5px -5px 0;padding:5px;font-size:25px;border-radius:8px}
.rec-chip{font-size:11px;line-height:1.45;padding:2px 8px;white-space:normal;overflow-wrap:anywhere}.rec-chip.big{font-size:13px}
.loc-banner{flex-wrap:wrap;line-height:1.5}.loc-banner .btn{flex-shrink:0}
.empty{border:1px dashed var(--border);border-radius:12px;padding:22px 16px;line-height:1.6;margin:14px 0;color:#b3c1d5}
/* Consistent themed popups. Existing nested popup behavior is preserved. */
dialog{padding:20px;border-radius:16px;border:1px solid #344660;box-shadow:0 20px 70px #0007;max-height:85vh;max-height:85dvh;scrollbar-color:#42566f var(--panel);line-height:1.5}
dialog::backdrop{background:#03081199}dialog h2{font-size:19px;line-height:1.3;margin-bottom:16px}
dialog .dialog-actions{gap:10px;flex-wrap:wrap;padding:12px 0 8px;bottom:-20px;margin-top:16px;border-top:1px solid #ffffff0b;background:var(--panel)}
#settings-dialog .btn.small,#rd-select-close{min-height:34px;font-size:13px;padding:6px 12px}
#detail-content .row{line-height:1.5}.tag{white-space:normal;overflow-wrap:anywhere}.rd-detail-actions{display:grid;grid-template-columns:1fr}
#rd-select-dialog{width:min(560px,92vw);padding:18px;overflow:hidden;max-height:85vh;max-height:85dvh}
#rd-select-dialog[open]{display:flex;flex-direction:column}
.picker-heading{flex-shrink:0}.picker-heading h2{margin:0 0 5px}.picker-heading .small-print{margin-bottom:4px}
#rd-select-search-wrap{flex-shrink:0;margin:12px 0}#rd-select-search{width:100%;font-size:15px;min-height:44px}
#rd-select-options{overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-color:#42566f var(--panel);margin-top:10px;padding:3px}
.picker-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;width:100%;border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:10px;padding:12px 14px;margin:0 0 8px;text-align:left;font-size:15px;line-height:1.45;cursor:pointer}
.picker-option>span:first-child{min-width:0;overflow-wrap:anywhere;white-space:normal}.picker-option[aria-checked=true]{border-color:var(--accent);background:#173432}
.picker-indicator{width:19px;height:19px;flex:0 0 19px;border:1.5px solid #74859c;border-radius:50%;display:grid;place-items:center}
.picker-option[aria-checked=true] .picker-indicator{border-color:var(--accent)}.picker-option[aria-checked=true] .picker-indicator::after{content:'';width:9px;height:9px;background:var(--accent);border-radius:50%}
#rd-select-dialog .dialog-actions{position:static;flex-shrink:0;margin-top:8px;padding-bottom:0}#rd-select-empty{margin:8px 0}
#local-clock{color:#b0bed1}
@media(min-width:600px){#view-explorar .filter-grid{grid-template-columns:1fr 1fr}.rd-detail-actions{grid-template-columns:1fr 1fr}}
@media(max-width:380px){.filter-grid{grid-template-columns:1fr}.topbar{padding-left:12px;padding-right:12px}.brand h1{font-size:14px}.brand .logo{display:none}.brand-sub{font-size:12px}dialog{padding:16px}dialog .dialog-actions{bottom:-16px}.card{padding:12px}.card-side{align-items:flex-start;justify-content:flex-start}#header-clocks{margin-right:4px}}
@media(max-height:500px){dialog,#rd-select-dialog{max-height:94vh;max-height:94dvh}}
