/* Font declarations */
@font-face {
    font-family: 'Futura Round';
    src: url('../fonts/Futura Round Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Round';
    src: url('../fonts/Futura Round Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DS Digital';
    src: url('../fonts/DS-Digital.woff2') format('woff2'),
         url('../fonts/DS-Digital.woff') format('woff'),
         url('../fonts/DS-Digital.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Fallback font-face for browsers that don't support woff2 */
@font-face {
    font-family: 'DS Digital';
    src: url('../fonts/DS-DIGI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base styles */
body {
    font-family: 'Futura Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: black;
    color: white;
    overflow: hidden;
}

/* Utility classes to replace Tailwind */
.bg-black-60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-black-70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.border-white-30 {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-bold {
    font-weight: bold;
}

.font-light {
    font-weight: 300;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-center {
    text-align: center;
}

.w-48 {
    width: 12rem;
}

.h-48 {
    height: 12rem;
}

.hidden {
    display: none;
}

.opacity-50 {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.rounded-full {
    border-radius: 9999px;
}

/* Scrolling text container */
.track-info {
    flex: 1;
    position: relative;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-text-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.track-info-wrapper {
    display: inline-block;
    white-space: nowrap;
    padding-right: 50px;
    will-change: transform;
    transform: translateZ(0);
}

.track-text {
    font-family: 'DS Digital', monospace;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    line-height: 1;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

 /* Visitor Count Styles */
 .visitor-count {
    position: absolute;
    top: 10px;
    right: 54px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 9px 0px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 70px;
    justify-content: center;
}

.spacer {
    display: inline-block;
    width: 50px;
}

/* Combine artist and title */
.track-info-wrapper::after {
    content: '•';
    margin: 0 5px;
    opacity: 0.7;
}

/* Script will add this class when text is wider than container */
.track-info-wrapper.needs-scroll {
    animation: scroll-left var(--duration) linear infinite;
    animation-delay: 3s; /* Initial pause before scrolling starts */
}

@keyframes scroll-left {
    0%, 5% {
        transform: translateX(0);
    }
    95%, 100% {
        transform: translateX(calc(-100% + 250px)); /* 250px is container width */
    }
}

.video-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    background: black;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

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

/* Base aspect ratio handling */
@media (min-aspect-ratio: 16/9) {
    #player {
        width: 100%;
        height: 56.25vw; /* 16:9 */
    }
}

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

/* Firefox-specific fullscreen fixes */
@-moz-document url-prefix() {
    #player:-moz-full-screen {
        position: fixed;
        min-width: 100vw;
        min-height: 100vh;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        transform: translate(-50%, -50%) scale(1.01); /* Slight scale to prevent edge gaps */
    }
    
    .video-foreground:-moz-full-screen {
        width: 100vw;
        height: 100vh;
    }
}

/* Handle ultra-wide screens */
@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}

/* General fullscreen fixes */
#player:fullscreen {
    position: fixed;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.video-foreground:fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Slide-up panel styles */
.panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    color: white;
}

.panel.expanded {
    transform: translateY(0);
}

.panel.expanded .panel-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.panel-content {
    padding: 24px;
    padding-bottom: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Change location button */
.map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.map-control-button {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.map-control-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.map-control-button i {
    font-size: 14px;
}

/* Map styles */
.map-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 30;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-container:hover {
    /* Remove zoom effect */
    transform: none;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: 'Futura Round', sans-serif;
}

.location-text {
    text-align: center;
    flex-grow: 1;
    font-family: 'Futura Round', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-nav-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-family: 'Futura Round', sans-serif;
    cursor: pointer;
}

.location-nav-button:hover {
    opacity: 1;
}

.map-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.map-description {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Video Selection Grid/List */
.video-grid {
    display: flex;
    gap: 16px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 250px;
}

/* Hide scrollbar but keep functionality */
.video-grid::-webkit-scrollbar {
    height: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.video-select-button {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.video-select-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-select-button.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-select-button img {
    width: 100%;
    height: 169px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.video-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .map-container {
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.7);
    }

    .map-container img {
        display: none;
    }

    .map-info {
        padding: 8px 12px;
        height: auto;
        display: flex;
        align-items: center;
        gap: 4px;
        position: relative;
    }

    .location-nav-button {
        order: -1;
    }

    .location-nav-buttons-container {
        display: flex;
        gap: 2px;
    }

    .location-text {
        font-size: 14px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: 4px;
    }

    .change-location-button {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }

    /* Remove hover animation for map change button */
    .change-location-button:hover {
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.3);
    }

    .audio-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 12px 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        margin: 0;
        border-radius: 0;
    }


    .video-seeker-container {
        position: fixed;
        bottom: 164px !important;
        left: 0;
        right: 0;
        padding: 0 12px;
        margin-bottom: 16px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.3);
        height: 36px;
        display: flex;
        align-items: center;
    }

    .audio-controls {
        padding-top: 24px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .radio-background {
        width: 300px;
        height: 200px;
        opacity: 0.7;
    }

    .map-controls {
        top: 50%;
        transform: translateY(-50%);
        right: 12px;
    }

    .map-control-button {
        width: 32px;
        height: 32px;
    }

    .map-control-button i {
        font-size: 12px;
    }
}

/* Override default positioning for mobile */
@media (max-width: 768px) {
    .audio-controls {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .video-seeker-container {
        bottom: 0 !important;
    }
}

/* Hide YouTube player UI */
.ytp-chrome-top,
.ytp-chrome-bottom,
.ytp-watermark,
.ytp-pause-overlay {
    display: none !important;
}

#music-player {
    display: none;
}

/* Station List Styles */
.stations-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.station-list {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.station-category {
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.station-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: #78c7c3;
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120, 199, 195, 0.3);
    font-weight: 600;
}

.station-option {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-align: left;
    color: white;
}

.station-option:last-child {
    margin-bottom: 0;
}

.station-option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.station-option.active {
    background: rgba(120, 199, 195, 0.15);
    border: 1px solid rgba(120, 199, 195, 0.4);
}

.station-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.station-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Custom scrollbar for station list */
.station-list::-webkit-scrollbar {
    width: 8px;
}

.station-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.station-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.station-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for station modal */
@media (max-width: 768px) {
    .station-list {
        padding: 12px;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .station-option {
        padding: 12px;
    }

    .station-info h4 {
        font-size: 0.9rem;
    }

    .station-info p {
        font-size: 0.8rem;
    }
}

/* Location Selection */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.location-button {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.location-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.location-button.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
.stations-container::-webkit-scrollbar {
    width: 8px;
}

.stations-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stations-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.stations-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dropdown and UI enhancement */
.location-select {
    @apply bg-black/50 backdrop-blur-sm text-white border border-white/20 rounded px-4 py-2;
    @apply hover:border-white/40 focus:border-white/60;
    @apply transition-all duration-200;
}

.station-button {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.station-button.active {
    @apply bg-white/30 border-white/40;
}

/* Mobile-first scaling */
@media (max-width: 768px) {
    .video-foreground iframe {
        width: 250vw;
        height: 250vh;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Extra scaling for portrait orientation */
@media (max-width: 768px) and (orientation: portrait) {
    .video-foreground iframe {
        width: 300vw;
        height: 300vh;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Handle ultra-wide screens */
@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}

/* YouTube Playlist Styles */
.playlists-container {
    @apply space-y-3 max-h-[300px] overflow-y-auto;
}

.playlist-button {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.playlist-button.active {
    @apply bg-white/20;
}

.playlist-title {
    @apply font-semibold mb-1;
}

.playlist-channel {
    @apply text-sm text-white/70 mb-1;
}

.playlist-description {
    @apply text-sm text-white/70;
}

/* Shuffle Button */
button .fa-random {
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

/* Playback Controls */
.fa-step-backward,
.fa-step-forward,
.fa-random {
    @apply w-4 h-4 text-white/90;
}

button:hover .fa-step-backward,
button:hover .fa-step-forward,
button:hover .fa-random {
    @apply text-white;
}

/* Audio player styles */
#music-player {
    display: none;
}

/* Update audio controls background */
.audio-controls {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 30;
    background: rgb(0, 0, 0);
    padding: 5px 16px 0 16px;
    color: white;
    transition: all 0.3s ease;
    font-family: 'Futura Round', sans-serif;
}

/* Radio Title */
.radio-title {
    margin: 5px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}



.radio-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.radio-title h2 {
    margin: 0;
    color: #78c7c3;
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 0;
    border-bottom: 1.5px solid #ff6b35;
}

/* Radio Controls */
.radio-controls {
    display: flex;
    gap: 8px;
    margin-left: 50px;
}

.control-icon-button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid #78c7c3;
    color: #78c7c3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.control-icon-button:hover {
    background: rgba(120, 199, 195, 0.1);
    transform: scale(1.05);
}

.control-icon-button i {
    font-size: 0.85rem;
}

/* Audio Controls Content */
.controls-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.thumbnail-container {
    width: 64px;
    height: 86px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Audio seeker styles - consolidate duplicates */
.audio-seeker-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.audio-seeker-progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Remove these duplicate sections since they're defined above */
.audio-seeker-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.audio-seeker-progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Consolidate track text container fade effects */
.track-text-container::before,
.track-text-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Remove duplicate fade effect definitions */
.track-text-container::before,
.track-text-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Keep only one instance of the scroll-left animation */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Remove duplicate media queries and consolidate them */
@media (max-width: 768px) {
    .audio-controls {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 5px 12px 0 12px;
    }
    .radio-logo {
        height: 34px;
        width: auto;
        object-fit: contain;
    }

    .video-foreground iframe {
        width: 250vw;
        height: 250vh;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Playback Controls container */
.audio-controls .controls-row {
    display: flex;
    gap: 8px;
}

/* Playback Controls */
.control-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-button:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.control-button i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.control-button:hover i {
    color: white;
}

/* Make the control buttons more visible against the radio background */
.audio-controls button {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.audio-controls button:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Remove duplicate ultra-wide screen media queries */
@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}

/* Start Radio Overlay */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

/* Start Radio Overlay Button */
.start-radio-button {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 12rem !important;
    height: 12rem !important;
}

.start-radio-button:hover {
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.start-radio-button i {
    font-size: 4rem;
}

/* YouTube Link Button */
.youtube-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    width: 28px !important;
    height: 28px !important;
    align-items: center;
    justify-content: center;
    margin-left: 8px !important;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    cursor: pointer;
}

.youtube-link:hover:not(.cursor-not-allowed) {
    color: #ff0000;
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.5);
}

.youtube-link i {
    font-size: 36px !important;
}

.youtube-link.opacity-50 {
    pointer-events: none;
}

/* Remove radio background */
.radio-background {
    display: none;
}

/* Video Seeker Styles */
.video-seeker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 24px;
    z-index: 1;
}

.seeker-bar {
    height: 20px;
    padding: 8px 0;
    margin: -8px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: relative;
    width: 100%;
}

/* Thumb styles */
.seeker-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.seeker-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 2;
}

/* Track styles */
.seeker-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.seeker-bar::-moz-range-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.seeker-bar::-moz-range-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
}

/* Progress bar fill */
.seeker-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: var(--value-percent, 0%);
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 1;
}

/* Background track */
.seeker-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Audio Seeker Styles - Separate from video seeker */
.audio-seeker-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.audio-seeker-progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.audio-seeker-progress-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.audio-seeker-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: #00f2ea;
    pointer-events: none;
    transition: width 0.1s linear;
}

.audio-seeker-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
    margin: -8px 0;
}

.audio-seeker-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
}

.audio-seeker-bar::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
}

/* Time display */
.audio-time-display {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .video-seeker-container {
        position: fixed;
        bottom: 172px !important;
        left: 0;
        right: 0;
        padding: 0 12px;
        margin-bottom: 16px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.3);
        height: 36px;
        display: flex;
        align-items: center;
    }

    .seeker-bar {
        height: 36px;
        padding: 0;
        margin: 0;
        opacity: 1;
        display: flex;
        align-items: center;
        -webkit-appearance: none;
        appearance: none;
    }

    .seeker-bar::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        margin-top: -6px; /* Half the difference between thumb height and track height */
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    .seeker-bar::-moz-range-thumb {
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    /* Ensure track is centered */
    .seeker-bar::-webkit-slider-runnable-track {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 1.5px;
        position: relative;
    }

    .seeker-bar::-moz-range-track {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 1.5px;
        position: relative;
    }
}

/* Extra scaling for portrait orientation */
@media (max-width: 768px) and (orientation: portrait) {
    .video-foreground iframe {
        width: 300vw;
        height: 300vh;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Handle ultra-wide screens */
@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}

/* Utility Classes */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.gap-4 { gap: 1rem; }
.p-2 { padding: 0.5rem; }
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: 2.25rem; }
.text-7xl { font-size: 4.5rem; }
.font-light { font-weight: 300; }
.font-bold { font-weight: bold; }
.tracking-wider { letter-spacing: 0.05em; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(8px); }
.rounded-full { border-radius: 9999px; }
.hidden { display: none; }
.opacity-50 { opacity: 0.5; }
.cursor-not-allowed { cursor: not-allowed; }
.bg-black { background-color: black; }
.text-white { color: white; }
.overflow-hidden { overflow: hidden; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white-20 { background-color: rgba(255, 255, 255, 0.2); }

/* Equalizer */
.equalizer {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 30px;
}

.equalizer .bar {
    width: 3px;
    background-color: #78c7c3;
    height: 3px;
    transition: height 0.1s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .audio-controls {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 5px 12px 0 12px;
    }

    .radio-title h2 {
        font-size: 1rem;
    }

    .control-icon-button {
        width: 28px;
        height: 28px;
    }
    
    .control-icon-button i {
        font-size: 0.8rem;
    }

    .radio-controls {
        gap: 6px;
        margin-left: 12px;
    }

    .equalizer {
        right: 12px;
        bottom: 8px;
        height: 24px;
    }

    .equalizer .bar {
        width: 3px;
    }
}

/* Audio controls thumbnail */

/* Station Modal */
.station-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.station-modal {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header h3 {
    color: #78c7c3;
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.close-modal:hover {
    opacity: 1;
}

.station-list {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.95);
}

.station-category {
    margin-bottom: 24px;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 8px;
    padding: 16px;
}

.station-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: #78c7c3;
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120, 199, 195, 0.3);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.station-option {
    width: 100%;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-align: left;
    color: white;
}

.station-option:last-child {
    margin-bottom: 0;
}

.station-option:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.station-option.active {
    background: rgba(120, 199, 195, 0.15);
    border: 1px solid rgba(120, 199, 195, 0.4);
}

.station-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.station-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.station-option i {
    color: #78c7c3;
    font-size: 1.2rem;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */

/* Chat Styles */
.chat-container {
    position: fixed;
    z-index: 40;
    transition: all 0.3s ease;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .chat-container {
        top: 45px;
        right: 0;
        bottom: auto;
    }
    
    .chat-panel {
        width: 300px;
        height: 50vh !important;
        position: absolute;
        top: 50px;
        right: 0;
    }

    .chat-toggle {
        position: absolute;
        top: 0;
        right: 0;
        bottom: auto;
    }
}

/* Desktop Layout */
@media (min-width: 769px) {
    .chat-container {
        top: 20px;
        right: 24px;
        width: 300px;
    }

    .chat-container::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            rgba(0,0,0,0) 0%, 
            rgba(0,0,0,0.4) 50%, 
            rgba(0,0,0,0.7) 100%
        );
        z-index: -1;
        pointer-events: none;
        border-radius: 12px;
        overflow: hidden;
    }

    .chat-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

.chat-panel {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(70vh - 40px);
    max-height: 600px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container.chat-hidden .chat-panel {
    display: none;
}

.chat-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 41;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-toggle:hover {
    background: rgba(0,0,0, 0.5);
}

.chat-toggle.active {
    background: rgba(0,0,0, 0.7);
    transform: rotate(180deg);
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.chat-notification-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.chat-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-header .user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top:10px;
}

.username-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    font-size: 0.9rem;
}

.connection-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.5);
}

.connection-status.connected {
    background: rgba(0, 255, 0, 0.5);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Make sure new messages appear at the bottom */
.chat-messages > :first-child {
    margin-top: auto;
}

.chat-input {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    outline: none;
}

.chat-input button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 10px;
}

.chat-input button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.self-message {
    background: rgba(59, 130, 246, 0.3);
}

.other-message {
    background: rgba(255, 255, 255, 0.1);
}

.system-message {
    background: rgba(255, 255, 255, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.85em;
}

.username {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.message-content {
    word-break: break-word;
}

.audio-seeker-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.audio-seeker-progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.audio-seeker-progress-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.audio-seeker-progress {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: #00f2ea;
    pointer-events: none;
    transition: width 0.1s linear;
}

.audio-seeker-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
    margin: -8px 0;
}

.audio-seeker-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
}

.audio-seeker-bar::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    border: none;
}


.audio-time-display .digital-font {
    letter-spacing: 1px;
}

/* Digital font fallbacks */
.digital-font {
    font-family: 'DS Digital', 'Courier New', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Region dropdown styles */
select {
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

select:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4)
}

select option {
    background-color: white;
    color: black;
    padding: 0.5rem;
    border-radius: 0;
}

select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.no-results {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
}

.filter-select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 8L10 11L13 8" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s ease;
}

.filter-select:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background-color: #1a1a1a;
    color: white;
    padding: 8px;
    border-radius: 0;
}

.filter-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Remove old type toggle button styles */
.type-toggle-btn {
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.panel button {
    cursor: pointer;
}

/* Map Modal Styles */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.map-modal-content {
    position: relative;
    width: 90%;
    height: 85%;
    max-width: 1400px;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
}

.map-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.leaflet-map-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Custom marker styles */
.custom-map-marker {
    background: transparent !important;
    border: none !important;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    background: rgba(26, 26, 26, 0.95);
    color: white;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-popup-close-button {
    color: white !important;
}

.leaflet-popup-close-button:hover {
    color: #3B82F6 !important;
}

/* Override Leaflet cluster styles */
.marker-cluster-small {
    background-color: rgba(59, 130, 246, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(59, 130, 246, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(239, 68, 68, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(239, 68, 68, 0.8);
}

.marker-cluster-large {
    background-color: rgba(168, 85, 247, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(168, 85, 247, 0.8);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .map-modal-content {
        width: 95%;
        height: 90%;
        border-radius: 12px;
    }
    
    .map-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Welcome Modal Styles */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.welcome-modal {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 90%;
    width: 500px;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    margin: auto;
}

.welcome-header {
    text-align: center;
    margin-bottom: 24px;
}

.welcome-header h1 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    color: #fff;
    font-weight: bold;
}

.welcome-logo {
    width: 120px;
    height: auto;
}

.welcome-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.welcome-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.welcome-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.welcome-form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-select {
    background: rgba(20, 20, 20, 0.95);
    color: white;
}

.welcome-select optgroup {
    background: rgba(40, 40, 40, 0.95);
    color: #78c7c3;
    font-weight: 600;
    padding: 8px;
}

.welcome-select option {
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 8px;
}

.welcome-select option:hover,
.welcome-select option:focus {
    background: rgba(60, 60, 60, 1) !important;
}

.start-radio-btn {
    background: linear-gradient(45deg, #78c7c3, #00f2ea);
    border: none;
    border-radius: 8px;
    color: black;
    font-weight: bold;
    padding: 16px;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.start-radio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 199, 195, 0.3);
}

.start-radio-btn i {
    font-size: 1.2rem;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile styles for welcome modal */
@media (max-width: 768px) {
    .welcome-modal-overlay {
        align-items: center !important;
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .welcome-modal {
        width: 100%;
        max-height: 90vh;
        margin: auto;
        padding: 1.5rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        -webkit-transform: none;
    }

    .welcome-header h1 {
        font-size: 2rem;
    }

    .welcome-header p {
        font-size: 1rem;
    }

    .welcome-form {
        gap: 16px;
        margin-top: 24px;
    }

    .start-radio-btn {
        padding: 14px;
    }
}

/* Modal Overlays */
.modal-overlay,
.station-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Hide elements until Alpine is ready */
[x-cloak] {
    display: none !important;
}

/* Welcome Modal */
.welcome-modal {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 768px) {
    .welcome-modal {
        padding: 24px;
        width: 95%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Transitions */
.fade-in {
    transition: opacity 0.2s ease-out;
}

.fade-out {
    transition: opacity 0.2s ease-in;
}

.slide-up {
    transition: transform 0.2s ease-out;
    transform: translateY(0);
}

.slide-down {
    transition: transform 0.2s ease-in;
    transform: translateY(20px);
}

/* Social Tooltip Styles */
.social-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    width: 280px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.social-tooltip-header {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.social-link i {
    width: 20px;
    text-align: center;
}

.copy-link {
    font-family: inherit;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .social-tooltip {
        position: absolute;
        bottom: 100%;
        top: auto;
        left: auto;
        right: 16px;
        transform: none;
        width: 280px;
        margin-bottom: 1rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    /* Keep the arrow for visual connection to the button */
    .social-tooltip::after {
        display: block;
        right: 24px;
    }

    /* Ensure the tooltip doesn't go off-screen on smaller devices */
    @media (max-width: 350px) {
        .social-tooltip {
            right: 8px;
            left: 8px;
            width: auto;
        }
    }
}

/* Volume Control Styles */
.volume-control {
    position: relative;
    display: inline-block;
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 40px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.volume-slider-container::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #78c7c3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #8cd8d4;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #78c7c3;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #8cd8d4;
}

/* Mobile adjustments for volume control */
@media (max-width: 768px) {
    .volume-slider-container {
        bottom: auto;
        top: -160px;  /* Increased from -130px to -160px to position it higher */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .volume-slider-container::after {
        top: auto;
        bottom: -6px;
        border-top: 6px solid rgba(0, 0, 0, 0.9);
        border-bottom: none;
    }
}

