:root {
    --brand-blue: #171717;
    --brand-blue-deep: #080808;
    --brand-orange: #f47c20;
    --brand-orange-soft: #ffb04d;
    --brand-white: #ffffff;
    --brand-muted: rgba(255, 255, 255, 0.78);
    --brand-shadow: rgba(0, 0, 0, 0.45);
}

body {
    background:
        radial-gradient(circle at top, rgba(244, 124, 32, 0.22), transparent 30%),
        linear-gradient(180deg, var(--brand-blue-deep) 0%, #101010 100%);
}

.header {
    background: rgba(7, 12, 24, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.header-logo-img {
    max-height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.station-description {
    color: #fff;
    opacity: 0.6;
}

.player-button-play {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-soft) 100%);
    box-shadow: 0 10px 22px rgba(244, 124, 32, 0.4);
}

.player-button-play.is-active {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7a00 100%);
}

.noticias-btn {
    background: linear-gradient(135deg, rgba(255, 176, 77, 0.22), rgba(244, 124, 32, 0.16));
    border: 1px solid rgba(255, 176, 77, 0.7);
    box-shadow: 0 10px 20px rgba(244, 124, 32, 0.18);
    color: var(--brand-white);
}

.noticias-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(244, 124, 32, 0.22);
}

.player-social-item,
.player-apps-item,
.station {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.player-social-item:hover,
.player-apps-item:hover,
.station:hover {
    transform: translateY(-1px);
}

.player-program-badge {
    background: var(--brand-orange);
    color: #fff;
}

.footer-copyright {
    color: var(--brand-muted);
}

.player-cover {
    gap: clamp(1rem, 3vh, 2rem);
}

.player-cover-title {
    max-width: min(90vw, 42rem);
    gap: 0.35rem;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.station-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    max-width: min(90vw, 42rem);
    margin-bottom: 0.2rem;
    text-align: center;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

.station-brand-tagline {
    color: var(--brand-orange-soft);
    font-size: clamp(0.72rem, 1.35vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    text-wrap: balance;
}

.station-brand-name {
    color: var(--brand-white);
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.2;
}

.now-playing-label {
    color: rgba(246, 248, 255, 0.84);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-wrap: balance;
}

.player-artwork {
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(145deg, var(--brand-orange), #ffb04d 32%, #252525 72%, var(--brand-blue-deep));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 42px rgba(244, 124, 32, 0.14);
}

#coverImage {
    border-radius: 0.8rem;
    box-shadow: none;
    object-fit: cover;
}

.player-cover-image {
    animation: none;
    transform: scale(1.08);
    filter: blur(var(--cover-blurred, 1rem)) brightness(0.18) saturate(0.9);
}

.player-controller {
    margin-top: 0.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(14px);
}

.player-button-play {
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.player-program-badge {
    box-shadow: 0 4px 18px rgba(244, 124, 32, 0.34);
}

@media (min-width: 992px) {
    html {
        zoom: 90%;
    }

    .app {
        width: 111.111vw;
        height: 111.111vh;
    }

    .player-wrapper {
        margin-top: clamp(9.5rem, 16vh, 12rem);
        margin-bottom: auto;
    }
}

.noticias-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    box-shadow: 0 0 0 4px rgba(255, 176, 77, 0.15);
    animation: blink 1.6s ease-in-out infinite;
}
.station-img {
    border: 3px solid #ffffff00;
    padding: 0.15rem;
}
.player-artwork {
    padding: 0.75rem;
    border-radius: 1rem;
    background-color: #ffffff00;
}
.player-artwork img {
    border-radius: 0.65rem;
    box-shadow: var(--shadow-xl);
}
.player-cover-image {
    animation: bga 60s linear infinite;
}
@keyframes bga {
    50% {
        transform: scale(2);
    }
}
.items-start {
    align-items: flex-start;
    margin-top: 15px;
}

/* ============================================
   ESTILOS PARA EL SLIDER DE ANUNCIOS
   ============================================ */
#coverImage {
    display: block !important;
    width: 100%;
    height: auto;
    border-radius: 0.65rem;
    transition: opacity 0.3s ease;
}

.ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(244, 124, 32, 0.95);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 15;
    backdrop-filter: blur(4px);
    font-family: 'Montserrat', sans-serif;
}

.ad-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 15;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.ad-nav-btn:hover {
    background: var(--brand-orange);
    transform: translateY(-50%) scale(1.1);
}

.ad-nav-btn.prev {
    left: 8px;
}

.ad-nav-btn.next {
    right: 8px;
}

.ad-dots-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ad-dot.active {
    background: var(--brand-orange-soft);
    transform: scale(1.2);
}

/* ============================================
   ANIMACIÓN DEL PUNTO ROJO (NOTICIAS)
   ============================================ */
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .player-artwork {
        width: min(86vw, 360px);
        padding: 3px;
        border-radius: 1.1rem;
    }
    .player-controller {
        gap: 0.45rem;
        padding: 0.25rem 0.5rem;
    }
    .toggle-options {
        gap: 0.3rem;
    }
    .toggle-options .btn {
        font-size: 0 !important;
        padding: 0.3rem 0.5rem !important;
        min-height: 34px !important;
        min-width: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    .toggle-options .btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .toggle-options .btn[data-outside="offcanvas-history"] {
        background: transparent !important;
        padding: 0.3rem !important;
        border: none !important;
    }
    .toggle-options .btn[data-outside="offcanvas-history"] svg {
        width: 20px !important;
        height: 20px !important;
    }
    .noticias-btn {
        background: rgba(244, 124, 32, 0.16) !important;
        padding: 0.3rem !important;
        border: 1px solid rgba(255, 176, 77, 0.7) !important;
        border-radius: 50% !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
    .noticias-btn .noticias-text {
        display: none !important;
    }
    .noticias-btn .noticias-icon {
        width: 18px !important;
        height: 18px !important;
    }
    .noticias-btn .noticias-dot {
        width: 7px !important;
        height: 7px !important;
    }
    .toggle-options .btn.l\:none {
        background: transparent !important;
        padding: 0.3rem !important;
        border: none !important;
    }
    .toggle-options .btn.l\:none svg {
        width: 20px !important;
        height: 20px !important;
    }
    .ad-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .ad-nav-btn.prev {
        left: 4px;
    }
    .ad-nav-btn.next {
        right: 4px;
    }
    .ad-dots-container {
        bottom: 8px;
        padding: 3px 8px;
        gap: 4px;
    }
    .ad-dot {
        width: 6px;
        height: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-cover-image,
    .noticias-dot {
        animation: none;
    }
}