/* Style pour Radio Secousse */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7f7f7;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
}

.tagline {
    color: var(--light-text);
    margin: 5px 0 0;
    font-size: 1.1rem;
}

/* Section du player */
.player-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 30px;
}

.track-info {
    text-align: center;
    margin-bottom: 25px;
}

#current-track-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
}

#current-track-artist {
    font-size: 1.2rem;
    margin: 5px 0 0;
    color: var(--light-text);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.play-btn.playing {
    background-color: #e55a2b;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control label {
    font-weight: 600;
}

#volume-slider {
    width: 150px;
}

/* Section historique */
.history-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.history-controls input,
.history-controls select,
.history-controls button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.history-controls input[type="date"],
.history-controls select {
    min-width: 180px;
}

.history-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.history-controls button:hover {
    background-color: #e55a2b;
}

#search-input {
    flex: 1;
    min-width: 250px;
}

.history-content {
    max-height: 600px;
    overflow-y: auto;
}

.history-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.history-item:last-child {
    border-bottom: none;
}

.time {
    font-weight: 600;
    color: var(--primary-color);
}

.title {
    font-weight: 600;
}

.artist {
    color: var(--light-text);
}

.loading, .error {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
}

.error {
    color: #d32f2f;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .history-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .history-controls input,
    .history-controls select,
    .history-controls button {
        width: 100%;
    }
    
    .history-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .time {
        font-size: 0.9rem;
    }
}
