/* Style pour le site La Belle Aventure */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* En-tête */
header {
    background: #1a1a2e;
    color: #00d9ff;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid #00d9ff;
}

header .logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 4px solid white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header .tagline {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Section Player */
.player-section {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
}

.track-info {
    margin-bottom: 30px;
}

.track-info h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.track-info p {
    font-size: 1.3em;
    color: #666;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00d9ff;
    border: none;
    color: #1a1a2e;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6);
    background: #00f0ff;
}

.play-btn:active {
    transform: scale(0.95);
}


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

.volume-control label {
    font-weight: bold;
    color: #666;
}

.volume-control input[type="range"] {
    width: 150px;
}

.volume-control #volume-value {
    min-width: 45px;
    color: #666;
    font-weight: bold;
}

/* Section Historique */
.history-section {
    padding: 40px;
}

.history-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.history-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-controls input[type="date"],
.history-controls input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    flex: 1;
    min-width: 150px;
}

.history-controls button {
    padding: 10px 25px;
    background: #00d9ff;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
    background: #00f0ff;
}

#history-content {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item .time {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 5px;
}

.history-item .title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.history-item .artist {
    font-size: 1em;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px;
    color: #d9534f;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #00d9ff;
}

footer a {
    color: #00d9ff;
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .cover-container {
        width: 200px;
        height: 200px;
    }
    
    .track-info h2 {
        font-size: 1.4em;
    }
    
    .track-info p {
        font-size: 1.1em;
    }
    
    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .history-controls {
        flex-direction: column;
    }
    
    .history-controls input,
    .history-controls button {
        width: 100%;
    }
}
