body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#globeViz {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

@media screen and (max-width: 480px) {
    #globeViz {
        height: 100vh;
        width: 100vw;
    }
}

.scene-container .html-mg {
    pointer-events: none;
    z-index: 10 !important;
}

.scene-container .html-mg>div {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation;
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #4f46e5;
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#back-btn {
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    border: 2px solid #00ff7f;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    display: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.2),
        inset 0 0 5px rgba(0, 255, 127, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#back-btn:hover {
    color: #fff;
    border-color: #00ff7f;
    background: rgba(0, 255, 127, 0.25);
    box-shadow:
        0 0 20px rgba(0, 255, 127, 0.4),
        inset 0 0 15px rgba(0, 255, 127, 0.3);
    transform: translateY(-2px);
}

.search-container {
    position: relative;
    width: 280px;
    display: flex;
    align-items: center;
}

.search-container::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
}

#countrySearch {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: 0.3s;
    font-size: 14px;
}

#countrySearch:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4f46e5;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

#clearSearch {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    display: none;
    transition: 0.2s;
}

#clearSearch:hover {
    color: white;
    transform: scale(1.1);
}

.sidebar {
    position: absolute;
    left: -380px;
    top: 20px;
    bottom: 90px;
    width: 320px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 20px 20px 0;
    z-index: 1500;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fafafb;
}

#closeSidebar {
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: 0.2s;
}

#closeSidebar:hover {
    color: white;
}

.station-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.station-list-container::-webkit-scrollbar {
    width: 6px;
}

.station-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.station-list-container::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 3px;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: black;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.station-item:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #4f46e5;
    transform: translateX(5px);
}

.modern-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 127, 0.2);
    border-radius: 20px;
    padding: 12px 15px;
    color: white;
    z-index: 5000;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 127, 0.1);
    cursor: pointer;
    touch-action: none;
}

.player-header {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #00ff7f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: -5px;
    opacity: 0.8;
}

.player-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-disc {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: radial-gradient(circle, #222 0%, #000 100%);
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.2);
    animation: rotate 6s linear infinite;
    animation-play-state: paused;
}

.station-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
}

#currentStation {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

#playerLocation {
    font-size: 10px;
    color: #aaa;
}

#minimizePlayer {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
}

.station-details {
    flex: 1;
    overflow: hidden;
}

.station-details h4 {
    margin: 0;
    font-size: 16px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-details p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #00ff00;
    font-weight: 600;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: black;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nav-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-btn:hover {
    color: white;
}

.extra-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#volumeSlider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ff00;
}

#volumeSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00ff00;
    border-radius: 50%;
}

#muteBtn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

#muteBtn:hover {
    transform: scale(1.1);
    color: #00ff00;
}

@keyframes signal-radiate {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-width: 2px;
    }

    100% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
        border-width: 0px;
    }
}

.signal-wave {
    position: absolute;
    left: 50%;
    top: 15%;
    width: 8px;
    height: 8px;
    border: 2px solid #00ff00;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 100%;
        left: -100%;
        border-radius: 0;
    }

    .modern-player {
        width: 95%;
        padding: 10px;
        bottom: 130px;
    }

    .station-disc {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    #back-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .sidebar {
        width: 85%;
        left: -85%;
    }

    .bottom-nav {
        flex-direction: column-reverse;
        padding: 10px;
    }

    .search-container {
        width: 100%;
    }

    .modern-player {
        width: 90%;
        bottom: 140px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 300px;
        left: -300px;
    }

    .search-container {
        width: 200px;
    }

    .modern-player {
        width: 320px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .sidebar {
        width: 320px;
    }
}

@media screen and (min-width: 1441px) {
    .sidebar {
        width: 380px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    #countrySearch {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .bottom-nav {
        padding: 5px;
    }

    .modern-player {
        bottom: 60px;
        scale: 0.8;
    }

    .sidebar-header {
        padding: 10px;
    }
}

@media screen and (max-width: 770px) {
    .bottom-nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        align-items: center;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .search-container {
        width: 100%;
        max-width: 400px;
    }

    #countrySearch {
        width: 100%;
        text-align: center;
    }

    .modern-player {
        bottom: 160px;
    }
}

@media screen and (max-width: 770px) {
    .sidebar {
        bottom: 150px !important;
        height: auto;
        border-radius: 0 0 20px 0;
    }

    .modern-player {
        bottom: 165px !important;
    }
}