* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* Waiting Room */
#waiting-room {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 2s ease-out;
}

#waiting-room.fade-out {
    opacity: 0;
    pointer-events: none;
}

.waiting-content {
    text-align: center;
    color: #fff;
}

#waiting-text {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    animation: pulse 2s ease-in-out infinite;
}

#loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    border-radius: 2px;
    animation: loading 5s ease-out forwards;
}

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

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Video Container */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

#player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Make video cover full screen maintaining aspect ratio */
@media (min-aspect-ratio: 16/9) {
    #player {
        width: 100vw;
        height: 56.25vw; /* 16:9 */
    }
}

@media (max-aspect-ratio: 16/9) {
    #player {
        width: 177.78vh; /* 16:9 */
        height: 100vh;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.overlay > * {
    pointer-events: auto;
}

/* Top Left Section */
.top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.social-links a:hover {
    transform: scale(1.1);
    color: #4A9EFF;
}

.randomize-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.randomize-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.randomize-btn:active {
    transform: translateY(0);
}

/* Top Right Controls */
.top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.radio-credit:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.radio-credit img {
    height: 34px;
    width: auto;
    display: block;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Location Info */
.location-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#currentLocation {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 1.5rem;
    }
    
    .top-left {
        top: 20px;
        left: 20px;
    }
    
    .top-right {
        top: 20px;
        right: 20px;
    }
    
    .social-links a {
        font-size: 1.3rem;
    }
    
    .randomize-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .location-info {
        bottom: 30px;
        padding: 12px 24px;
    }
    
    #currentLocation {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.3rem;
    }
    
    .top-left {
        top: 15px;
        left: 15px;
    }
    
    .top-right {
        top: 15px;
        right: 15px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        font-size: 1.2rem;
    }
    
    .randomize-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .location-info {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    #currentLocation {
        font-size: 0.9rem;
    }
}

/* Fullscreen mode adjustments */
:fullscreen {
    background: #000;
}

:-webkit-full-screen {
    background: #000;
}

:-moz-full-screen {
    background: #000;
}

:-ms-fullscreen {
    background: #000;
}
