/* ============================================
   RADIO MULTI-STATION PLAYER STYLES
   DJT Brand Colors
   ============================================ */

/* Page Header */
.container-fluid h1 {
    color: #125687;
    font-weight: 700;
}

.container-fluid h1 i {
    color: #F2AE00;
}

.container-fluid .lead {
    color: #6c757d;
}

#toggleViewBtn {
    border-color: #125687;
    color: #125687;
    font-weight: 600;
}

#toggleViewBtn:hover {
    background: #125687;
    color: white;
    border-color: #125687;
}

#toggleViewBtn i {
    color: #F2AE00;
}

.radio-player-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* ============================================
   NOW PLAYING SECTION
   ============================================ */
.section-now-playing {
    background: linear-gradient(135deg, #125687 0%, #0d3f5f 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.now-playing-album {
    text-align: center;
    margin-bottom: 2rem;
}

.album-art {
    width: 250px;
    height: 250px;
    margin: 0 auto 1rem;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: #F2AE00;
    opacity: 0.8;
    display: none;
}

.station-info {
    color: white;
}

.station-channel {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: #F2AE00;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.track-info {
    text-align: center;
}

.track-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #F2AE00;
}

.track-artist {
    font-size: 1.2rem;
    opacity: 0.9;
    color: white;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-play-pause,
.btn-next {
    background: none;
    border: none;
    color: #F2AE00;
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.btn-play-pause:hover,
.btn-next:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.btn-next {
    font-size: 3rem;
    color: white;
}

/* Progress Bar */
.progress-section {
    margin-top: 2rem;
}

.time-display {
    font-size: 0.9rem;
    opacity: 0.9;
}

.progress-bar-container {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #F2AE00;
    border-radius: 4px;
    transition: width 0.1s;
    pointer-events: none;
}

.seek-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #F2AE00;
    cursor: pointer;
}

/* Volume Control */
.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-mute {
    background: none;
    border: none;
    color: #F2AE00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn-mute:hover {
    filter: brightness(1.2);
}

.volume-control {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F2AE00;
    cursor: pointer;
}

/* ============================================
   TUNER/STATION LIST SECTION
   ============================================ */
.section-tuner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tuner-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #125687;
}

.tuner-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.frequency-display {
    background: linear-gradient(135deg, #125687 0%, #0d3f5f 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(18, 86, 135, 0.3);
}

.frequency-number {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
    font-family: 'Courier New', monospace;
    color: #F2AE00;
}

.frequency-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.station-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    background: #f8f9fa;
    border-left: 3px solid transparent;
}

.station-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-left-color: #F2AE00;
}

.station-item.active {
    background: linear-gradient(135deg, #125687 0%, #0d3f5f 100%);
    color: white;
    border-left-color: #F2AE00;
}

.station-number {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #125687;
}

.station-item.active .station-number {
    color: #F2AE00;
}

.station-details {
    flex: 1;
}

.station-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.station-genre {
    font-size: 0.9rem;
    opacity: 0.8;
}

.station-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* ============================================
   COMING UP NEXT SECTION
   ============================================ */
.section-coming-up {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.coming-up-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #125687;
}

.coming-up-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coming-up-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: background 0.2s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.coming-up-track:hover {
    background: #e9ecef;
    border-left-color: #F2AE00;
}

.track-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #125687;
    min-width: 30px;
    background: #F2AE00;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-details {
    flex: 1;
}

.track-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.track-metadata {
    font-size: 0.9rem;
    color: #6c757d;
}

.coming-up-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.coming-up-placeholder i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #125687;
    opacity: 0.5;
}

/* Tuner Control Buttons */
.tuner-controls .btn {
    background: linear-gradient(135deg, #125687 0%, #0d3f5f 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tuner-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 86, 135, 0.4);
}

.tuner-controls .btn:active {
    transform: translateY(0);
}

.tuner-controls .btn i {
    color: #F2AE00;
}

/* Badge Styling */
.badge.bg-warning {
    background: #F2AE00 !important;
    color: #000;
}

.badge.bg-secondary {
    background: #125687 !important;
    color: white;
}

.badge.bg-info {
    background: #0dcaf0 !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .radio-player-container {
        grid-template-columns: 1fr;
    }

    .album-art {
        width: 200px;
        height: 200px;
    }

    .frequency-number {
        font-size: 3rem;
    }

    .station-list {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .section-now-playing,
    .section-tuner,
    .section-coming-up {
        padding: 1rem;
    }

    .album-art {
        width: 150px;
        height: 150px;
    }

    .track-title {
        font-size: 1.4rem;
    }

    .track-artist {
        font-size: 1rem;
    }

    .btn-play-pause {
        font-size: 3rem;
    }

    .btn-next {
        font-size: 2.5rem;
    }

    .tuner-controls {
        flex-direction: column;
    }

    .tuner-controls button {
        width: 100%;
    }

    .station-number {
        font-size: 1.2rem;
        min-width: 50px;
    }

    .frequency-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.scanning {
    animation: pulse 1s infinite;
}

/* Smooth scrollbar */
.station-list::-webkit-scrollbar {
    width: 8px;
}

.station-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.station-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.station-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
