/* ================================================
   Stereo Player Pro – Player CSS v2.1
   ================================================ */

:root {
    --spp-bg:        #0f172a;
    --spp-accent:    #00bcd4;
    --spp-text:      #ffffff;
    --spp-muted:     rgba(255,255,255,.45);
    --spp-border:    rgba(255,255,255,.08);
    --spp-h:         96px;
    --spp-max-w:     1200px;
}

/* ── STICKY WRAPPER ── */
#spp-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 10px 20px 14px;
    background: linear-gradient(180deg, rgba(15,23,42,.0) 0%, rgba(15,23,42,.92) 30%);
    pointer-events: none;
}

/* ── INNER BAR ── */
.spp-inner {
    pointer-events: all;
    max-width: var(--spp-max-w);
    margin: 0 auto;
    height: var(--spp-h);
    background: var(--spp-bg);
    border: 1px solid var(--spp-border);
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    padding: 0 22px;
    gap: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── THREE SECTIONS ── */
.spp-section {
    display: flex;
    align-items: center;
}

.spp-section--left {
    flex: 0 0 auto;
    gap: 14px;
    min-width: 0;
    max-width: 280px;
    padding-right: 20px;
    border-right: 1px solid var(--spp-border);
}

.spp-section--center {
    flex: 1;
    justify-content: center;
    padding: 0 18px;
    min-width: 0;
    overflow: hidden;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.spp-section--right {
    flex: 0 0 auto;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--spp-border);
    align-items: center;
}

/* ── THUMBNAIL ── */
.spp-thumb {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    position: relative;
}

.spp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
}

.spp-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--spp-accent);
}
.spp-thumb-placeholder svg { width: 26px; height: 26px; }

/* ── SHOW META ── */
.spp-show-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.spp-on-air-dot {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--spp-accent);
    text-transform: uppercase;
}

.spp-on-air-dot span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--spp-accent);
    animation: spp-dot-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

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

.spp-show-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--spp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .02em;
}

.spp-show-time {
    font-size: .68rem;
    color: var(--spp-muted);
    white-space: nowrap;
}

/* ── BANNER (center) — llena casi toda la altura ── */
.spp-banner-wrap {
    position: relative;
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spp-banner {
    display: none;
    position: absolute;
    inset: 0;
    align-items: stretch;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity .4s;
}

.spp-banner--active { display: flex; }

.spp-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* Banner dots */
.spp-banner-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.spp-bdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.spp-bdot--active {
    background: var(--spp-accent);
    transform: scale(1.3);
}

/* No-banner label */
.spp-no-banner-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--spp-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Equalizer bars */
.spp-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}
.spp-eq b {
    display: block;
    width: 3px;
    background: var(--spp-accent);
    border-radius: 2px;
    font-weight: normal;
    animation: spp-eqbar 1s ease-in-out infinite;
}
.spp-eq b:nth-child(1) { animation-duration: 1.0s; animation-delay: 0s;   }
.spp-eq b:nth-child(2) { animation-duration: .8s;  animation-delay: .1s;  }
.spp-eq b:nth-child(3) { animation-duration: 1.2s; animation-delay: .2s;  }
.spp-eq b:nth-child(4) { animation-duration: .9s;  animation-delay: .15s; }
.spp-eq b:nth-child(5) { animation-duration: 1.1s; animation-delay: .05s; }

@keyframes spp-eqbar {
    0%,100% { height: 4px;  }
    50%      { height: 18px; }
}

.spp-player--paused .spp-eq b {
    animation-play-state: paused;
    height: 5px;
}

/* ── DIVIDER ── */
.spp-divider {
    width: 1px;
    height: 36px;
    background: var(--spp-border);
    flex-shrink: 0;
}

/* ── SOCIAL BUTTONS ── */
.spp-socials {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spp-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--spp-muted);
    text-decoration: none;
    transition: color .2s, background .2s;
    background: transparent;
}
.spp-social-btn:hover {
    color: var(--spp-text);
    background: rgba(255,255,255,.08);
}
.spp-social-btn svg { width: 18px; height: 18px; }

/* ── VOLUME ── */
.spp-vol-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spp-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--spp-muted);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}
.spp-icon-btn:hover { color: var(--spp-text); background: rgba(255,255,255,.06); }
.spp-icon-btn svg { width: 20px; height: 20px; }

/* Slider */
.spp-slider-track {
    position: relative;
    width: 90px;
    height: 4px;
}

.spp-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.spp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,.4);
    transition: transform .15s;
}
.spp-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.spp-vol-slider::-moz-range-thumb {
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

.spp-slider-fill {
    position: absolute;
    left: 0; top: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--spp-accent);
    pointer-events: none;
    z-index: 1;
}

.spp-slider-track::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.15);
}

/* ── PLAY BUTTON ── */
.spp-play-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--spp-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 0 0 0 rgba(0,188,212,.4);
}

.spp-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(0,188,212,.55);
}
.spp-play-btn:active { transform: scale(.95); }

.spp-play-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--spp-accent);
    opacity: 0;
    animation: none;
}

#spp-player:not(.spp-player--paused) .spp-play-ring {
    animation: spp-ring-pulse 2s ease-out infinite;
}

@keyframes spp-ring-pulse {
    0%   { opacity: .6; transform: scale(1);    }
    100% { opacity: 0;  transform: scale(1.4); }
}

.spp-btn-icon { width: 24px; height: 24px; }

@keyframes spp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.spp-spin { animation: spp-spin .75s linear infinite; }

/* ── BODY PADDING ── */
body {
    padding-bottom: calc(var(--spp-h) + 32px) !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

@media (max-width: 900px) {
    .spp-socials      { display: none; }
    .spp-divider      { display: none; }
    .spp-section--left { max-width: 210px; }
    .spp-slider-track { width: 72px; }
}

@media (max-width: 640px) {
    #spp-player { padding: 8px 10px 10px; }

    .spp-inner {
        border-radius: 16px;
        padding: 0 14px;
        height: 72px;
    }

    .spp-section--left { max-width: 150px; }
    .spp-show-time     { display: none; }
    .spp-slider-track  { display: none; }

    .spp-banner-wrap   { height: 54px; }
    .spp-play-btn      { width: 48px; height: 48px; }
    .spp-btn-icon      { width: 20px; height: 20px; }
    .spp-thumb         { width: 46px; height: 46px; }
}

@media (max-width: 420px) {
    .spp-section--left { max-width: 120px; }
    .spp-show-name     { font-size: .75rem; }
    .spp-icon-btn      { display: none; }
    .spp-thumb         { width: 40px; height: 40px; }
}
