:root {
    --primary-gold: #FFD700;
    --secondary-teal: #008080;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #111;
}

/* Dynamic Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -2;
    filter: blur(5px) brightness(0.8);
    transform: scale(1.1); /* Slight zoom to avoid blur edges */
}

/* Dark Overlay for readability */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* Player Card - Glassmorphism */
.player-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Stack vertically by default */
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    z-index: 10;
    width: 350px;
    max-width: 90%;
    transition: transform 0.3s ease;
}

.player-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Album Art / Disk */
.img-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.disk {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255,255,255,0.8);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.player-container.play .disk {
    animation-play-state: running;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gold);
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.player-container.play .glow {
    opacity: 0.4;
    animation: pulse 2s infinite;
}

/* Music Info */
.music-info {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    color: var(--text-color);
}

.music-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #fff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.music-info h3 {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
    margin: 0;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    margin: 15px 0;
    height: 6px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.progress {
    background: linear-gradient(to right, var(--secondary-teal), var(--primary-gold));
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
    color: #fff;
}

/* Controls */
.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.action-btn {
    background-color: transparent;
    border: 0;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 10px 20px;
    margin: 0 10px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--primary-gold);
}

.action-btn-big {
    color: var(--text-color);
    font-size: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 15px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.action-btn-big:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px var(--primary-gold);
}

.playlist-indicator {
    margin-top: 15px;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Keyframes */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}
