body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


/* Page Transition Effects */
body.page-loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

.player-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    z-index: 10;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

figure {
    flex: 1;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 0;
}

.controls-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.control-button {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-button:active {
    transform: translateY(0);
}

.control-button.active {
    background: linear-gradient(135deg, #4a9eff 0%, #2563eb 100%);
    border-color: rgba(74, 158, 255, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.control-button.active:hover {
    background: linear-gradient(135deg, #5ba8ff 0%, #3574f0 100%);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

figcaption {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.credits {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0 0 15px 0;
    text-align: center;
    font-style: italic;
}

audio {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

a:not(.back-button) {
    color: #4a9eff;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
}

a:not(.back-button):hover {
    color: #6bb3ff;
}

.lyrics-container {
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-text {
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #e0e0e0;
    min-height: 200px;
    position: relative;
}

.lyrics-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #4a9eff;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #e0e7ff 100%);
        color: #2d3748;
    }

    figure {
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    figcaption {
        color: #1a202c;
    }

    .credits {
        color: #4a5568;
    }

    .controls-panel {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .control-button {
        background: rgba(0, 0, 0, 0.05);
        color: #2d3748;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .control-button:hover {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.2);
        color: #1a202c;
    }

    .control-button.active {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        border-color: rgba(37, 99, 235, 0.3);
        color: #fff;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    }

    .control-button.active:hover {
        background: linear-gradient(135deg, #3574f0 0%, #2563eb 100%);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    }

    .lyrics-container {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .lyrics-text {
        color: #2d3748;
    }

    .back-button {
        background: rgba(0, 0, 0, 0.1);
        color: #2d3748;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    .back-button:hover {
        background: rgba(0, 0, 0, 0.15);
        color: #1a202c;
    }

    a:not(.back-button) {
        color: #2563eb;
    }

    a:not(.back-button):hover {
        color: #1d4ed8;
    }
}

@media (max-width: 800px) {
    .player-container {
        flex-direction: column;
    }
    
    .controls-panel {
        width: 100%;
        padding: 15px;
    }

    .control-group {
        justify-content: center;
    }

    .control-button {
        flex: 1;
        min-width: 50px;
    }
}

