/* Identidad tomada del frontend de Pastel Radio IA (frontend/src/index.css) */
:root {
  --pink: #EC008C;
  --yellow: #FFF200;
  --red: #E8112D;
  --panel: #0d0d0d;
  --panel-2: #1a1a1a;
  --gris: #4b4b4b;
  --texto: #ffffff;
  --dim: rgba(255,255,255,.55);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100vh; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--texto);
  background-color: #12040f;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(236,0,140,.35), transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 65%, rgba(190,30,100,.30), transparent 70%),
    radial-gradient(ellipse 40% 30% at 60% 15%, rgba(120,40,160,.25), transparent 70%),
    radial-gradient(ellipse 45% 35% at 35% 85%, rgba(220,60,90,.22), transparent 70%);
  background-attachment: fixed;
}
.starfield::before, .starfield::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 71%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent),
    radial-gradient(1px 1px at 57% 48%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 66% 83%, rgba(255,255,255,.95), transparent),
    radial-gradient(1px 1px at 79% 31%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 8% 91%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 94% 9%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 37% 55%, rgba(255,255,255,.85), transparent);
  background-size: 520px 520px;
}
.starfield::after { background-size: 340px 340px; opacity: .6; }

.wrap { width: 100%; max-width: 32rem; margin: 0 auto; padding: 2rem 16px; display: flex; flex-direction: column; gap: .75rem; }

/* Logotipo: las A son triángulos (magenta arriba, amarillo abajo) */
.logo-panel { background: rgba(82,82,82,.9); padding: 1.5rem; display: flex; justify-content: center; }
.logo { font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: .02em; user-select: none; }
.logo > div { display: flex; align-items: baseline; gap: .06em; }
.tri { display: inline-block; width: .72em; height: .72em; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.tri.m { background: var(--pink); }
.tri.y { background: var(--yellow); }
.mm { display: inline-flex; }
.mm .tri + .tri { margin-left: -.28em; }

.live-bar { background: var(--red); padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.live-title { margin: 0; font-weight: 900; font-size: 1.1rem; letter-spacing: .08em; }
.badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; padding: .3rem .5rem; background: rgba(0,0,0,.3); }
.badge.on { background: #fff; color: var(--red); animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .55; } }

.player { background: var(--panel); padding: 1.25rem; display: grid; gap: 1.1rem; }
.cover-wrap { aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .4s; }
.kicker { margin: 0; font-size: .65rem; text-transform: uppercase; letter-spacing: .3em; color: var(--dim); }
h1 { margin: .35rem 0 .1rem; font-size: 1.5rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.artista { margin: 0; color: var(--yellow); font-weight: 600; }
.progress { margin-top: 1rem; height: 4px; background: rgba(255,255,255,.18); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(to right, var(--pink), var(--yellow)); }
.times { display: flex; justify-content: space-between; font-size: .7rem; color: var(--dim); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.play { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.play:hover { background: #ff1aa3; }
.play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.vol { flex: 1; display: flex; }
.vol input { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aviso { margin: .75rem 0 0; font-size: .75rem; color: var(--dim); }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 9999px; outline: none;
  background: linear-gradient(to right, #fff var(--fill, 80%), rgba(255,255,255,.25) var(--fill, 80%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }

.eq { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.eq span { width: 4px; background: linear-gradient(to top, var(--yellow), var(--pink)); animation: eqbar 900ms ease-in-out infinite alternate; border-radius: 1px; }
.eq span:nth-child(2) { animation-delay: 120ms; } .eq span:nth-child(3) { animation-delay: 240ms; }
.eq span:nth-child(4) { animation-delay: 360ms; } .eq span:nth-child(5) { animation-delay: 480ms; }
.eq span:nth-child(6) { animation-delay: 200ms; } .eq span:nth-child(7) { animation-delay: 320ms; }
.eq.paused span { animation-play-state: paused; height: 4px !important; }
@keyframes eqbar { from { height: 15%; } to { height: 100%; } }

.panel { background: var(--panel); padding: 1.1rem 1.25rem; }
h2 { margin: 0 0 .75rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .3em; color: var(--dim); font-weight: 600; }
.siguientes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.siguientes li { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.siguientes img { width: 44px; height: 44px; object-fit: cover; background: var(--panel-2); flex: none; }
.siguientes .t { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.siguientes .a { font-size: .75rem; color: var(--dim); }
.siguientes .h { margin-left: auto; font-size: .7rem; color: var(--dim); font-variant-numeric: tabular-nums; flex: none; }
.siguientes div { min-width: 0; }

.bandas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.bandas li { background: var(--panel-2); }
.bandas img, .bandas .ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bandas .ph { display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; color: var(--pink); background: linear-gradient(135deg, #2a0a20, #1a1a1a); }
.bandas p { margin: 0; padding: .4rem .45rem; font-size: .7rem; font-weight: 600; line-height: 1.2; }
.bandas li.al-aire p { color: var(--yellow); }

.pie { text-align: center; font-size: .7rem; color: rgba(255,255,255,.6); padding: 1rem 0 .5rem; }
.pie p { margin: .2rem 0; }
.pie .dim { color: rgba(255,255,255,.35); letter-spacing: .2em; text-transform: uppercase; font-size: .6rem; margin-top: .6rem; }
