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

body {
    font-family: 'Satoshi', sans-serif;
}

/* --- Station Selector --- */
#station-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px auto;
    width: 80%;
    max-width: 900px;
    font-family: 'Satoshi', sans-serif;
}

/* Station row base */
.station-btn {
    all: unset;                 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 12px 10px;        /* same padding for all rows */
    border-bottom: 1px solid #e5e5e5;
    border-radius: 6px;        /* consistent rounded edges */
}

/* Left side: play icon + station name */
.station-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-left .play-icon {
    width: 16px;
    height: 16px;
    background-image: url('/wp-content/uploads/2025/09/play.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.station-left .station-name {
    font-size: 16px;
    font-weight: 500;
    color: #111;
}

/* Right side: tags */
.station-btn .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.station-btn .ab-tag {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 400;
    color: #333;
}

/* Remove any hover/focus coloring */
.station-btn:hover,
.station-btn:focus,
.station-btn:active {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Active station row */
.station-btn.active-station {
    background: #ffd500 !important; /* bright yellow */
    color: #000 !important;
}

/* Ensure station name + tags also switch to black text */
.station-btn.active-station .station-name,
.station-btn.active-station .ab-tag {
    color: #000 !important;
}

/* Tags inside active row */
.station-btn.active-station .ab-tag {
    background: rgba(255, 255, 255, 0.6); /* lighter contrast for tags */
}

/* --- Footer Player --- */
#footer-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5 !important; /* light grey */
    color: #111;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    z-index: 9999;
    font-family: 'Satoshi', sans-serif;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    border-top: 1px solid #ddd;
    height: 70px; /* fixed height */
}

/* Player Buttons */
#footer-player button {
    margin: 0 10px;
    border: none !important;
    cursor: pointer;
    width: 28px !important;
    height: 28px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    text-indent: -9999px; /* hide any fallback text */
    overflow: hidden;
}

/* Custom icons */
#prev-track {
    background-image: url('/wp-content/uploads/2025/09/previous.png') !important;
}
#play-pause.play {
    background-image: url('/wp-content/uploads/2025/09/play.png') !important;
}
#play-pause.pause {
    background-image: url('/wp-content/uploads/2025/09/pause.png') !important;
}
#next-track {
    background-image: url('/wp-content/uploads/2025/09/next.png') !important;
}

/* Volume Slider */
#footer-player input[type=range] {
    margin-left: 15px;
}

/* Station Name in Footer */
#now-playing {
    margin-left: 20px;
    font-size: 15px;
    font-weight: 500;
}

/* Mobile layout: tags below station name */
@media (max-width: 768px) {
    .station-btn {
        flex-direction: column;
        align-items: flex-start;
    }

    .station-left {
        margin-bottom: 8px;
    }

    .station-btn .tags {
        justify-content: flex-start;
        width: 100%;
    }
}

/* --- Mobile footer fix --- */
@media (max-width: 768px) {
    #footer-player {
        gap: 6px;              /* tighter spacing */
        padding: 0 8px;        /* smaller padding */
        height: 70px;          /* fixed height */
    }

    #footer-player button {
        width: 22px !important;
        height: 22px !important;
        margin: 0 4px;
    }

    #footer-player input[type=range] {
        width: 60px;           /* shorter slider */
        margin: 0;
    }

    #now-playing {
        font-size: 12px;       /* smaller text */
        max-width: 90px;       /* prevent overflow */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-left: 6px;
    }
}

@media (max-width: 768px) {
    #footer-player input[type=range] {
        display: none !important;
    }
}
