/* Style pour le site FIP - Thème sombre et rose */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #0f0f1e;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
    overflow: hidden;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

/* En-tête */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%);
    color: #e91e63;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid #e91e63;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}

header .logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 4px solid #e91e63;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    color: #ff4081;
}

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

/* Section Player */
.player-section {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.track-info h2 {
    font-size: 1.8em;
    color: #ff4081;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.3);
}

.track-info p {
    font-size: 1.3em;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.track-info .track-album {
    font-size: 1.1em;
    color: #888;
    font-style: italic;
}

.track-info .track-label {
    font-size: 0.95em;
    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: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(233, 30, 99, 0.6);
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(233, 30, 99, 0.8);
    background: linear-gradient(135deg, #f50057 0%, #ff4081 100%);
}

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


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

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

.volume-control input[type="range"] {
    width: 150px;
    height: 6px;
    background: #2d2d3d;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

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

/* Section Historique */
.history-section {
    padding: 40px;
    background: #0f0f1e;
}

.history-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ff4081;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.3);
}

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

.history-controls input[type="date"],
.history-controls input[type="text"],
.history-controls select {
    padding: 10px 15px;
    border: 2px solid #2d2d3d;
    border-radius: 8px;
    font-size: 1em;
    flex: 1;
    min-width: 150px;
    background: #1a1a2e;
    color: #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-controls input[type="date"]:focus,
.history-controls input[type="text"]:focus,
.history-controls select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.history-controls select:hover,
.history-controls input[type="date"]:hover {
    border-color: #e91e63;
}

.history-controls input[type="text"]::placeholder {
    color: #666;
}

.history-controls button {
    padding: 10px 25px;
    background: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(233, 30, 99, 0.4);
}

.history-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.6);
    background: linear-gradient(135deg, #f50057 0%, #ff4081 100%);
}

#history-content {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e91e63 #1a1a2e;
}

#history-content::-webkit-scrollbar {
    width: 8px;
}

#history-content::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

#history-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    border-radius: 4px;
}

#history-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f50057 0%, #ff4081 100%);
}

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

.history-item:hover {
    background: rgba(233, 30, 99, 0.1);
    border-left: 3px solid #e91e63;
    padding-left: 12px;
}

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

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

.history-item .artist {
    font-size: 1em;
    color: #b0b0b0;
    margin-bottom: 3px;
}

.history-item .album {
    font-size: 0.95em;
    color: #888;
    font-style: italic;
    margin-bottom: 2px;
}

.history-item .label {
    font-size: 0.85em;
    color: #666;
}

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

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

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%);
    color: #e0e0e0;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #e91e63;
}

footer a {
    color: #ff4081;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #f50057;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

/* 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 select,
    .history-controls button {
        width: 100%;
    }
}
