/* CD Music Player - Modern Music Effects */
.cd-player {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-player:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* CD Container with Glow Effect */
.cd-container {
    position: relative;
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.6));
    flex-shrink: 0;
}

.cd-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        linear-gradient(135deg,
            #ff6b6b 0%,
            #ee5a6f 15%,
            #f06292 30%,
            #ba68c8 45%,
            #9575cd 60%,
            #7986cb 75%,
            #64b5f6 90%,
            #4fc3f7 100%);
    position: relative;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cd-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.3) 90deg,
            transparent 180deg,
            rgba(255, 255, 255, 0.3) 270deg,
            transparent 360deg);
    opacity: 0.6;
}

.cd-disc.spinning {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Visualizer Bars */
.cd-disc.spinning::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background:
        linear-gradient(to top,
            rgba(139, 92, 246, 0.8) 0%,
            transparent 100%);
    filter: blur(10px);
    animation: visualizer 0.3s ease-in-out infinite alternate;
}

@keyframes visualizer {
    0% {
        height: 20px;
        opacity: 0.6;
    }

    100% {
        height: 35px;
        opacity: 1;
    }
}

.cd-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle,
            #0a0a0f 0%,
            #1a1a2e 50%,
            #000 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(139, 92, 246, 0.4);
}

.cd-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(139, 92, 246, 0.6);
}

/* Info Section with Glow */
.cd-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.cd-artist {
    font-size: 11px;
    color: rgba(139, 92, 246, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.cd-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.cd-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Play Button with Pulse Effect */
.cd-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(65, 105, 225, 0.3));
    border: 2px solid rgba(139, 92, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cd-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    transition: width 0.6s ease, height 0.6s ease;
}

.cd-play-btn:hover::before {
    width: 100%;
    height: 100%;
}

.cd-play-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(65, 105, 225, 0.5));
    border-color: rgba(139, 92, 246, 1);
    transform: scale(1.1);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.6),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
}

.cd-play-btn:active {
    transform: scale(0.95);
}

.cd-play-btn.playing {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow:
            0 0 0 0 rgba(139, 92, 246, 0.7),
            0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    50% {
        box-shadow:
            0 0 0 10px rgba(139, 92, 246, 0),
            0 0 0 20px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(139, 92, 246, 0),
            0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.play-icon,
.pause-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Sound Waves Animation */
.cd-player.playing::after {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background:
        repeating-linear-gradient(90deg,
            rgba(139, 92, 246, 0.3) 0px,
            rgba(139, 92, 246, 0.3) 2px,
            transparent 2px,
            transparent 6px);
    border-radius: 8px;
    animation: soundWave 1s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes soundWave {

    0%,
    100% {
        transform: translateY(-50%) scaleY(0.5);
    }

    50% {
        transform: translateY(-50%) scaleY(1);
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .cd-player {
        bottom: 30px;
        left: 30px;
        padding: 18px 22px;
        gap: 18px;
    }

    .cd-container {
        width: 70px;
        height: 70px;
    }

    .cd-info {
        min-width: 130px;
    }

    .cd-play-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .cd-player {
        bottom: 12px;
        left: 12px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 16px;
        max-width: 200px;
        background: rgba(10, 10, 15, 0.97);
    }

    .cd-container {
        width: 36px;
        height: 36px;
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
    }

    .cd-disc {
        box-shadow:
            0 0 0 1.5px rgba(255, 255, 255, 0.15),
            0 3px 10px rgba(0, 0, 0, 0.4),
            inset 0 0 15px rgba(0, 0, 0, 0.4);
    }

    .cd-disc.spinning::after {
        display: none;
    }

    .cd-center {
        width: 14px;
        height: 14px;
        box-shadow:
            0 0 0 1.5px rgba(255, 255, 255, 0.2),
            inset 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .cd-hole {
        width: 6px;
        height: 6px;
    }

    .cd-info {
        min-width: 0;
        flex: 1;
        gap: 2px;
    }

    .cd-artist {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .cd-title {
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cd-time {
        font-size: 7.5px;
    }

    .cd-play-btn {
        width: 34px;
        height: 34px;
        border-width: 2px;
        background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.5),
                rgba(65, 105, 225, 0.5));
        border-color: rgba(139, 92, 246, 0.8);
        box-shadow:
            0 0 20px rgba(139, 92, 246, 0.5),
            inset 0 0 15px rgba(139, 92, 246, 0.2);
    }

    .cd-play-btn svg {
        width: 16px;
        height: 16px;
    }

    .sound-waves {
        display: none;
    }

    .cd-player:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 430px) {
    .cd-player {
        bottom: 10px;
        left: 10px;
        padding: 5px 8px;
        gap: 6px;
        max-width: 180px;
        border-radius: 14px;
    }

    .cd-container {
        width: 32px;
        height: 32px;
    }

    .cd-center {
        width: 12px;
        height: 12px;
    }

    .cd-hole {
        width: 5px;
        height: 5px;
    }

    .cd-artist {
        font-size: 6px;
    }

    .cd-title {
        font-size: 8px;
    }

    .cd-time {
        font-size: 6.5px;
    }

    .cd-play-btn {
        width: 30px;
        height: 30px;
        background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.6),
                rgba(65, 105, 225, 0.6));
        border: 2px solid rgba(139, 92, 246, 0.9);
        box-shadow:
            0 0 15px rgba(139, 92, 246, 0.6),
            inset 0 0 12px rgba(139, 92, 246, 0.25);
    }

    .cd-play-btn svg {
        width: 14px;
        height: 14px;
    }
}