/*
Theme Name: Los 40 Santiago
Description: Página de radio con logo, foto de fondo y reproductor integrado (funciona en http y https). Título, streaming, imágenes, redes y colores se editan en Apariencia > Personalizar > Radio y Apariencia > Fondo.
Version: 2.0
Text Domain: los40-santiago
*/
:root{--accent:#2b9bff}
*{box-sizing:border-box}
body{margin:0;color:#222;font-family:Roboto,Arial,sans-serif;line-height:1.5;min-height:100vh;display:flex;flex-direction:column}
img{max-width:100%;height:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* cabecera: logo + WhatsApp + redes */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 24px;background:rgba(255,255,255,.9);box-shadow:0 2px 12px rgba(0,0,0,.18)}
.topbar .logo{display:block;line-height:0}
.topbar .logo img,.topbar .custom-logo{height:52px;width:auto}
.topbar .redes{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.topbar .wa{background:#2e9116;color:#fff;font-weight:700;font-size:14px;padding:7px 12px;border-radius:4px;text-decoration:none;white-space:nowrap}
.topbar .ico{width:36px;height:36px;border-radius:50%;background:#222;display:flex;align-items:center;justify-content:center}
.topbar .ico:hover{background:var(--accent)}
.topbar .ico svg{width:18px;height:18px;fill:#fff}

/* tarjeta: imagen principal + reproductor pegado debajo */
.home{flex:1;display:flex;align-items:center;justify-content:center;padding:32px 16px}
.tarjeta{width:100%;max-width:740px;border-radius:12px;overflow:hidden;background:#000;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.tarjeta .banner{display:block;width:100%;height:auto}

/* reproductor: carátula a la izquierda + panel oscuro, como el widget original */
.player{width:100%;height:110px;display:flex;background:#1c1c1c;color:#fff;border-top:1px solid #333}
.player .art{flex:none;width:110px;height:110px;background:#000}
.player .art img{display:block;width:100%;height:100%;object-fit:cover}
.player .ctl{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:0 18px}
.player .nowplay{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.player .bar{display:flex;align-items:center;gap:14px}
.player button{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;outline:0}
.player button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.player svg{width:20px;height:20px;fill:#fff;display:block}
.player .vol{width:22px;height:22px;flex:none}
.player input[type=range]{flex:1;min-width:0;accent-color:var(--accent)}

.pie{padding:14px 16px;text-align:center;font-size:13px;color:#fff;background:rgba(0,0,0,.6)}

/* páginas y entradas comunes */
.entry{flex:1;max-width:760px;margin:24px auto;padding:24px 16px;background:rgba(255,255,255,.92);border-radius:8px}

@media(max-width:560px){.topbar{padding:8px 12px;gap:8px}.topbar .logo img,.topbar .custom-logo{height:38px}.topbar .redes{flex-wrap:nowrap;gap:6px}.topbar .wa{font-size:11px;padding:6px 7px}.topbar .ico{width:30px;height:30px}.topbar .ico svg{width:16px;height:16px}}
