@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Montserrat:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #020205;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;
    padding: 30px 15px 120px 15px; /* Espacio inferior para no tapar contenido con el reproductor flotante */
}

/* --- FONDO EN MOVIMIENTO CONSTANTE --- */
.bg-energy {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(2px 2px at 40px 60px, #00d0ff, transparent),
        radial-gradient(3px 3px at 20px 150px, #0055ff, transparent),
        radial-gradient(2px 2px at 100px 100px, #00d0ff, transparent),
        radial-gradient(4px 4px at 150px 40px, rgba(0, 208, 255, 0.2), transparent);
    background-size: 200px 200px;
    animation: energyFlow 12s linear infinite;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

@keyframes energyFlow {
    from { transform: rotate(0deg) translateY(0); }
    to { transform: rotate(5deg) translateY(-100px); }
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-card {
    position: relative;
    z-index: 1;
    background: rgba(4, 8, 16, 0.85);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 420px;
    padding: 40px 25px;
    border: 2px solid #00d0ff;
    box-shadow: 0 0 35px rgba(0, 208, 255, 0.2), inset 0 0 20px rgba(0, 85, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    animation: cardFloat 4s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- ANIMACIÓN DEL AVATAR --- */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 2px solid #ffffff;
}

.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed transparent;
}

.ring-1 {
    width: 110px;
    height: 110px;
    border-top-color: #00d0ff;
    border-bottom-color: #0055ff;
    animation: rotateRing 3s linear infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    border-left-color: #ffcc00;
    border-right-color: transparent;
    animation: rotateRing 5s linear infinite reverse;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- TEXTO NEÓN --- */
.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px #00d0ff, 0 0 20px #0055ff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: #ffcc00;
    color: #000;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* --- ETIQUETA DE UBICACIÓN (COLOMBIA) --- */
.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #00d0ff;
    margin-bottom: 25px;
    background: rgba(0, 208, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 208, 255, 0.2);
}

.location-tag i {
    color: #ffcc00;
}

/* --- SECCIÓN DEL VIDEO --- */
.video-section {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
}

.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border: 2px solid #00d0ff;
    outline: 1px solid #0044aa;
    outline-offset: -3px;
    box-shadow: 0 0 15px rgba(0, 208, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- CONTADOR DE VISITAS --- */
.views-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px auto 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.views-counter i {
    color: #00d0ff;
}

.views-counter strong {
    color: #ffffff;
    font-weight: 700;
}

/* --- BOTONES CON BRILLO LÁSER CONTINUO --- */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.btn-animate {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(90deg, #050b14, #0a1526);
    border: 1px solid rgba(0, 208, 255, 0.4);
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate i {
    font-size: 1.3rem;
    color: #ffcc00;
}

.laser-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shinePass 8s infinite;
}

/* DESFASE DE ANIMACIÓN DEL BRILLO LÁSER */
.itero .laser-shine { animation-delay: 0s; }
.twitch .laser-shine { animation-delay: 1s; }
.instagram .laser-shine { animation-delay: 2s; }
.tiktok .laser-shine { animation-delay: 3s; }
.whatsapp .laser-shine { animation-delay: 4s; }
.facebook .laser-shine { animation-delay: 5s; }
.kick .laser-shine { animation-delay: 6s; }
.twitter .laser-shine { animation-delay: 7s; }
.correo .laser-shine { animation-delay: 8s; }

@keyframes shinePass {
    0% { left: -100%; }
    30%, 100% { left: 150%; }
}

.btn-animate:hover {
    border-color: #00d0ff;
    box-shadow: 0 0 20px rgba(0, 208, 255, 0.4);
    transform: scale(1.03);
    background: #0055ff;
}

.btn-animate:hover i {
    color: #ffffff;
}

/* ESTILOS ESPECÍFICOS BOTÓN TWITCH */
.twitch-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

.twitch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.badge-status {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 900;
    margin-left: auto;
}

.btn-animate.twitch.offline .badge-status {
    background: #444;
    color: #ccc;
}

.btn-animate.twitch.is-live {
    border-color: #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.btn-animate.twitch.is-live:hover {
    background: #ff0055;
}

.btn-animate.twitch.is-live .badge-status {
    background: #ff0055;
    color: #fff;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ICONO SVG DE ITERO */
.itero-icon {
    width: 20px;
    height: 20px;
    color: #ffcc00;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.btn-animate:hover .itero-icon {
    color: #ffffff;
}

.status-detail {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
    font-weight: 500;
}

/* --- REPRODUCTOR DE MÚSICA (VISTA PC / ESCRITORIO: 1 FILA) --- */
.music-player-card {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 520px;
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 208, 255, 0.4);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 9999;
    box-sizing: border-box;
    transition: transform 0.35s ease;
}

.toggle-player-btn {
    position: absolute;
    top: -26px;
    right: 16px;
    background: rgba(8, 14, 26, 0.95);
    border: 1px solid rgba(0, 208, 255, 0.4);
    border-bottom: none;
    color: #00d0ff;
    padding: 4px 10px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    box-shadow: 0 -4px 10px rgba(0, 208, 255, 0.15);
    z-index: 10000;
}

.music-player-card.collapsed {
    transform: translate(-50%, 100%);
}

.music-player-card.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.music-left {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 140px;
}

.song-cover {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0, 208, 255, 0.3);
}

.song-cover .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.song-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.music-center input[type="range"] {
    flex-grow: 1;
    height: 4px;
    accent-color: #00d0ff;
    cursor: pointer;
}

.music-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
}

.play-btn {
    width: 30px;
    height: 30px;
    background: #00d0ff;
    border-radius: 50%;
    color: #040810;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00d0ff;
    font-size: 0.8rem;
}

.volume-slider {
    width: 45px;
    height: 3px;
    accent-color: #00d0ff;
    cursor: pointer;
}

/* --- VISTA MÓVIL Y TABLET (MENOR A 768px): 2 FILAS OPTIMIZADAS --- */
@media (max-width: 768px) {
    .music-player-card {
        width: 92%;
        max-width: 480px;
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 12px 14px;
    }

    .music-left {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 110px;
        overflow: hidden;
    }

    .music-center {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        min-width: 0;
        padding-right: 4px;
    }

    .music-center input[type="range"] {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    #current-time, #total-duration {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.68rem;
    }

    .music-right {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 4px;
    }

    .player-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin: 0 auto;
    }

    .volume-container {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .volume-slider {
        width: 45px;
    }
}
