/* Player Creado por AudioStremVolt.com */
/* Deseas player personalizado WhatsApp +51979200091 */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f172a;
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ⬅️ CAMBIO CLAVE */
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Art (Blurred) - Fixed for Mobile */
#bg-art {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) brightness(0.6);
    z-index: 0;
    transform: scale(1.1);
    transition: opacity 1s ease;
    will-change: transform, opacity;
}

/* Background & Visualizer - Fixed for Mobile */
.background-visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
}

#visualizer-canvas {
    width: 100%;
    height: 100%;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0f172a 80%);
    z-index: 2;
    pointer-events: none;
}

/* Player Container */
.player-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
}

.radio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Album Art */
.album-art-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.visualizer-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.playing .visualizer-ring {
    opacity: 0.6;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

.playing #album-art {
    transform: scale(1.05);
}

/* Track Info */
.track-info {
    text-align: center;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

#track-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
}

.scrolling-text {
    /* Simple marquee effect if needed via JS or CSS animation */
}

#artist-name {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.control-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.social-icons {
    display: flex;
    gap: 4px;
    margin: 10px 0;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Brand Colors on Hover */
.s-phone:hover {
    background: #22c55e;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.s-whatsapp:hover {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.s-facebook:hover {
    background: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.s-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 5px 15px rgba(214, 36, 159, 0.4);
}

.s-twitter:hover {
    background: #1DA1F2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.s-website:hover {
    background: #4f46e5;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.s-x:hover {
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.s-tiktok:hover {
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.s-telegram:hover {
    background: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.s-email:hover {
    background: #ea4335;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.4);
}

.s-googleplay:hover {
    background: #00C853;
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.45);
}

.s-appstore:hover {
    background: #0A84FF;
    box-shadow: 0 5px 15px rgba(10, 132, 255, 0.45);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 80%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.volume-container:hover {
    opacity: 1;
}

#volume-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 10px;
}

.live-badge {
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .glass-panel {
        padding: 30px 20px;
    }

    .album-art-container {
        width: 200px;
        height: 200px;
    }
}


@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Horizontal Mode (large.php) */
.horizontal-mode .player-container {
    width: 100%;
    max-width: 100%;
    height: 150px;
    padding: 0;
    position: fixed;
    bottom: 0;
    left: 0;
}

.horizontal-mode .glass-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    gap: 20px;
    border: none;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.85);
}

.horizontal-mode .glass-panel:hover {
    transform: none;
}

.horizontal-mode .radio-title {
    display: none;
}

.horizontal-mode .album-art-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.horizontal-mode #album-art {
    border-radius: 10px;
}

.horizontal-mode .visualizer-ring {
    border-radius: 10px;
}

.horizontal-mode .track-info {
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
}

.horizontal-mode #track-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.horizontal-mode #artist-name {
    font-size: 1.2rem;
}

.horizontal-mode .status-bar {
    justify-content: flex-start;
    gap: 15px;
    margin-top: 5px;
}

.horizontal-mode .controls {
    flex-direction: row;
    width: auto;
    gap: 30px;
    align-items: center;
}

.horizontal-mode .control-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
}

.horizontal-mode .volume-container {
    width: 120px;
}

.horizontal-mode .social-icons {
    margin: 0;
}

/* Responsive adjustments for Horizontal Mode */
@media (max-width: 768px) {
    .horizontal-mode .track-info {
        display: none;
    }

    /* Mostrar redes también en mobile */
    .horizontal-mode .social-icons {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .horizontal-mode .volume-container {
        display: flex;
        justify-content: center;
        width: 90%;
        margin-top: 8px;
    }
}

.radio-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-logo img {
    width: 260px;              /* tamaño ideal desktop */
    max-width: 90%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter:
        drop-shadow(0 0 6px rgba(255, 200, 80, 0.35))
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

/* Logo en modo horizontal */
.horizontal-mode .radio-logo {
    width: auto;
    margin-right: 15px;
}

.horizontal-mode .radio-logo img {
    width: 160px;
    margin-bottom: 0;
}



/* =========================
   LOGO – ANIMACIÓN PLAY (FIX REAL)
========================= */

/* estado normal */
.top-logo {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    pointer-events: none;
    transition: transform 0.7s ease;
}

.top-logo img {
    width: 360px;
    max-width: 85vw;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* 🔥 cuando toca PLAY */
.playing .top-logo {
    transform: translateY(-22vh); /* SUBE */
}

.playing .top-logo img {
    transform: scale(0.55);      /* ACHICA */
    opacity: 0.85;
}

@media (max-width: 480px) {
    .playing .top-logo {
        transform: translateY(-18vh);
    }

    .playing .top-logo img {
        transform: scale(0.5);
    }
}

/* =========================
   MOBILE – AJUSTE DEFINITIVO
========================= */
@media (max-width: 480px) {

    /* Logo centrado antes de play */
    .top-logo {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 15;
        pointer-events: none;
        transition: top 0.6s ease, transform 0.6s ease;
    }

    .top-logo img {
        width: 440px;        /* ⬅️ MÁS GRANDE */
        max-width: 85vw;
        height: auto;
        transition: transform 0.6s ease, opacity 0.6s ease;
    }

    /* Al tocar PLAY */
    body.playing .top-logo {
        top: 12vh;           /* ⬅️ baja un poco menos */
    }

    body.playing .top-logo img {
        transform: scale(0.65);   /* ⬅️ CLAVE: ya no queda chico */
        opacity: 0.9;
    }
}


/* =========================
   MOBILE – DESACTIVAR HORIZONTAL MODE
========================= */
@media (max-width: 768px) {
    body.horizontal-mode .player-container {
        position: relative;
        height: auto;
        max-width: 800px;
        padding: 20px;
    }

    body.horizontal-mode .glass-panel {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        border-radius: 24px;
    }

    body.horizontal-mode .track-info {
        display: block;
        text-align: center;
    }

    body.horizontal-mode .controls {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    body.horizontal-mode .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }

    body.horizontal-mode .volume-container {
        width: 90%;
    }
}

.radio-logo {
  max-width: 180px;
  width: 90%;
  margin: 0 auto 14px;
  display: block;
  object-fit: contain;
}

