/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* Reset body */
body, html {
    margin: 0; padding: 0; height: 100%; width: 100%;
    overflow: hidden; 
    font-family: 'Inter', sans-serif;
    background-color: #000;
}

/* 1. Flush Left Sidebar - Slimmer 250px Width */
#sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; 
    width: 250px; /* Reduced from 320px */
    background: rgba(10, 10, 10, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    box-sizing: border-box; 
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000; overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 2px 0 20px rgba(0,0,0,0.7);
}

/* Collapsed State */
#sidebar.collapsed { width: 54px; }

/* 2. Toggle Button */
#menu-toggle {
    position: absolute; top: 16px; right: 12px;
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: white; border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; font-weight: bold; font-size: 13px;
}
#menu-toggle:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }

/* 3. Header Text */
.sidebar-title {
    position: absolute; top: 18px; left: 16px; margin: 0;
    font-size: 17px; font-weight: 700; letter-spacing: -0.5px;
    white-space: nowrap; transition: opacity 0.2s;
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#sidebar.collapsed .sidebar-title { opacity: 0; pointer-events: none; }

/* 4. Controls (Unmute Button) */
.controls {
    position: absolute; top: 62px; left: 10px; right: 10px; transition: all 0.3s;
}
#sidebar.collapsed .controls { left: 8px; right: 8px; }

.controls button {
    width: 100%; padding: 9px 12px;
    background: rgba(255, 255, 255, 0.08); color: white; 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: flex-start;
    gap: 10px; white-space: nowrap; overflow: hidden; font-family: 'Inter', sans-serif;
    font-weight: 500; font-size: 13px;
}
.controls button:hover { background: rgba(255, 255, 255, 0.15); }
#sidebar.collapsed .controls button { padding: 9px 0; justify-content: center; background: transparent; border-color: transparent; font-size: 16px; }
#sidebar.collapsed .controls button span { display: none; }

/* 5. Scrollable List Container */
#city-list-container {
    position: absolute; top: 115px; left: 0; width: 100%; height: calc(100vh - 115px);
    overflow-y: auto; padding: 0 10px 20px 10px;
    box-sizing: border-box; transition: opacity 0.2s;
}
#sidebar.collapsed #city-list-container { opacity: 0; pointer-events: none; }

/* 6. Typography & Compact Menu Items */
.country-group { margin-bottom: 6px; }

.country-header {
    font-weight: 600; cursor: pointer; text-transform: uppercase;
    padding: 8px 10px; font-size: 11px; letter-spacing: 0.8px;
    color: #9ca3af; border-radius: 6px; transition: all 0.2s ease;
    list-style: none; user-select: none;
}
.country-header::-webkit-details-marker { display: none; }
.country-header:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
details[open] .country-header { color: #fff; background: rgba(255, 255, 255, 0.08); margin-bottom: 4px; }

ul.city-list-group { list-style: none; padding: 0 0 0 10px; margin: 0; border-left: 1px solid rgba(255,255,255,0.1); margin-left: 10px; }

.city-header {
    font-weight: 600; margin-top: 10px; margin-bottom: 6px; padding-left: 8px;
    color: #6b7280; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}

.video-item { 
    padding: 6px 8px; margin-bottom: 2px;
    cursor: pointer; transition: all 0.2s ease;
    font-size: 12px; color: #d1d5db; border-radius: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-item:hover { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
    transform: translateX(3px);
}

/* 7. Fullscreen Video Background */
.video-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.video-background iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

/* Floating Video Title Badge */
#video-title-badge {
    position: fixed !important;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999 !important; /* Forces it above YouTube iframe and sidebar layers */
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none; /* Mouse clicks pass through to video */
    max-width: 80vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	opacity:0.7;
}