/* Full Screen Player Styles */
.videoke-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    overflow: hidden;
}

.videoke-fullscreen .player-container {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
}

.videoke-fullscreen .video-container {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.videoke-fullscreen #karaoke-video,
.videoke-fullscreen #camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videoke-fullscreen #visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
}

/* Lyrics Overlay */
.lyrics-container {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    color: white;
    font-family: 'Arial', sans-serif;
}

.current-lyric {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    background: rgba(0,0,0,0.5);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.next-lyric {
    font-size: 1.2em;
    color: rgba(255,255,255,0.7);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Full Screen Controls */
.fullscreen-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.fullscreen-controls button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fullscreen-controls button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.fullscreen-controls button.recording {
    background: #ff0000;
    animation: pulse-recording 1.5s infinite;
}

.fullscreen-controls button:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    transform: none;
}

@keyframes pulse-recording {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* FAB - Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.fab-main {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.fab-menu {
    position: absolute;
    bottom: 85px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    color: #333;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
}

.fab-item:hover {
    transform: scale(1.15);
    background: white;
}

.fab-item .fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-item:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Song Info Overlay */
.song-info-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    z-index: 3;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.song-info-overlay h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #ff6b6b;
}

.song-info-overlay .artist {
    font-size: 1.2em;
    color: #4ecdc4;
    margin-bottom: 5px;
}

.song-info-overlay .duration {
    color: rgba(255,255,255,0.7);
}

/* Recording Timer */
.recording-timer {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 3;
    backdrop-filter: blur(10px);
    display: none;
}

.recording-timer.active {
    display: block;
    animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
    0% { background: rgba(255, 0, 0, 0.8); }
    50% { background: rgba(255, 0, 0, 0.6); }
    100% { background: rgba(255, 0, 0, 0.8); }
}

/* Exit Full Screen Button */
.exit-fullscreen {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    font-size: 1.5em;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.exit-fullscreen:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .videoke-fullscreen .video-container {
        height: calc(100vh - 120px);
    }
    
    .current-lyric {
        font-size: 1.8em;
        padding: 12px 25px;
    }
    
    .next-lyric {
        font-size: 1em;
    }
    
    .fullscreen-controls {
        padding: 15px;
        bottom: 10px;
    }
    
    .fullscreen-controls button {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
    
    .fab-item {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
    
    .song-info-overlay {
        top: 20px;
        left: 20px;
        padding: 15px;
        max-width: 250px;
    }
    
    .song-info-overlay h2 {
        font-size: 1.4em;
    }
    
    .exit-fullscreen {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .lyrics-container {
        bottom: 120px;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .current-lyric {
        font-size: 2.2em;
    }
    
    .fab-container {
        bottom: 25px;
        right: 25px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fab-main,
    .fab-item,
    .fullscreen-controls button,
    .exit-fullscreen {
        transition: none;
    }
    
    .fullscreen-controls button.recording {
        animation: none;
    }
    
    .recording-timer.active {
        animation: none;
    }
}