:root {
    --bg-dark: #080b14;
    --card-bg: rgba(16, 24, 48, 0.85);
    --card-border: rgba(0, 229, 255, 0.25);
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --accent-pink: #ff2a8d;
    --accent-purple: #9c27b0;
    --accent-green: #00e676;
    --text-light: #f0f6fc;
    --text-muted: #8b949e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 3D Globe Container */
#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header Navbar */
.navbar {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.logo-umbrella-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Menu Toggle Action Button */
.btn-menu-toggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.btn-menu-toggle:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.3);
}

/* Center Reticle Target Ring & Center Dot */
.reticle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reticle-ring {
    width: 22px;
    height: 22px;
    border: 1.5px dashed var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow), inset 0 0 6px var(--primary-glow);
    animation: reticlePulse 2s infinite ease-in-out;
}

.reticle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
}

@keyframes reticlePulse {
    0%, 100% {
        transform: scale(1);
        border-color: var(--primary);
    }
    50% {
        transform: scale(1.1);
        border-color: var(--accent-pink);
    }
}

/* Integrated Bottom Player Dock (No Overlapping Elements) */
.player-dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 680px;
    z-index: 100;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 12px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Integrated Time Travel Row */
.dock-timetravel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 110px;
    font-family: 'Roboto Mono', monospace;
}

.timeline-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.dock-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.station-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.genre-dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    flex-shrink: 0;
}

.station-info {
    overflow: hidden;
}

.station-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.station-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-icon-square {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-icon-square:hover {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.18);
    transform: scale(1.05);
}

.btn-play {
    background: linear-gradient(135deg, var(--primary), #00b0ff);
    border: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
    padding: 0;
    color: #0d1117;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 0 16px var(--primary-glow);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
    color: #0d1117;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-play:hover {
    transform: scale(1.05);
}

/* Modals Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: rgba(16, 24, 48, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90vw;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Menu Modal Card Styling */
.menu-modal-card {
    max-width: 520px;
}

.menu-sections-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-section h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 10px;
}

.menu-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-menu-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.btn-menu-action:hover, .btn-menu-action.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-menu-action.highlight {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.btn-menu-action.wide {
    width: 100%;
}

.menu-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Station Directory Ultra Wide Modal (No Horizontal Scroll) */
.wide-modal-card {
    width: 96vw;
    max-width: 1600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.directory-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-header-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.directory-badge {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary-glow);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
}

.directory-search-bar {
    margin: 14px 0;
}

.directory-search-bar input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 0.85rem;
    outline: none;
}

.directory-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
}

.directory-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.directory-table th:nth-child(1) { width: 34%; }
.directory-table th:nth-child(2) { width: 34%; }
.directory-table th:nth-child(3) { width: 14%; }
.directory-table th:nth-child(4) { width: 9%; }
.directory-table th:nth-child(5) { width: 9%; }

.directory-table th, .directory-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 14px;
}

.directory-table th {
    position: sticky;
    top: 0;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
    z-index: 2;
}

.directory-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.directory-table tbody tr {
    transition: background 0.15s ease;
    cursor: pointer;
}

.directory-table tbody tr:hover, .directory-table tbody tr.active-row {
    background: rgba(0, 229, 255, 0.15);
}

.btn-play-row {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Mobile Responsive Optimization (< 768px) */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        left: 12px;
        right: 12px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }

    .btn-menu-toggle {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .player-dock {
        bottom: 10px;
        width: calc(100vw - 20px);
        padding: 10px 12px;
        border-radius: 16px;
    }
    
    .station-info h3 {
        font-size: 0.85rem;
    }
    
    .station-info p {
        font-size: 0.68rem;
    }

    .btn-icon-square, .btn-play {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        border-radius: 10px !important;
        padding: 0 !important;
    }

    .wide-modal-card {
        width: 98vw;
        height: 94vh;
        max-height: 94vh;
        padding: 12px;
    }
    
    .directory-table th:nth-child(3),
    .directory-table td:nth-child(3) {
        display: none;
    }
    
    .directory-table th:nth-child(1) { width: 44%; }
    .directory-table th:nth-child(2) { width: 36%; }
    .directory-table th:nth-child(4) { width: 20%; }
    
    .directory-table th, .directory-table td {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
}
