:root {
  --accent: #F4C91B;
  --bg-top: #1a1a1a;
  --bg-mid: #111111;
  --bg-bottom: #0a0a0a;
  --text: #F5F1EC;
  --text-muted: #B9AFA9;
  --text-dim: #8C8480;
  --card: #232323;
  --card-2: #161616;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-bottom);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; padding: 0; }
a { color: inherit; }

.app {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* Top bar */
.topbar {
  padding: max(22px, env(safe-area-inset-top)) 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.live-pill { display: flex; align-items: center; gap: 6px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.live-dot.pulsing { animation: pulse-dot 1.4s ease-in-out infinite; }
.live-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--accent); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

#viewLive {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#viewLive[hidden], #viewSchedule[hidden], #viewFavorites[hidden], #viewMixes[hidden], #viewNews[hidden],
#mixList[hidden], #mixDetail[hidden], .mix-tracks[hidden] {
  display: none;
}

/* Favoritos */
.fav-empty { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.fav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.fav-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #1a1a1a; }
.fav-text { flex: 1; min-width: 0; }
.fav-song { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-artist { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.fav-remove {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  color: var(--text-dim); font-size: 14px;
  background: rgba(255,255,255,.05);
}

/* Middle */
.middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
}

.cover {
  width: min(270px, 70vw);
  height: min(270px, 70vw);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--card) 0%, var(--card-2) 100%);
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover svg { stroke: #4A4642; }
.cover img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* carátula completa, sin recortes */
  border-radius: 22px;
  display: block;
}
.cover img[hidden] {
  display: none;
}
#coverLogo { object-fit: cover; }

.track-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
  color: var(--accent); text-transform: uppercase;
}
.track-title { margin-top: 7px; font-size: 18px; font-weight: 700; }
.track-artist { margin-top: 2px; font-size: 13.5px; color: var(--text-muted); }
.status-text { font-size: 12px; color: var(--text-dim); margin-top: -12px; }

.station { line-height: 1.3; }
.station-name { font-size: 15px; font-weight: 700; color: var(--text); }
.station-location { font-size: 13px; color: var(--text-muted); }

.vol-icon[hidden] { display: none; }
.vol-icon.casting svg { stroke: var(--accent); }

.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 28px; }
.eq span { width: 5px; border-radius: 3px; background: var(--accent); height: 10px; }
.eq.playing span:nth-child(1) { animation: eq 0.9s ease-in-out infinite 0s; }
.eq.playing span:nth-child(2) { animation: eq 0.9s ease-in-out infinite 0.15s; }
.eq.playing span:nth-child(3) { animation: eq 0.9s ease-in-out infinite 0.3s; }
.eq.playing span:nth-child(4) { animation: eq 0.9s ease-in-out infinite 0.15s; }
.eq.playing span:nth-child(5) { animation: eq 0.9s ease-in-out infinite 0s; }
@keyframes eq { 0%, 100% { height: 10px; } 50% { height: 26px; } }

/* Controls */
.controls {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  padding-bottom: 22px;
}
.ghost-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.ghost-btn.active { background: rgba(244,201,27,.18); }
.ghost-btn svg { stroke: var(--text); }
.ghost-btn.active svg { stroke: var(--accent); fill: var(--accent); }

.play-btn {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -6px var(--accent);
}
.play-btn svg { fill: #121212; }

/* Volumen */
.volume {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 34px max(22px, env(safe-area-inset-bottom)) 34px;
}
.vol-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.vol-icon svg { stroke: var(--text); }
.vol-icon.muted svg { stroke: var(--text-dim); }
.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--vol, 80%), rgba(255,255,255,.15) var(--vol, 80%), rgba(255,255,255,.15) 100%);
  outline: none;
}
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
  cursor: pointer;
}
.volume input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.play-btn.loading { opacity: .75; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(18,18,18,.35);
  border-top-color: #121212;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  margin: 0 22px 14px 22px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(220, 70, 60, .12);
  border: 1px solid rgba(220, 70, 60, .35);
  color: #ffb3ab;
  font-size: 12.5px;
  text-align: center;
  display: none;
}
.error-banner.show { display: block; }

.install-banner {
  margin: 0 22px 14px 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(244,201,27,.1);
  border: 1px solid rgba(244,201,27,.35);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.install-banner.show { display: flex; }
.install-banner button {
  background: var(--accent); color: #121212; font-weight: 700;
  padding: 8px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap;
}

/* Programación */
.schedule-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.schedule-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 10px 22px;
}
.schedule-day {
  margin-bottom: 22px;
}
.schedule-day-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.schedule-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.schedule-block-time {
  flex: 0 0 auto;
  min-width: 108px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}
.schedule-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.schedule-block-img {
  flex: 0 0 auto;
  width: 76px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.schedule-block-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.schedule-block-text .schedule-block-time { min-width: 0; }

/* Sonó recién */
.recent-box { margin-bottom: 22px; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.recent-list li:last-child { border-bottom: 0; }
.recent-time { flex: 0 0 58px; font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.recent-song { min-width: 0; color: var(--text-muted); }
.recent-song b { display: block; color: var(--text); font-size: 13.5px; }
.recent-empty { color: var(--text-dim); }

/* Bottom tabs */
.tabbar {
  display: flex; align-items: center; justify-content: space-around;
  padding: 12px 10px max(18px, env(safe-area-inset-bottom)) 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 60px; padding: 6px 0; font-size: 10.5px; color: var(--text-dim);
}
.tab.active { color: var(--accent); font-weight: 700; }
.tab.active svg { stroke: var(--accent); }
.tab svg { stroke: var(--text-dim); }

/* Menú propio para compartir */
.share-sheet {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.share-sheet[hidden] { display: none; }
.share-card {
  width: 100%; max-width: 480px;
  background: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.share-title { font-size: 14px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 4px; }
.share-opt {
  display: block; text-align: center; text-decoration: none;
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,.07); color: var(--text);
  font-size: 15px; font-weight: 600;
}
.share-opt.share-wa { background: var(--accent); color: #121212; }
.share-cancel { padding: 12px; color: var(--text-dim); font-size: 14px; }
.share-opt.share-wa, .share-opt.share-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-family: inherit; border: 0; cursor: pointer; }
.share-opt.share-row:active { background: rgba(244,201,27,.2); }
.share-hint {
  font-size: 12.5px; line-height: 1.45; text-align: center;
  color: #121212; background: var(--accent);
  border-radius: 10px; padding: 9px 12px;
}
.share-hint[hidden] { display: none; }

/* Redes de la radio (arriba, al costado del logo) */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar > img { justify-self: start; }
.topbar .top-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
/* Botón de idioma ES / EN */
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: .8px; padding: 5px 8px; cursor: pointer;
}
.lang-btn.on { background: var(--accent); color: #121212; }
/* En el celular hay poco espacio: solo se ve el botón del otro idioma */
@media (max-width: 999px) {
  .lang-btn.on { display: none; }
  .lang-btn { color: var(--text); padding: 5px 9px; }
  .topbar .top-right { gap: 8px; }
}
@media (max-width: 380px) { .topbar { grid-template-columns: auto 1fr auto; column-gap: 6px; } .socials { gap: 6px; } }
.socials { display: flex; align-items: center; justify-content: center; gap: 10px; }
.social {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--text);
  text-decoration: none;
}
.social:active { background: rgba(244,201,27,.25); color: var(--accent); }
.social[hidden] { display: none; }

/* Reproductor en PC: mini reproductor */
#miniBtn[hidden], #expandBtn[hidden] { display: none; }
body.mini .topbar, body.mini .error-banner, body.mini .install-banner, body.mini .station,
body.mini .eq, body.mini .status-text, body.mini .volume, body.mini .tabbar,
body.mini #viewSchedule, body.mini #viewFavorites, body.mini #viewMixes, body.mini #shareBtn,
body.mini .share-sheet { display: none !important; }
body.mini .app { min-height: 100vh; max-width: none; justify-content: center; }
body.mini #viewLive { display: flex !important; flex-direction: row; flex: none; align-items: center; gap: 10px; padding: 0 12px; height: 100vh; }
body.mini .middle { flex-direction: row; align-items: center; gap: 12px; padding: 0; flex: 1; min-width: 0; text-align: left; justify-content: flex-start; }
body.mini .middle > div:nth-child(2) { min-width: 0; }
body.mini .cover { width: 72px; height: 72px; border-radius: 10px; flex: none; box-shadow: none; }
body.mini .cover img { border-radius: 10px; }
body.mini .track-eyebrow { font-size: 9.5px; }
body.mini .track-title { margin-top: 3px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mini .track-artist { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mini .controls { gap: 8px; padding: 0; }
body.mini .ghost-btn { width: 36px; height: 36px; }
body.mini .play-btn { width: 52px; height: 52px; box-shadow: none; }
.pip-placeholder {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg-bottom); color: var(--text); text-align: center; padding: 24px;
}
.pip-placeholder[hidden] { display: none; }
.pip-placeholder img { width: 96px; height: 96px; border-radius: 18px; }
.pip-placeholder p { margin: 0; font-size: 15px; color: var(--text-muted); max-width: 280px; line-height: 1.45; }
.pip-placeholder button { background: var(--accent); color: #121212; font-weight: 700; padding: 12px 20px; border-radius: 12px; }

/* Volumen dentro del mini reproductor */
.mini-vol { display: none; }
body.mini .mini-vol {
  display: block; width: 100%; max-width: 160px; margin: 8px 0 0;
  -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; outline: none;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--vol, 80%), rgba(255,255,255,.15) var(--vol, 80%), rgba(255,255,255,.15) 100%);
}
body.mini .mini-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); cursor: pointer; }
body.mini .mini-vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* Que todo entre en una sola pantalla (las pestañas siempre a la vista) */
.app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
#viewLive { overflow: hidden; }
.topbar { padding-top: max(clamp(10px, 2.2vh, 22px), env(safe-area-inset-top)); }
.middle { gap: clamp(8px, 1.8vh, 22px); padding: clamp(6px, 1.6vh, 24px) 24px; min-height: 0; }
.cover { width: min(270px, 70vw, 34vh); height: min(270px, 70vw, 34vh); }
.install-banner.show ~ #viewLive .cover,
.error-banner.show ~ #viewLive .cover { width: min(270px, 70vw, 27vh); height: min(270px, 70vw, 27vh); }
.status-text { margin-top: calc(clamp(8px, 1.8vh, 22px) * -0.5); }
.play-btn { width: clamp(60px, 9vh, 76px); height: clamp(60px, 9vh, 76px); }
.controls { padding-bottom: clamp(8px, 1.8vh, 22px); }
.volume { padding-bottom: clamp(8px, 1.6vh, 22px); }
.tabbar { flex: none; padding-top: 8px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
@media (max-height: 620px) { .station { display: none; } }

/* Mixes */
.mix-head { display: flex; flex-direction: column; margin-bottom: 16px; }
.mix-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
}
.mix-h1 { margin: 2px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.mix-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.07); color: var(--text-dim);
}
.mix-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  color: var(--text); font: inherit; font-size: 15px;
}
.mix-search input::placeholder { color: var(--text-dim); }
.mix-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 16px; }
.mix-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); color: var(--text);
}
.mix-chip.active { background: var(--accent); border-color: var(--accent); color: #121212; }
.mix-card {
  border-radius: 18px; overflow: hidden; margin-bottom: 16px;
  background: rgba(255,255,255,.05); cursor: pointer;
}
.mix-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1f1f1f; }
.mix-cover.sq { object-fit: contain; background: #141414; } /* portada cuadrada (Mixcloud) */
.mix-card-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px 16px; }
.mix-card-text { flex: 1; min-width: 0; }
.mix-title { font-size: 17px; font-weight: 800; }
.mix-artists { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--text-muted); font-weight: 600; }
.mix-meta { margin-top: 6px; font-size: 12.5px; color: var(--accent); font-family: ui-monospace, Consolas, monospace; }
.mix-card-play {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.mix-card-play svg { fill: #121212; }
.mix-empty { color: var(--text-dim); font-size: 13.5px; }

.mix-detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mix-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.mix-seg {
  display: flex; padding: 4px; border-radius: 14px; margin-bottom: 16px;
  background: rgba(255,255,255,.07);
}
.mix-seg-btn {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--text);
}
.mix-seg-btn.active { background: var(--accent); color: #121212; }
.mix-cover-big { border-radius: 16px; }
.mix-title-big { margin-top: 16px; font-size: 22px; letter-spacing: -.3px; }
.mix-progress {
  position: relative; margin-top: 22px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.12); cursor: pointer; touch-action: none;
}
/* Zona de toque más alta que la línea, para que sea fácil agarrarla con el dedo */
.mix-progress::before { content: ""; position: absolute; left: -10px; right: -10px; top: -16px; bottom: -16px; }
.mix-progress-bar { position: relative; height: 100%; width: 0; border-radius: 3px; background: var(--accent); }
.mix-progress-bar::after {
  content: ""; position: absolute; right: -9px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.5);
  transition: transform .15s;
}
.mix-progress.dragging .mix-progress-bar::after { transform: scale(1.3); }
.mix-times {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 12px; color: var(--text-muted); font-family: ui-monospace, Consolas, monospace;
}
.mix-controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 10px 0 16px; }
.mix-skip {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.07); font-size: 14px; font-weight: 800;
}
/* El reproductor de Mixcloud trabaja escondido: se usan nuestros botones.
   Solo se muestra si el celular no deja arrancar el audio desde ellos. */
.mix-widget { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.mix-widget.show { position: static; width: auto; height: auto; overflow: visible; opacity: 1; pointer-events: auto; }
.mix-widget.show::before {
  content: "Toca play aquí para empezar el mix"; display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--accent); text-align: center;
}
.mix-widget iframe { display: block; width: 100%; height: 60px; border: 0; border-radius: 10px; }
.mix-tracks {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.9;
}
.mix-tracks-title { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--accent); margin-bottom: 4px; }
.mix-track { color: var(--text-muted); font-weight: 600; }
.mix-track.now { color: var(--text); }

/* Lo nuevo de la semana */
.news-card { border-radius: 16px; overflow: hidden; margin-bottom: 16px; background: rgba(255,255,255,.05); }
.news-vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #1f1f1f; }
.news-vid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-vid iframe { display: block; width: 100%; height: 100%; border: 0; }
.news-new {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px;
  background: var(--accent); color: #121212; font-size: 11px; font-weight: 800;
}
.news-yt {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px;
  border-radius: 11px; background: #e33; display: flex; align-items: center; justify-content: center;
}
.news-vid.open .news-new, .news-vid.open .news-yt { display: none; }
.news-body { padding: 12px 16px 16px; }
.news-body b { font-size: 16px; }
.news-artist { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--accent); }
.news-body p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }

/* Envía tu música (bandas) */
.bands-cta { margin: 8px 0 24px; padding: 20px; border-radius: 16px; background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.35); }
.bands-img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.bands-txt b { display: block; font-size: 17px; margin-bottom: 6px; }
.bands-txt p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.bands-btn { display: inline-block; margin-top: 14px; padding: 11px 18px; border-radius: 10px; background: var(--accent); color: #121212; font-weight: 800; font-size: 14.5px; text-decoration: none; }
.bands-mail { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
/* Apoya a abcrockradio (aporte voluntario) */
.support-cta { margin: 0 0 24px; padding: 20px; border-radius: 16px; background: #171717; border: 1px solid rgba(255,255,255,.1); scroll-margin-top: 90px; }
.support-ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(245,197,24,.15); margin-bottom: 12px; }
.support-txt b { display: block; font-size: 17px; margin-bottom: 6px; }
.support-txt p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.support-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.support-btn { display: inline-block; padding: 11px 18px; border-radius: 10px; border: 0; background: var(--accent); color: #121212; font: inherit; font-weight: 800; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.desk-foot a { color: var(--accent); text-decoration: none; }

/* Solo para la web en computadora: en el celular no se ven */
.desk-only, .desk-nav { display: none !important; }
.live-main { display: contents; }

/* ===== Web en computadora (pantalla ancha). El celular no cambia. ===== */
@media (min-width: 1000px) {
  .app { height: auto; min-height: 100vh; overflow: visible; max-width: none; background: var(--bg-bottom); }
  .desk-only { display: block !important; }
  .tabbar, .install-banner { display: none !important; }
  #viewLive[hidden], #viewNews[hidden], #viewMixes[hidden], #viewSchedule[hidden] { display: block !important; }
  /* Favoritos solo existen en la app del celular */
  #viewFavorites, #favBtn { display: none !important; }

  /* Menú de arriba */
  .topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px;
    padding: 14px max(32px, calc((100vw - 1200px) / 2)); background: rgba(11,11,11,.94);
    border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
  }
  .topbar > img { width: 48px; height: 48px; }
  .desk-nav { display: flex !important; gap: 26px; flex: 1; }
  .desk-nav a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 600; }
  .desk-nav a.on, .desk-nav a:hover { color: var(--accent); }

  /* Cada sección ocupa el ancho de la página, una debajo de otra */
  #viewLive, #viewNews, #viewMixes, #viewSchedule, #viewFavorites, #viewRadio {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; overflow: visible; flex: none;
    scroll-margin-top: 90px;
  }
  #viewNews, #viewMixes, #viewSchedule, #viewFavorites, #viewRadio { border-top: 1px solid rgba(255,255,255,.08); padding-top: 48px; padding-bottom: 48px; }
  .schedule-scroll { overflow: visible; padding: 0; }
  .mix-h1 { font-size: 32px; margin: 4px 0 20px; }
  .desk-head { margin-bottom: 4px; }

  /* Reproductor + columna derecha */
  #viewLive { display: grid !important; grid-template-columns: 1.35fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .live-main {
    display: grid; grid-template-columns: 260px 1fr; column-gap: 28px; align-items: center; align-content: center;
    background: linear-gradient(145deg, #1d1d1d, #121212); border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px; padding: 28px;
  }
  .live-main .middle { display: contents; }
  .live-main .cover { grid-column: 1; grid-row: 1 / span 5; width: 260px; height: 260px; }
  .live-main .middle > div:nth-child(2) { grid-column: 2; text-align: left; }
  .live-main .station, .live-main .eq, .live-main .status-text { grid-column: 2; text-align: left; justify-content: flex-start; margin: 8px 0 0; }
  .live-main .station { display: none; }
  .track-title { font-size: 28px; }
  .track-artist { font-size: 16px; }
  .live-main .controls { grid-column: 2; justify-content: flex-start; gap: 16px; padding: 18px 0 0; }
  .live-main .volume { grid-column: 2; padding: 16px 0 0; }
  .live-side { display: flex !important; flex-direction: column; gap: 16px; }
  .side-box { background: #171717; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 20px 22px; }
  .onair { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
  .onair b { font-size: 18px; }
  .onair-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(244,201,27,.15); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
  .onair-time { font-size: 13.5px; color: var(--text-muted); }
  .listen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .listen-chips span, .listen-chips a { font-size: 13px; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--text); text-decoration: none; }
  .listen-chips a:hover { background: var(--accent); color: #111; }
  .listen-chips .get-app { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 8px; border: 0; cursor: pointer; background: var(--accent); color: #111; }
  .listen-chips .get-app:hover { filter: brightness(1.1); }

  /* Ventana "Descarga la app" */
  .app-dialog { width: 380px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #151515; color: var(--text); text-align: center; }
  .app-dialog::backdrop { background: rgba(0,0,0,.7); }
  .app-dialog h3 { margin: 0 0 16px; font-size: 19px; }
  .app-dialog img { display: block; margin: 0 auto 16px; border-radius: 10px; background: #fff; }
  .app-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
  .app-dialog p b { color: var(--text); }
  .app-dialog-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
  .app-dialog-btns button { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; background: rgba(255,255,255,.1); color: var(--text); }
  .app-dialog-btns .app-pc { background: var(--accent); color: #111; }
  .genres { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; gap: 8px; }
  .genres span { padding: 8px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); }

  /* Tarjetas en columnas */
  .news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .news-card { margin: 0; }
  #mixCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  #mixCards .mix-card { margin: 0; }
  .mix-search { max-width: 420px; }
  #mixDetail { max-width: 640px; }
  #scheduleList { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .schedule-day { background: #171717; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; margin: 0; }
  .schedule-block { flex-direction: column; align-items: stretch; gap: 8px; padding: 0; margin-bottom: 14px; background: none; border: 0; }
  .schedule-block-time { min-width: 0; }
  .schedule-block-img { width: 100%; height: 92px; }
  .mob-only { display: none !important; }
  .recent-list li { padding: 6px 0; }
  #favList { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  #favList .fav-empty { grid-column: 1 / -1; }

  /* Envía tu música: una franja ancha debajo de los ingresos */
  .bands-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; margin: 28px 0 0; padding: 24px 28px; scroll-margin-top: 90px; }
  .bands-img { grid-row: 1 / 3; width: 220px; height: 130px; margin: 0; }
  .bands-txt { grid-row: 1 / 3; }
  .bands-txt b { font-size: 20px; }
  .bands-txt p { font-size: 14.5px; max-width: 640px; }
  .bands-btn { margin: 0; justify-self: center; }
  .bands-mail { margin-top: 6px; text-align: center; }
  .support-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; margin: 18px 0 0; padding: 22px 28px; }
  .support-ic { margin: 0; width: 56px; height: 56px; font-size: 28px; }
  .support-txt b { font-size: 19px; }
  .support-txt p { font-size: 14.5px; max-width: 640px; }
  .support-btns { margin: 0; flex-direction: column; }
  .support-btn { text-align: center; }

  /* Radio y pie */
  .radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .radio-box { background: #171717; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 24px; }
  .radio-box b { display: block; font-size: 18px; margin-bottom: 8px; }
  .radio-box p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
  .radio-box.ad { background: var(--accent); color: #121212; }
  .radio-box.ad p { color: #3a3205; }
  .radio-box.ad a { display: inline-block; margin-top: 14px; font-weight: 800; color: #121212; }
  .desk-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 32px; text-align: center; color: var(--text-dim); font-size: 13.5px; }
}
