:root {
    --bg-dark: #0a0b10;
    --neon-cyan: #00f2ff;
    --neon-purple: #bc00ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
}

.yousound-futuristic {
    background: var(--bg-dark);
    color: var(--text-main);
    padding: 2rem;
    border-radius: 20px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
.yousound-futuristic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(188, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.yousound-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.glow-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
    margin: 0;
}

.subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    margin-top: 5px;
}

.yousound-input-group {
    position: relative;
    z-index: 1;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

#yousound-url {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#yousound-url:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.yousound-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.yousound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
}

/* Loading State */
#yousound-status {
    text-align: center;
    margin-top: 2rem;
}

.loader-container {
    position: relative;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanner {
    width: 60px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
    0% { transform: translateY(-30px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}

.hidden { display: none; }

/* Mobile Optimization */
@media (max-width: 480px) {
    .yousound-futuristic {
        margin: 10px;
        padding: 1.5rem;
    }
    
    .glow-text {
        font-size: 2rem;
    }
}

/* Player UI Styles */
.player-card.glass {
    margin-top: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
}

.track-info {
    text-align: center;
    margin-bottom: 2rem;
}

#track-title {
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-indicator {
    display: inline-block;
    background: #ff0044;
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 68, 0.7); }
    70% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(255, 0, 68, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 68, 0); }
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.time {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--neon-cyan);
    min-width: 40px;
}

.progress-bar-wrap {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
}

#yousound-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.ctrl-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.ctrl-btn:hover svg {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    transform: scale(1.1);
}

.main-ctrl {
    background: none !important;
    border: none !important; /* Removed border */
    color: var(--neon-cyan);
}

.main-ctrl:hover svg {
    filter: drop-shadow(0 0 20px var(--neon-purple));
}

#yousound-toggle {
    width: 90px;
    height: 90px;
    min-width: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

#yousound-stop {
    width: 60px;
    height: 60px;
    min-width: 60px;
    aspect-ratio: 1 / 1;
    color: #ff0044;
}

#yousound-stop svg {
    filter: drop-shadow(0 0 10px #ff0044);
}

.data-usage {
    font-size: 0.75rem;
    color: var(--neon-purple);
    margin-top: 15px;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(188, 0, 255, 0.5);
}

/* Glassmorphism Install Button */
.install-btn {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(10px);
    color: var(--neon-cyan) !important;
    max-width: 280px;
    font-size: 0.85rem;
    padding: 12px 25px;
    border-radius: 30px;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.install-btn:hover {
    background: rgba(0, 242, 255, 0.1) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}
