/* ============================================================
   REMIX JECSON v3.0 — Style-Remix.css
   Efectos visuales: láseres, humo, neón, partículas, strobe
   ============================================================ */

/* ===== RESET Y VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #00ffff;
    --secondary: #0303e2;
    --accent: #ff00ff;
    --gold: #ffd700;
    --bg: #0a0a12;
    --surface: rgba(0, 0, 20, 0.75);
    --glass: rgba(255, 255, 255, 0.06);
    --radius: 24px;
    --shadow-glow: 0 0 40px rgba(0, 255, 255, 0.15);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
}

/* ===== FONDO ANIMADO (screensaver Mac style) ===== */
.bg-wrapper {
    position: fixed;
    inset: -10%;
    z-index: 0;
    overflow: hidden;
    animation: macScreensaver 28s ease-in-out infinite alternate;
}
.bg-image {
    width: 100%; height: 100%;
    background: url('uploads/fondo.png') center/cover no-repeat;
    filter: brightness(0.45) saturate(0.85) contrast(1.1);
}
@keyframes macScreensaver {
    0% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.02) translate(-2%, -1%); }
    50% { transform: scale(1.04) translate(2%, 1.5%); }
    75% { transform: scale(1.03) translate(-1.5%, 2%); }
    100% { transform: scale(1.05) translate(1%, -1.5%); }
}

/* ===== CANVAS ECUALIZADOR ===== */
#equalizer {
    position: fixed; inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* ===== LÁSERES DISCOTECA ===== */
.laser-beam {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    width: 3px;
    height: 120vh;
    top: -10vh;
    transform-origin: top center;
    opacity: 0;
    filter: blur(1px);
    box-shadow: 0 0 20px currentColor, 0 0 60px currentColor, 0 0 100px currentColor;
    animation: laserSweep 4s ease-in-out infinite;
}
.laser-beam.l1 { left: 15%; color: #ff00ff; animation-delay: 0s; animation-duration: 3.5s; }
.laser-beam.l2 { left: 35%; color: #00ffff; animation-delay: 0.7s; animation-duration: 4.2s; }
.laser-beam.l3 { left: 55%; color: #ff3333; animation-delay: 1.4s; animation-duration: 3.8s; }
.laser-beam.l4 { left: 75%; color: #00ff88; animation-delay: 2.1s; animation-duration: 4.5s; }
.laser-beam.l5 { left: 90%; color: #ffd700; animation-delay: 2.8s; animation-duration: 3.2s; }

@keyframes laserSweep {
    0%   { opacity: 0; transform: rotate(-25deg) scaleY(0.3); }
    15%  { opacity: 0.8; transform: rotate(-15deg) scaleY(1); }
    30%  { opacity: 0.4; transform: rotate(5deg) scaleY(0.6); }
    50%  { opacity: 1; transform: rotate(20deg) scaleY(1.2); }
    70%  { opacity: 0.3; transform: rotate(-10deg) scaleY(0.5); }
    85%  { opacity: 0.9; transform: rotate(15deg) scaleY(1); }
    100% { opacity: 0; transform: rotate(-25deg) scaleY(0.3); }
}

/* Láseres intensos (activados por JS cuando el audio está fuerte) */
.laser-intense {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    width: 4px;
    height: 150vh;
    top: -25vh;
    opacity: 0;
    filter: blur(2px);
    box-shadow: 0 0 30px currentColor, 0 0 80px currentColor, 0 0 150px currentColor, 0 0 200px currentColor;
    transition: opacity 0.15s ease;
}
.laser-intense.li1 { left: 20%; color: #ff00ff; transform: rotate(-30deg); }
.laser-intense.li2 { left: 50%; color: #00ffff; transform: rotate(0deg); }
.laser-intense.li3 { left: 80%; color: #ff3333; transform: rotate(30deg); }
.laser-intense.active { opacity: 0.9; }

/* ===== HUMO / NEBLINA ===== */
.smoke-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.smoke-puff {
    position: absolute;
    bottom: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: smokeRise 8s ease-out infinite;
    opacity: 0;
}
.smoke-puff.s1 { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.smoke-puff.s2 { left: 30%; animation-delay: 2s; animation-duration: 9s; }
.smoke-puff.s3 { left: 55%; animation-delay: 4s; animation-duration: 8s; }
.smoke-puff.s4 { left: 75%; animation-delay: 1s; animation-duration: 10s; }
.smoke-puff.s5 { left: 90%; animation-delay: 5s; animation-duration: 7s; }

@keyframes smokeRise {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    20%  { opacity: 0.6; }
    50%  { transform: translateY(-40vh) scale(1.5); opacity: 0.4; }
    80%  { transform: translateY(-70vh) scale(2); opacity: 0.2; }
    100% { transform: translateY(-100vh) scale(2.5); opacity: 0; }
}

/* Humo intenso (activado por audio) */
.smoke-intense {
    position: absolute;
    bottom: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,0,255,0.2) 0%, rgba(0,255,255,0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.smoke-intense.si1 { left: 20%; }
.smoke-intense.si2 { left: 60%; }
.smoke-intense.active { animation: smokeBurst 3s ease-out infinite; }

@keyframes smokeBurst {
    0%   { transform: translateY(0) scale(0.3); opacity: 0; }
    30%  { opacity: 0.8; }
    100% { transform: translateY(-80vh) scale(3); opacity: 0; }
}

/* ===== LUCES DE NEÓN ===== */
.neon-frame {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    border: 2px solid transparent;
    border-radius: 20px;
    box-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        inset 0 0 10px rgba(0,255,255,0.1);
    animation: neonFlicker 3s ease-in-out infinite alternate;
}
.neon-frame.top    { top: 20px; left: 20px; right: 20px; height: 3px; border: none; border-top: 2px solid var(--primary); border-radius: 0; }
.neon-frame.bottom { bottom: 20px; left: 20px; right: 20px; height: 3px; border: none; border-bottom: 2px solid var(--primary); border-radius: 0; }
.neon-frame.left   { top: 20px; left: 20px; bottom: 20px; width: 3px; border: none; border-left: 2px solid var(--accent); border-radius: 0; animation-delay: 0.5s; }
.neon-frame.right  { top: 20px; right: 20px; bottom: 20px; width: 3px; border: none; border-right: 2px solid var(--accent); border-radius: 0; animation-delay: 1s; }

@keyframes neonFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    10% { opacity: 0.9; }
    20% { opacity: 1; }
    30% { opacity: 0.85; filter: brightness(1.2); }
    40% { opacity: 1; }
    50% { opacity: 0.95; }
    60% { opacity: 1; filter: brightness(1); }
    70% { opacity: 0.9; }
    80% { opacity: 1; }
    90% { opacity: 0.88; filter: brightness(1.3); }
}

/* ===== PARTÍCULAS / CONFETI ===== */
.particle-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: particleFloat 6s linear infinite;
    opacity: 0;
}
.particle.p1  { left: 5%;  animation-delay: 0s;  background: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
.particle.p2  { left: 15%; animation-delay: 1s;  background: #00ffff; box-shadow: 0 0 10px #00ffff; }
.particle.p3  { left: 25%; animation-delay: 2.5s; background: #ffd700; box-shadow: 0 0 10px #ffd700; }
.particle.p4  { left: 35%; animation-delay: 0.8s; background: #ff3333; box-shadow: 0 0 10px #ff3333; }
.particle.p5  { left: 45%; animation-delay: 3.2s; background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.particle.p6  { left: 55%; animation-delay: 1.5s; background: #ff00ff; box-shadow: 0 0 10px #ff00ff; }
.particle.p7  { left: 65%; animation-delay: 4s;   background: #00ffff; box-shadow: 0 0 10px #00ffff; }
.particle.p8  { left: 75%; animation-delay: 2s;   background: #ffd700; box-shadow: 0 0 10px #ffd700; }
.particle.p9  { left: 85%; animation-delay: 5s;   background: #ff3333; box-shadow: 0 0 10px #ff3333; }
.particle.p10 { left: 95%; animation-delay: 0.3s; background: #00ff88; box-shadow: 0 0 10px #00ff88; }

@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10%  { opacity: 1; transform: translateY(90vh) rotate(45deg) scale(1); }
    50%  { transform: translateY(50vh) rotate(180deg) scale(1.2); }
    90%  { opacity: 1; transform: translateY(10vh) rotate(315deg) scale(0.8); }
    100% { transform: translateY(-10vh) rotate(360deg) scale(0); opacity: 0; }
}

/* ===== STROBE / FLASH ===== */
.strobe-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(0,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.05s ease;
    mix-blend-mode: overlay;
}
.strobe-layer.active {
    animation: strobeFlash 0.15s ease-out;
}
@keyframes strobeFlash {
    0%   { opacity: 0; }
    30%  { opacity: 0.6; background: radial-gradient(circle at 50% 50%, rgba(255,0,255,0.15) 0%, transparent 60%); }
    60%  { opacity: 0.3; background: radial-gradient(circle at 50% 50%, rgba(0,255,255,0.1) 0%, transparent 60%); }
    100% { opacity: 0; }
}

/* ===== RAYOS / BOLTS ===== */
.bolt-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.bolt {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, #fff, var(--primary), transparent);
    filter: blur(1px);
    opacity: 0;
    transform-origin: top center;
}
.bolt.b1 { left: 20%; top: 0; animation: boltStrike 5s ease-in-out infinite; animation-delay: 1s; }
.bolt.b2 { left: 50%; top: 0; animation: boltStrike 7s ease-in-out infinite; animation-delay: 3s; }
.bolt.b3 { left: 80%; top: 0; animation: boltStrike 4s ease-in-out infinite; animation-delay: 0s; }

@keyframes boltStrike {
    0%, 90%, 100% { opacity: 0; transform: scaleY(0); }
    92% { opacity: 1; transform: scaleY(1.5); }
    95% { opacity: 0.5; transform: scaleY(0.8) rotate(5deg); }
    97% { opacity: 1; transform: scaleY(1.2) rotate(-3deg); }
}

/* ===== SPOTLIGHTS ===== */
.spotlight {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(0,255,255,0.03) 30%, transparent 70%);
    filter: blur(20px);
    animation: spotlightMove 10s ease-in-out infinite alternate;
}
.spotlight.sp1 { top: 10%; left: 10%; animation-delay: 0s; }
.spotlight.sp2 { top: 5%; right: 15%; animation-delay: 3s; background: radial-gradient(circle, rgba(255,0,255,0.06) 0%, transparent 70%); }
.spotlight.sp3 { bottom: 20%; left: 30%; animation-delay: 6s; background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%); }

@keyframes spotlightMove {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(50px, 30px) scale(1.2); }
    66%  { transform: translate(-30px, 60px) scale(0.9); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* ===== CONTENEDOR UI ===== */
.container {
    position: relative; z-index: 10;
    width: 100%; max-width: 720px;
    padding: 20px;
    text-align: center;
    pointer-events: none;
}
.container > * { pointer-events: auto; }

/* ===== BADGE NUEVO ===== */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== CUENTA REGRESIVA ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}
.countdown.visible {
    opacity: 1;
    transform: translateY(0);
}
.countdown-box {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 14px;
    min-width: 64px;
}
.countdown-box .num {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    display: block;
    line-height: 1;
}
.countdown-box .label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.countdown-sep {
    font-size: 22px;
    color: var(--primary);
    align-self: center;
    opacity: 0.5;
}
.countdown-title {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ===== BOTÓN DE INICIO ===== */
.play-big {
    width: 170px; height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 64px;
    color: #fff;
    background: rgba(3, 3, 226, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px var(--secondary), 0 0 80px var(--primary), inset 0 0 40px rgba(0, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 0 30px var(--primary);
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 40px var(--secondary), 0 0 80px var(--primary); }
    50% { box-shadow: 0 0 70px var(--secondary), 0 0 130px var(--primary); }
}
.play-big:hover { transform: scale(1.1); }
.play-big:active { transform: scale(0.95); }

/* ===== REPRODUCTOR ===== */
.player {
    margin-top: 24px;
    background: var(--surface);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 28px 32px 32px;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== METADATA DEL TRACK ===== */
.track-meta { margin-bottom: 18px; }
.track-title {
    color: #fff;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 0 0 30px var(--primary), 0 0 60px var(--secondary);
    margin-bottom: 8px;
}
.track-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.track-tag {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 255, 0.1);
    color: #aaa;
    letter-spacing: 0.5px;
}
.track-tag.quality {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: #0f8;
}

/* ===== WAVEFORM ===== */
.waveform-container {
    position: relative;
    height: 48px;
    margin: 14px 0 18px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}
.waveform-bg, .waveform-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    gap: 2px;
}
.waveform-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: height 0.3s ease;
}
.waveform-progress .waveform-bar {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ===== CONTROLES ===== */
.controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.controls button {
    width: 54px; height: 54px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    background: rgba(3, 3, 226, 0.3);
    box-shadow: 0 0 20px var(--primary), inset 0 0 12px rgba(0, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.controls button:hover {
    transform: scale(1.12);
    background: rgba(3, 3, 226, 0.5);
    box-shadow: 0 0 35px var(--primary);
}
.controls button.primary {
    width: 64px; height: 64px;
    font-size: 26px;
    background: rgba(0, 255, 255, 0.15);
}

/* ===== TIEMPO Y SEEK ===== */
.time {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}
.time span { color: #fff; font-weight: 500; text-shadow: 0 0 15px var(--primary); }

.progress {
    width: 100%;
    margin: 4px 0 16px;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}
.progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--secondary);
    cursor: pointer;
    transition: transform 0.2s;
}
.progress::-webkit-slider-thumb:hover { transform: scale(1.3); }
.progress::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* ===== VOLUMEN ===== */
.volume-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}
.volume-row span { font-size: 16px; }
.volume-row input[type="range"] {
    width: 120px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.volume-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    cursor: pointer;
}

/* ===== LIKE / DISLIKE ===== */
.reaction-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 18px 0 10px;
}
.reaction-btn {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 22px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
    position: relative;
    min-width: 110px;
    justify-content: center;
    user-select: none;
}
.reaction-btn:hover {
    transform: scale(1.06) translateY(-2px);
    background: rgba(3, 3, 226, 0.25);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.15);
}
.reaction-btn .count {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.reaction-btn.like .icon { color: #4caf50; }
.reaction-btn.dislike .icon { color: #f44336; }
.reaction-btn.voted {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ffaa00;
    transform: none !important;
}
.reaction-btn .tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    display: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.reaction-btn.voted .tooltip { display: block; }

/* ===== ACCIONES EXTRA ===== */
.extra-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.extra-btn {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 8px 18px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    text-decoration: none;
}
.extra-btn:hover {
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* ===== HISTORIAL ===== */
.history-panel {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    animation: slideUp 0.3s ease;
    max-height: 220px;
    overflow-y: auto;
}
.history-panel h4 {
    font-weight: 400;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}
.history-item:last-child { border-bottom: none; }
.history-item .name { color: #ccc; }
.history-item .date { color: #666; font-size: 12px; }
.history-item .play-hist {
    background: none;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.history-item .play-hist:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.error { border-color: #ff6b6b; color: #ff6b6b; }
.toast.success { border-color: #4caf50; color: #4caf50; }

/* ===== ERROR ===== */
.error-msg {
    color: #ff6b6b;
    margin-top: 12px;
    font-size: 13px;
    display: none;
    background: rgba(255, 0, 0, 0.12);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

/* ===== FULLSCREEN ===== */
body.fullscreen .bg-wrapper { animation-duration: 60s; }
body.fullscreen .neon-frame { opacity: 0.3; }

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .play-big { width: 130px; height: 130px; font-size: 50px; }
    .player { padding: 20px 18px 24px; border-radius: 20px; }
    .track-title { font-size: 18px; }
    .controls button { width: 48px; height: 48px; font-size: 18px; }
    .controls button.primary { width: 56px; height: 56px; font-size: 22px; }
    .reaction-btn { padding: 10px 16px; font-size: 14px; min-width: 90px; }
    .countdown-box { padding: 8px 10px; min-width: 52px; }
    .countdown-box .num { font-size: 18px; }
    .laser-beam { width: 2px; }
}
