/* Station name specific styling */
#station-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: transform 0.6s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 2px solid #555;
    padding: 0px;
    margin: 0px;
}

@media (max-width: 768px) {
    .player-container {
        
        font-size: 14px;
    }

    .station-details h3 {
        font-size: 16px;
    }

    .station-details p {
        font-size: 12px;
    }

    .video-js {
        width: 100%;
        max-width: 500px;
    }
}

.player-controls {
    display: flex;
    gap: 0px;
}


.station-history-container {
    max-height: 150px;
    overflow-y: auto;
}


.station-history-list {
    font-size: 12px !important;
}

.station-history-item {
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .station-history-item:hover {
        background-color: rgba(0,0,0,0.05);
        cursor: pointer;
    }

.history-station-logo {
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 2px;
}

.history-station-name {
    max-width: 150px;
}

.history-play-btn {
    padding: 0.1rem 0.3rem;
    line-height: 1;
}

.player-info{
    max-height: 60px;
}
/* Any additional custom styling */
#persistent-player {
    transition: all 0.3s ease;
    /*z-index: 1050;*/ /* Make sure player appears above other content */
}

    #persistent-player.collapse {
        max-height: 100px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    #persistent-player.collapse-show {
        max-height: 400px;
        transition: all 0.3s ease;
    }

/* Ensure Video.js player fits within the responsive container */
.video-js {
    width: 100%;
    height: auto;
    min-height: 190px;
}

/* Change all text and icon colors in the player. */
.vjs-matrix.video-js {
    border-color: var(--bg-primary);
}

/* Change the border of the big play button. */
.vjs-matrix .vjs-big-play-button {
    border-color: var(--bg-primary);
}

/* Change the color of various "bars". */
.vjs-matrix .vjs-volume-level,
.vjs-matrix .vjs-play-progress,
.vjs-matrix .vjs-slider-bar {
    background: var(--bg-primary);
}

.stream-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.stream-title {
    margin-bottom: 10px;
    font-size: 18px;
}

.stream-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .stream-controls button {
        color: white;
        border-color: white;
    }

        .stream-controls button:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }