.cake-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.cake-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cake-overlay.hidden {
    display: none;
}

.cake-overlay .cake-canvas {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.cake-overlay .close-cake-btn {
    position: absolute;
    top: max(5vh, env(safe-area-inset-top));
    right: max(5vw, env(safe-area-inset-right));
    min-height: 44px;
    min-width: 44px;
    height: 5vh;
    padding: 0 3vw;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 2.5vh;
    cursor: pointer;
    z-index: 100000;
    font-size: 2vh;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cake-overlay .close-cake-btn:hover,
.cake-overlay .close-cake-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.cake-overlay .cake-hint {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5vh;
    text-align: center;
    z-index: 100000;
    font-family: 'Ma Shan Zheng', cursive;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5vh 3vw;
    border-radius: 3vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.lyrics-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.lyrics-video-container.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.lyrics-video-container.hidden {
    display: none;
}

.lyrics-video-container .lyrics-video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.lyrics-video-container .close-lyrics-btn {
    position: absolute;
    top: max(5vh, env(safe-area-inset-top));
    right: max(5vw, env(safe-area-inset-right));
    min-height: 44px;
    min-width: 44px;
    height: 5vh;
    padding: 0 3vw;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 2.5vh;
    cursor: pointer;
    z-index: 100002;
    font-size: 2vh;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lyrics-video-container .close-lyrics-btn:hover,
.lyrics-video-container .close-lyrics-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.6);
    }
}
