/* Radio On-Demand Styles */
.radio-programs-archive {
    margin: 20px 0;
}

.radio-program-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.radio-program-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.program-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.program-title {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: #333;
}

.program-schedule {
    color: #666;
    font-size: 0.9em;
}

.program-content {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.program-thumbnail {
    flex: 0 0 150px;
}

.program-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.program-excerpt {
    flex: 1;
}

.program-player {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.audio-player-wrapper {
    margin-bottom: 10px;
}

.program-player audio {
    border-radius: 4px;
    min-width: 100%;
}

.program-duration {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.program-meta {
    text-align: right;
    margin-top: 15px;
}

.program-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.program-link:hover {
    background: #005a87;
    color: white;
}

.radio-programs-pagination {
    text-align: center;
    margin-top: 30px;
}

.rod-single-player {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rod-single-player h3 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

/* Audio player customization */
audio {
    border-radius: 4px;
    background: #fff;
}

audio::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, #f1f3f4, #e0e0e0);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    border-radius: 50%;
    background: #007cba;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #333;
    font-weight: bold;
}

/* Admin styles */
.rod-meta-field {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rod-file-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.rod-audio-preview {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-content {
        flex-direction: column;
    }
    
    .program-thumbnail {
        flex: 0 0 auto;
        text-align: center;
    }
    
    .program-thumbnail img {
        max-width: 200px;
    }
    
    .program-player audio {
        min-width: 100%;
    }
    
    .rod-file-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rod-file-upload input {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading states */
.rod-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.rod-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #666; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #666, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #666, .5em 0 0 #666; }
}