:root {
    /* --- VARIABLES VISUALES --- */
    --bg-color: #0f0c29;
    --accent-color: #00d4ff; /* Cyan Neón */
    --secondary-color: #7b2cbf; /* Morado Profundo */
    --text-color: #ffffff;
    
    /* --- UI --- */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-card: 16px;
    --neon-glow: 0 0 15px rgba(0, 212, 255, 0.5);
    --heart-color: #ff4757;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    padding-bottom: 140px; /* Espacio extra para el player móvil */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: filter 0.1s; /* Suaviza el efecto disco */
}

/* --- NAVBAR --- */
nav {
    padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
    background: rgba(15, 12, 41, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 3000; border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}
.nav-logo { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav-logo span { color: var(--accent-color); text-shadow: var(--neon-glow); }
.nav-actions { display: flex; gap: 15px; align-items: center; position: relative; }

.auth-btn {
    border: 1px solid var(--accent-color); padding: 4px 12px 4px 4px; border-radius: 30px; 
    color: var(--accent-color); cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; gap: 10px; background: rgba(0, 212, 255, 0.05);
}
.auth-btn:hover { background: var(--accent-color); color: #0f0c29; box-shadow: var(--neon-glow); }
.user-avatar-small { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-color); background: #333; }
.user-name-span { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

/* --- MARQUESINA (NEWS TICKER) --- */
.ticker-bar {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    position: relative;
    z-index: 5;
}
.ticker-content {
    display: inline-block;
    animation: tickerMove 30s linear infinite; 
    padding-left: 100%;
}
.ticker-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 0.85rem;
    color: #ddd;
    letter-spacing: 1px;
}
.ticker-item i { color: var(--accent-color); margin-right: 5px; }

@keyframes tickerMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- HERO --- */
.hero-banner { position: relative; width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; margin-bottom: 20px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=1920&auto=format&fit=crop'); background-size: cover; background-position: center; filter: brightness(0.4) hue-rotate(190deg) saturate(1.2); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.brand-title { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: -2px; margin: 0; text-shadow: 0 0 30px rgba(0, 212, 255, 0.4); }
.brand-music { font-style: italic; background: -webkit-linear-gradient(#fff, var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-subtitle { font-size: 0.9rem; color: var(--accent-color); letter-spacing: 3px; margin-top: 10px; text-transform: uppercase; font-weight: 600; border-top: 1px solid var(--accent-color); border-bottom: 1px solid var(--accent-color); display: inline-block; padding: 5px 20px; }

/* --- ESTILOS RULETA MUSICAL --- */
.roulette-btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
    animation: pulseBtn 3s infinite;
}
.roulette-btn:hover {
    background: var(--accent-color);
    color: #0f0c29;
    box-shadow: 0 0 30px var(--accent-color);
    transform: scale(1.05) translateY(-2px);
}
.roulette-btn i { margin-right: 8px; }
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* --- SEARCH --- */
.search-wrapper { width: 100%; padding: 0 5%; margin: -10px auto 20px auto; display: flex; justify-content: center; position: relative; z-index: 10; }
.search-box { position: relative; width: 100%; max-width: 600px; }
.search-input { width: 100%; padding: 15px 20px 15px 50px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1rem; outline: none; transition: 0.3s; backdrop-filter: blur(5px); }
.search-input::placeholder { color: #aaa; }
.search-input:focus { background: rgba(15, 12, 41, 0.9); border-color: var(--accent-color); box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--accent-color); font-size: 1.1rem; z-index: 20; pointer-events: none; }

/* --- CONTENT --- */
.intro-section { text-align: center; padding: 20px 5%; margin-bottom: 10px; }
.filters-wrapper { width: 100%; overflow-x: auto; padding: 10px 5%; margin-bottom: 20px; scrollbar-width: none; }
.filters { display: flex; gap: 10px; width: max-content; margin: 0 auto; }
.filter-btn { background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 20px; border-radius: 50px; cursor: pointer; transition: 0.3s; white-space: nowrap; font-size: 0.85rem; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-color); color: #0f0c29; font-weight: 600; box-shadow: var(--neon-glow); }

.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; padding: 0 5% 40px 5%; }
.song-card { background: var(--glass-bg); border-radius: var(--radius-card); padding: 10px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.song-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: var(--neon-glow); }
.cover-art { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; cursor: pointer; }
.song-card:hover .play-overlay { opacity: 1; }
.play-overlay i { font-size: 2.5rem; color: var(--accent-color); filter: drop-shadow(0 0 10px #fff); }

.song-info h3 { font-size: 0.95rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.song-info p { font-size: 0.75rem; color: #bbb; margin-bottom: 8px; }
.song-stats { display: flex; gap: 12px; font-size: 0.75rem; color: #aaa; margin-bottom: 8px; align-items: center; }
.like-btn.liked { color: var(--heart-color); animation: popHeart 0.3s; }
@keyframes popHeart { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.card-actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; }
.genre-tag { font-size: 0.65rem; background: var(--secondary-color); padding: 2px 8px; border-radius: 6px; color: #fff; }
.download-btn { color: #fff; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.download-btn:hover { color: var(--accent-color); }

.playlist-section { max-width: 800px; margin: 0 auto 60px auto; padding: 0 20px; }
.playlist-section:empty { display: none; }
.section-title { text-align: left; color: var(--accent-color); margin-bottom: 15px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid rgba(0, 212, 255, 0.1); padding-bottom: 5px; display: inline-block; font-size: 1.2rem; }
.playlist-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; transition: 0.3s; cursor: pointer; position: relative; }
.playlist-item:hover { background: rgba(0, 212, 255, 0.1); transform: translateX(5px); border-left: 3px solid var(--accent-color); }
.pl-left { display: flex; align-items: center; gap: 12px; }
.pl-thumb { width: 45px; height: 45px; border-radius: 6px; object-fit: cover; }
.pl-info h4 { font-size: 0.9rem; color: #fff; margin: 0; font-weight: 500; }
.pl-info span { font-size: 0.7rem; color: #aaa; }
.pl-play-icon { color: var(--accent-color); font-size: 1.1rem; opacity: 0.5; transition: 0.3s; }

footer { margin-top: auto; padding: 30px 20px 120px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); color: #888; font-size: 0.85rem; background: rgba(15, 12, 41, 0.5); }

/* --- MODALES & HELPERS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 4000; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
.modal-box { background: rgba(15, 12, 41, 0.95); border: 1px solid var(--accent-color); padding: 25px; border-radius: 20px; width: 90%; max-width: 400px; box-shadow: 0 0 40px rgba(0, 212, 255, 0.2); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-box.wide { max-width: 600px; }
.modal-title { color: var(--accent-color); text-transform: uppercase; font-weight: 700; margin-bottom: 20px; text-align: center; }
.modal-close { position: absolute; top: 15px; right: 15px; color: #fff; cursor: pointer; font-size: 1.2rem; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #aaa; font-size: 0.8rem; margin-bottom: 5px; }
.form-input { width: 100%; padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; }
textarea.form-input { min-height: 100px; resize: vertical; font-family: inherit; }
.form-btn { width: 100%; padding: 12px; background: var(--accent-color); border: none; color: #0f0c29; font-weight: 700; border-radius: 8px; cursor: pointer; margin-top: 10px; }

/* DASHBOARD ESTILOS */
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; }
.dash-card { 
    background: rgba(255,255,255,0.05); padding: 20px; border-radius: 20px; text-align: center; 
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.dash-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: var(--neon-glow); }
.dash-val { font-size: 2.2rem; font-weight: 800; color: #fff; margin: 10px 0; text-shadow: 0 0 15px rgba(255,255,255,0.2); }
.dash-lbl { font-size: 0.75rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
.dash-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 10px; filter: drop-shadow(0 0 5px var(--accent-color)); }
.chart-box { 
    background: rgba(0,0,0,0.4); padding: 20px; border-radius: 20px; height: 300px; 
    border: 1px solid rgba(255,255,255,0.05);
}

/* LETRAS MODAL */
#lyricsModal .modal-box { text-align: center; }
.lyrics-content { white-space: pre-wrap; line-height: 1.8; color: #ddd; max-height: 300px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }

.users-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.85rem; }
.users-table th { text-align: left; color: var(--accent-color); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px; }
.users-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ddd; }
.users-table td i { cursor: pointer; margin-left: 5px; transition: 0.2s; }
.action-icon-edit { color: #00d4ff; } .action-icon-del { color: #ff4757; }

.alert-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 80%; max-width: 300px; padding: 30px; border-radius: 25px; z-index: 5000; text-align: center; pointer-events: none; opacity: 0; transition: all 0.4s; background: rgba(15, 12, 41, 0.98); box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.alert-modal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.alert-icon { font-size: 3.5rem; margin-bottom: 15px; }
.alert-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.alert-msg { font-size: 0.9rem; color: #ccc; margin-bottom: 25px; }
.alert-error .alert-icon { color: #ff4757; } .alert-success .alert-icon { color: #2ed573; }

.eq-modal { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%) scale(0.9); width: 90%; max-width: 320px; background: rgba(15, 12, 41, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--accent-color); border-radius: 20px; padding: 20px; z-index: 1500; opacity: 0; pointer-events: none; transition: 0.3s; display: flex; flex-direction: column; gap: 15px; }
.eq-modal.active { opacity: 1; pointer-events: all; transform: translateX(-50%) scale(1); }
.eq-header { display: flex; justify-content: space-between; align-items: center; }
.eq-sliders { display: flex; justify-content: space-between; height: 150px; padding: 10px 0; }
.eq-band { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 20%; }
input[type=range].eq-range { -webkit-appearance: slider-vertical; width: 5px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 5px; }

.profile-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.profile-pic-container { position: relative; width: 100px; height: 100px; margin-bottom: 10px; }
.profile-pic-large { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-color); box-shadow: var(--neon-glow); }
.profile-pic-edit { position: absolute; bottom: 0; right: 0; background: var(--accent-color); color: #000; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.logout-btn-modal { width: 100%; padding: 12px; background: rgba(255, 71, 87, 0.1); border: 1px solid #ff4757; color: #ff4757; font-weight: 700; border-radius: 8px; cursor: pointer; margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; }

/* --- BOTONES FLOTANTES ADMIN --- */
.admin-btn-float { 
    position: fixed; 
    right: 20px; 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    z-index: 2000; 
    cursor: pointer; 
    transition: 0.3s; 
}
/* Botón Subir (Morado) - Abajo */
#adminBtn { bottom: 220px; background: var(--secondary-color); color: #fff; }
/* Botón Usuarios (Cyan) - Medio */
#usersBtn { bottom: 290px; background: #00d4ff; color: #000; }
/* Botón Stats (Verde Neon) - Arriba */
#statsBtn { bottom: 360px; background: #2ed573; color: #000; }
/* Botón Buzón (Naranja) - Más Arriba */
#inboxBtn { bottom: 430px; background: #ff9f43; color: #000; }

.admin-actions-overlay { position: absolute; top: 8px; right: 8px; display: flex; gap: 8px; z-index: 50; }
.action-btn { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; color: #fff; box-shadow: 0 0 5px rgba(0,0,0,0.5); }
.btn-delete { background: rgba(255, 71, 87, 0.9); } .btn-edit { background: rgba(0, 212, 255, 0.9); }
.list-action-icon { font-size: 1.1rem; cursor: pointer; margin-left: 10px; } .icon-del { color: #ff4757; } .icon-edit { color: #00d4ff; }

/* WHATSAPP BUTTON */
.float-whatsapp { position: fixed; width: 55px; height: 55px; bottom: 150px; right: 20px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 28px; box-shadow: 0 0 20px rgba(37, 211, 102, 0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.1); }

/* BOTÓN DE PEDIDOS (PÚBLICO) - IZQUIERDA */
.float-request { 
    position: fixed; width: 55px; height: 55px; 
    bottom: 150px; left: 20px; 
    background-color: var(--accent-color); color: #000; 
    border-radius: 50px; 
    font-size: 24px; box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); 
    z-index: 2000; display: flex; align-items: center; justify-content: center; 
    cursor: pointer; transition: 0.3s; border: 2px solid rgba(255,255,255,0.1);
    animation: bounce 2s infinite;
}
.float-request:hover { transform: scale(1.1); box-shadow: 0 0 30px var(--accent-color); }
@keyframes bounce { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-10px);} }

/* --- REPRODUCTOR DOCK --- */
.player-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: auto; min-height: 80px;
    background: rgba(15, 12, 41, 0.99); border-top: 1px solid var(--accent-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px 15px 20px; z-index: 1000; transform: translateY(110%); 
    transition: transform 0.4s ease; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); 
    border-radius: 20px 20px 0 0;
}
.player-bar.active { transform: translateY(0); }

.seek-container { position: absolute; top: -6px; left: 0; width: 100%; height: 6px; background: rgba(255,255,255,0.1); cursor: pointer; z-index: 1001; }
.seek-fill { height: 100%; background: var(--accent-color); width: 0%; transition: width 0.1s linear; position: relative; }
.seek-fill::after { content: ''; position: absolute; right: -5px; top: -3px; width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 5px var(--accent-color); opacity: 0; transition: opacity 0.2s; }
.seek-container:hover .seek-fill::after { opacity: 1; }
.seek-slider-input { position: absolute; top: -6px; left: 0; width: 100%; height: 20px; opacity: 0; cursor: pointer; margin: 0; }

.track-info { display: flex; align-items: center; width: 25%; gap: 12px; }
.track-thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; border: 1px solid var(--accent-color); flex-shrink: 0; }
.track-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.track-details { overflow: hidden; }
.track-details h4 { font-size: 0.9rem; margin: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-details span { font-size: 0.7rem; color: var(--accent-color); }

/* ✅ MODO VINILO: CLASE PARA QUE GIRE */
.vinyl-active {
    border-radius: 50% !important;
    animation: rotateRecord 4s linear infinite;
    box-shadow: 0 0 0 2px #111, 0 0 10px rgba(0, 212, 255, 0.5);
}
@keyframes rotateRecord {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-controls { display: flex; flex-direction: column; align-items: center; width: 50%; position: relative; }
.control-buttons { display: flex; align-items: center; gap: 20px; margin-bottom: 2px; }
.btn-ctrl { background: none; border: none; color: #ccc; cursor: pointer; font-size: 1.1rem; transition: 0.2s; }
.btn-ctrl:hover { color: var(--accent-color); }
.btn-play { font-size: 1.5rem; background: var(--accent-color); color: #0f0c29; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: var(--neon-glow); }

.visualizer-container { width: 100%; max-width: 300px; height: 20px; display: flex; align-items: flex-end; justify-content: center; opacity: 0.6; }
canvas#audioVisualizer { width: 100%; height: 100%; display: block; }

.volume-ctrl { width: 25%; display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--accent-color); }
.vol-slider { width: 80px; accent-color: var(--accent-color); height: 3px; }

/* --- MOBILE PLAYER (CORREGIDO) --- */
@media (max-width: 768px) {
    .brand-title { font-size: 2.5rem; }
    .music-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px 40px 10px; }
    
    .player-bar { flex-direction: column; height: auto; min-height: 110px; padding: 15px 15px 10px 15px; }
    .track-info { width: 100%; margin-bottom: 10px; justify-content: flex-start; }
    .player-controls { width: 100%; order: 2; margin-bottom: 5px; }
    .visualizer-container { width: 100%; height: 30px; position: absolute; bottom: 0; left: 0; opacity: 0.3; pointer-events: none; z-index: 0; max-width: none; }
    
    .control-buttons { z-index: 2; gap: 12px; margin-bottom: 5px; justify-content: center; width: 100%; }
    .btn-play { width: 45px; height: 45px; font-size: 1.3rem; }
    .btn-ctrl { font-size: 1.1rem; padding: 5px; }
    
    .volume-ctrl { display: none; } 
    .eq-modal { bottom: 130px; width: 95%; }
    .float-whatsapp { bottom: 160px; right: 15px; }
    /* Ajuste de botones flotantes móviles */
    .float-request { bottom: 160px; left: 15px; }
    #adminBtn { bottom: 230px; right: 15px; }
    #usersBtn { bottom: 300px; right: 15px; }
    #statsBtn { bottom: 370px; right: 15px; }
    #inboxBtn { bottom: 440px; right: 15px; }
}

/* --- ESTILOS PARA GENERADOR DE STORIES --- */
.story-layout {
    width: 400px; height: 711px; position: relative; overflow: hidden;
    background: #0f0c29; font-family: 'Poppins', sans-serif;
    display: flex; flex-direction: column; justify-content: flex-start; 
    align-items: center; text-align: center; padding-top: 40px;
}
.story-bg {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover; background-position: center;
    filter: blur(30px) brightness(0.6); z-index: 1;
}
.story-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #0f0c29, transparent); z-index: 2;
}
.story-content { position: relative; z-index: 10; padding: 30px; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 60px; padding-bottom: 60px; }
.story-logo { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 2px; margin-bottom: 20px; }
.story-logo span { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-color); }
.story-cover-wrapper { width: 240px; height: 240px; margin: 0 auto 20px auto; position: relative; }
.story-cover {
    width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(255,255,255,0.1);
}
.story-text h2 { font-size: 1.8rem; color: #fff; margin: 0; font-weight: 700; text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.story-text h3 { font-size: 1.2rem; color: var(--accent-color); margin-top: 10px; font-weight: 400; letter-spacing: 1px; }
.story-footer { color: #aaa; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: 1px; }
.story-footer i { color: var(--accent-color); animation: pulse 2s infinite; }

/* --- ESTILOS DEL QR EN LA STORY --- */
.story-qr-box {
    margin-top: 15px;
    background: #fff;
    padding: 15px; 
    border-radius: 15px;
    width: 140px; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.qr-text { color: #000; font-size: 0.65rem; font-weight: 800; margin-top: 5px; letter-spacing: 1px; text-align: center; }

@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- ESTILOS PARA LA NUEVA BARRA DE PROGRESO --- */
.progress-container {
    margin-top: 20px;
}

.progress-label {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
}

.progress-bar-fill {
    height: 20px;
    border-radius: 50px;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    animation: gradientFlow 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.progress-bar-text {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- ESTILOS PARA CAROUSELES DE GÉNEROS --- */
.carousel-section {
    padding: 10px 0 30px 5%; /* Padding a la izquierda para que no pegue al borde */
    max-width: 100vw;
}
.carousel-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: capitalize;
}
.carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px; /* Espacio para la barra de scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0,0,0,0.3);
}
/* Para navegadores Webkit (Chrome, Safari) */
.carousel-container::-webkit-scrollbar {
    height: 8px;
}
.carousel-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}
.carousel-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0.3);
}
.carousel-container .song-card {
    width: 180px; /* Ancho fijo para los items del carousel */
    flex-shrink: 0; /* Evita que los items se encojan */
}
