/* Scotlander Radio */
.sr-root, .sr-bar { --sr-accent: #b58c51; --sr-ink: #173b35; --sr-mute: #52665d; --sr-line: #d5d6cf; --sr-bg: #fffdf8; font-family: inherit; box-sizing: border-box; }
.sr-root *, .sr-bar * { box-sizing: border-box; }

/* Botón de reproducción */
.sr-btn { border: 0; cursor: pointer; font: inherit; background: none; color: inherit; padding: 0; }
.sr-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sr-accent); color: #102b27; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.sr-play:hover { transform: scale(1.06); }
.sr-play:focus-visible, .sr-chip:focus-visible, .sr-fav:focus-visible { outline: 3px solid var(--sr-accent); outline-offset: 2px; }
.sr-ico { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.sr-play.is-playing .sr-ico { width: 14px; height: 14px; border: 0; margin: 0; background: currentColor; border-radius: 2px; }
.sr-play.is-waiting { animation: sr-blink 1s ease-in-out infinite; }
.sr-play--big { width: 72px; height: 72px; }
.sr-play--big .sr-ico { border-width: 13px 0 13px 21px; margin-left: 5px; }
.sr-play--big.is-playing .sr-ico { width: 22px; height: 22px; }
.sr-play--sm { width: 36px; height: 36px; }
.sr-play--sm .sr-ico { border-width: 6px 0 6px 10px; }
.sr-play--sm.is-playing .sr-ico { width: 11px; height: 11px; }
@keyframes sr-blink { 50% { box-shadow: 0 0 0 8px rgba(0,0,0,.12); } }

/* Iniciales cuando no hay logo */
.sr-ini { display: inline-flex; align-items: center; justify-content: center; background: var(--sr-accent); color: #102b27; font-weight: 700; letter-spacing: .02em; }

/* Barra fija */
.sr-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; align-items: center; gap: 12px; padding: 6px 16px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); background: #173b35; border-top: 2px solid #b58c51; box-shadow: 0 -4px 18px rgba(0,0,0,.12); color: #fffdf8; --sr-mute: #e1dfd4; --sr-line: #657d70; }
.sr-bar-logo { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; flex: none; font-size: 14px; }
.sr-bar-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sr-bar-title { font-size: 14px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-bar-sub { font-size: 12px; color: var(--sr-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-live-dot { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #f0d5a8; white-space: nowrap; }
.sr-live-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c62828; margin-right: 6px; vertical-align: 1px; }
.sr-bar.is-on .sr-live-dot::before { animation: sr-pulse 1.4s infinite; }
.sr-golive { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--sr-line); }
.sr-ghost { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; color: var(--sr-mute); }
.sr-ghost:hover { background: #294c43; }
body:has(.sr-bar) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .sr-live-dot, .sr-ghost { display: none; } .sr-bar { gap: 8px; padding-left: 10px; padding-right: 10px; } .sr-bar-title { font-size: 13px; } .sr-bar-sub { font-size: 11px; } .sr-bar-logo { width: 44px; height: 44px; } .sr-golive { max-width: 90px; font-size: 11px; } }

/* Página completa */
.sr-root { color: var(--sr-ink); margin: 0 0 2em; }
.sr-hero { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 14px; background: linear-gradient(135deg, #173b35, #102b27); color: #fff; }
.sr-hero-logo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; font-size: 32px; background: rgba(255,255,255,.15); }
.sr-hero-meta { flex: 1; min-width: 0; }
.sr-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sr-pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5252; margin-right: 4px; animation: sr-pulse 1.4s infinite; }
@keyframes sr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,82,82,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,82,82,0); } 100% { box-shadow: 0 0 0 0 rgba(255,82,82,0); } }
.sr-hero-name { margin: 4px 0 2px !important; font-size: 28px !important; line-height: 1.15 !important; color: #fff !important; }
.sr-hero-now { margin: 0 !important; font-size: 16px; opacity: .95; }
.sr-hero-prog { margin: 4px 0 0 !important; font-size: 13px; opacity: .8; }
.sr-hero .sr-play { background: #fff; color: var(--sr-accent); }

.sr-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--sr-line); border-radius: 999px; font-size: 13px; background: var(--sr-bg); cursor: pointer; color: var(--sr-ink); margin: 0; }
.sr-chip select { border: 0; background: none; font: inherit; padding: 0; height: auto; }
.sr-chip input[type="checkbox"] { margin: 0; }
.sr-vol input { width: 90px; }

.sr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sr-line); margin: 18px 0 0; }
.sr-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--sr-mute); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sr-tabs button.is-active { color: var(--sr-ink); border-bottom-color: var(--sr-accent); }
.sr-panel { padding-top: 12px; }
.sr-panel[hidden] { display: none; }

.sr-show-name { font-size: 18px !important; margin: 18px 0 6px !important; }
.sr-eps { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.sr-ep { display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--sr-line); margin: 0 !important; }
.sr-ep.is-current { background: #f3f0e8; }
.sr-ep-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-ep-meta strong { font-size: 15px; line-height: 1.3; }
.sr-ep-meta span { font-size: 12px; color: var(--sr-mute); }
.sr-ep-meta p { font-size: 13px; color: #444; margin: 4px 0 0 !important; }
.sr-fav { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #80602e; padding: 6px; }
.sr-empty { color: var(--sr-mute); font-size: 14px; }

.sr-day { margin-bottom: 14px; }
.sr-day h4 { font-size: 14px !important; text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 4px !important; color: var(--sr-mute); }
.sr-day.is-today h4 { color: var(--sr-accent); }
.sr-day ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.sr-day li { padding: 6px 0; border-bottom: 1px dashed var(--sr-line); font-size: 14px; margin: 0 !important; }
.sr-day li time { display: inline-block; min-width: 100px; color: var(--sr-mute); font-variant-numeric: tabular-nums; }
.sr-day li.is-now { font-weight: 700; }
.sr-day li em { font-style: normal; font-size: 11px; color: #fff; background: #c62828; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }

@media (max-width: 600px) {
  .sr-hero { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .sr-hero-logo { width: 64px; height: 64px; font-size: 22px; }
  .sr-hero-name { font-size: 22px !important; }
  .sr-hero .sr-play--big { margin-left: auto; }
}

/* Ventana emergente */
body.sr-popup { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #102b27; }
.sr-root--popup { margin: 0; }
.sr-root--popup .sr-hero { border-radius: 0; flex-direction: column; text-align: center; min-height: 100vh; justify-content: center; padding: 32px 20px; }
.sr-root--popup .sr-hero-logo { width: 140px; height: 140px; font-size: 44px; }
.sr-root--popup .sr-controls { position: fixed; bottom: 12px; left: 0; right: 0; justify-content: center; margin: 0; }
.sr-root--popup .sr-chip { background: rgba(255,255,255,.95); }

/* Varias emisoras */
.sr-logo-wrap { display: contents; }
.sr-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.sr-station { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--sr-line); border-radius: 10px; background: var(--sr-bg); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--sr-ink); text-align: left; }
.sr-station:hover { border-color: var(--sr-accent); }
.sr-station.is-active { border-color: var(--sr-accent); box-shadow: inset 0 0 0 1px var(--sr-accent); }
.sr-station.is-playing::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c62828; margin-left: auto; animation: sr-pulse 1.4s infinite; flex: none; }
.sr-station-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; font-size: 13px; }
.sr-station span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-bar-sel { color: #173b35; max-width: 160px; font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--sr-line); border-radius: 6px; background: #fff; height: auto; }
.sr-root--popup .sr-stations { position: fixed; top: 12px; left: 12px; right: 12px; }
@media (max-width: 600px) { .sr-bar-sel { max-width: 110px; } }

.sr-bar [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .sr-root *, .sr-bar * { animation: none !important; transition: none !important; } }

.sr-ep-art { width:64px; height:64px; object-fit:contain; border-radius:6px; flex:none; background:#f3f0e8; }
.sr-hero-logo { object-fit:contain; }
.sr-bar-title { color:#fffdf8; }

/* Fixed player: isolate brand colors from global theme button rules. */
body #sr-bar button.sr-btn.sr-play, body #sr-bar .sr-logo-wrap .sr-ini { background: #b58c51 !important; color: #102b27 !important; border-color: #b58c51 !important; }
body #sr-bar button.sr-btn.sr-play:hover { background: #d8b981 !important; }
body #sr-bar .sr-play .sr-ico { color: #102b27 !important; }

/* Premium expanded player */
#sr-bar .sr-expand,#sr-premium button[data-sr="collapse"]{background:transparent!important;color:#e5c18c!important;border:1px solid #b58c51;border-radius:50%;width:40px;height:40px;flex:none;font-size:24px;cursor:pointer;padding:0;line-height:1}
#sr-premium{box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #b58c51;border-radius:18px;background:#173b35;color:#fffdf8;padding:0;box-shadow:0 16px 80px #0008;overscroll-behavior:contain;font-family:system-ui,sans-serif}
#sr-premium::backdrop{background:#071b17bb}#sr-premium .sr-premium-inner{padding:24px}#sr-premium header{display:flex;justify-content:space-between;align-items:center;color:#e5c18c;letter-spacing:.12em;font-size:12px;margin-bottom:20px}#sr-premium .sr-premium-art{display:block;width:min(100%,300px);aspect-ratio:1;margin:0 auto 20px;background:#102b27;border-radius:12px;overflow:hidden}#sr-premium .sr-premium-cover{display:grid;place-items:center;width:100%;height:100%;object-fit:contain;font-size:64px;color:#b58c51}#sr-premium h2{font:500 28px/1.2 Georgia,serif;color:#fffdf8;margin:8px 0;overflow-wrap:anywhere}#sr-premium p{color:#e5c18c;margin:4px 0;overflow-wrap:anywhere}#sr-premium .sr-premium-live{font-size:11px;color:#e5c18c;letter-spacing:.1em}#sr-premium progress{width:100%;height:6px;accent-color:#b58c51;margin:16px 0}#sr-premium .sr-premium-controls{display:flex;align-items:center;gap:24px;margin:20px 0}#sr-premium .sr-play{background:#b58c51!important;color:#102b27!important;width:58px;height:58px;border-radius:50%;flex:none}#sr-premium label{flex:1;color:#fffdf8;font-size:13px}#sr-premium input[type=range]{display:block;width:100%;accent-color:#b58c51}#sr-premium h3{color:#e5c18c;font-size:16px;border-top:1px solid #b58c5166;padding-top:18px}#sr-premium .sr-history-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff20}#sr-premium .sr-history-row img{width:44px;height:44px;object-fit:cover;border-radius:5px}#sr-premium .sr-history-row strong,#sr-premium .sr-history-row span{display:block;overflow-wrap:anywhere}#sr-premium .sr-history-row span{font-size:12px;color:#e5c18c}#sr-premium [hidden]{display:none!important}
@media(max-width:600px){#sr-premium{max-height:94dvh}#sr-premium .sr-premium-inner{padding:18px}#sr-bar .sr-expand{width:34px;height:34px}#sr-bar .sr-bar-meta{min-width:0;flex:1}}

#sr-premium .sr-music-actions{display:flex;gap:10px;flex-wrap:wrap}#sr-premium .sr-music-actions button,#sr-premium .sr-history-row button{background:#102b27;color:#fffdf8;border:1px solid #b58c51;border-radius:8px;padding:10px 12px;cursor:pointer}#sr-premium button[aria-pressed=true]{background:#b58c51;color:#102b27}#sr-premium button:disabled{opacity:.5;cursor:default}#sr-premium .sr-history-row>div{flex:1;min-width:0}#sr-premium .sr-history-row button{font-size:12px}#sr-premium button:focus-visible{outline:2px solid #fffdf8;outline-offset:3px}

/* Radio Experience */
.sr-program-card{border:1px solid #b58c51;padding:16px;margin:16px 0;border-radius:12px}.sr-program-card img{width:72px;height:72px;object-fit:cover;float:left;margin:0 12px 8px 0;border-radius:6px}.sr-program-card strong{color:#e5c18c}.sr-program-card p{font-size:14px;line-height:1.5}.sr-program-card:after{content:"";display:block;clear:both}.sr-search-label{display:grid;gap:8px;margin:16px 0;font-weight:600}.sr-search-label input{width:100%;padding:12px;border:1px solid #b58c51;border-radius:8px;background:#fffdf8;color:#173b35}.sr-root [hidden],#sr-premium [hidden]{display:none!important}.sr-day small{display:block;line-height:1.5}
.sr-reader{background:#173b35;color:#fffdf8;border-top:3px solid #b58c51;padding:18px;margin:0 0 24px;font:15px/1.5 system-ui,sans-serif}.sr-reader strong{display:block;color:#e5c18c;margin-bottom:10px}.sr-reader-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sr-reader button,.sr-reader select{background:#b58c51;color:#102b27;border:0;border-radius:4px;padding:10px;font:inherit;cursor:pointer}.sr-reader small{display:block;margin-top:10px;color:#fffdf8}.sr-reader button:focus-visible,.sr-reader select:focus-visible{outline:2px solid white;outline-offset:3px}

.sr-connected{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0;color:#fffdf8}.sr-connected button{background:#173b35;color:#fffdf8;border:1px solid #b58c51;border-radius:6px;padding:8px 12px;cursor:pointer}.sr-connected button[hidden]{display:none}.sr-connected [role=status]{font-size:13px;color:#e5c18c}

.sr-audience{border:1px solid #b58c51;padding:16px;margin:18px 0;color:#fffdf8;background:#102b27;border-radius:8px}.sr-audience h3{color:#e5c18c}.sr-audience label,.sr-audience small{display:block;margin:10px 0}.sr-audience button{background:#b58c51;color:#102b27;border:0;padding:9px 12px;border-radius:4px;cursor:pointer}.sr-audience [hidden]{display:none!important}

/* Multimedia editorial */
.sr-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sr-news-card{background:#fffdf8;border:1px solid #d5d6cf;border-bottom:2px solid #b58c51;overflow:hidden}.sr-news-card a{display:block;color:#173b35;text-decoration:none}.sr-news-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.sr-news-card a>div{padding:16px}.sr-news-card h4{font:500 23px/1.2 Georgia,serif;margin:0 0 10px;color:#173b35}.sr-news-card p{color:#46564e;font-size:14px;line-height:1.5}.sr-news-card span{color:#80602e;font-size:13px;font-weight:600}.sr-news-card a:focus-visible{outline:3px solid #b58c51;outline-offset:-3px}@media(max-width:560px){.sr-news-grid{grid-template-columns:1fr}.sr-tabs{flex-wrap:wrap}}
