/* Thème sombre de base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #191919;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

#controls {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#controls > * {
    font-size: 1em;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #1e1e1e;
    color: #eee;
    cursor: pointer;
}

#keyword {
    width: 180px;
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #555;
}

button {
    background: #007B99;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #005f6b;
}

#tracks {
    position: relative;
}

.track {
    display: flex;
    align-items: center;
    position: relative;
    background: #1e1e1e;
    margin: 12px 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, opacity 0.6s ease;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px);
    animation: slideFadeIn 1s ease forwards;
}

.livestream {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin: 10px 0;
    background: #2b2b2b;
    border-left: 5px solid #E94E1B;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    animation: slideFadeIn 0.8s ease forwards;
}

.track.zoomed {
    z-index: 1000;
    position: relative;
}

.track .artwork {
    min-width: 80px;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hour-label {
    width: 55px;
    flex-shrink: 0;
    font-size: 1em;
    color: #bbb;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
    user-select: none;
    position: relative;
    height: 100%;
}

.artwork {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: center center;
    z-index: 1;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    flex-shrink: 0;
    margin-right: 20px;
}

.artwork.default-artwork {
    cursor: default !important;
    pointer-events: none;
}

.artwork.zoomed {
    transform: scale(3);
    z-index: 9999 !important;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    margin-right: 0;
}

.info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 0;
    text-align: left;
}

.info > div {
    border-bottom: none;
    margin-bottom: 2px;
    padding-bottom: 0;
}

.title {
    font-size: 1.2em;
    margin-bottom: 5px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.artist {
    font-size: 1.1em;
    font-weight: 600;
    color: #E94E1B;
}

.album {
    font-size: 0.95em;
    color: #ccc;
}

.toggle-mood {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ccc;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    padding: 0 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.toggle-mood:hover {
    background-color: #444;
    color: #E94E1B;
}

.mood {
    margin-top: 5px;
    font-size: 0.9em;
    display: none;
    color: #E94E1B;
    white-space: pre-wrap;
    padding-top: 5px;
}

.mood div {
    margin: 3px 0;
    line-height: 1.4;
}

.download-link {
    color: #4FC3F7;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-link:hover {
    color: #81D4FA;
    text-decoration: underline;
}

#showMoreBtn {
    display: block;
    margin: 15px auto 40px auto;
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 6px;
    border: none;
    background-color: #E94E1B;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#showMoreBtn:hover {
    background-color: #c0392b;
}

/* Responsive */
@media (max-width: 600px) {
    .track {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hour-label {
        width: auto;
        margin-bottom: 8px;
        padding-right: 0;
        justify-content: center;
        text-align: center;
    }

    .artwork {
        margin: 0 0 10px 0;
    }

    .info {
        align-items: center;
        margin-left: 0;
        text-align: center;
    }

    .toggle-mood {
        top: 5px;
        right: 5px;
    }
}

@media (min-width: 601px) {
    .artwork {
        margin-right: 20px;
    }

    .info {
        align-items: flex-start;
        text-align: left;
    }
}
