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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0d0d0f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Wrapper principal ── */
.player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 80px;
    width: 360px;
}

/* ── Lecteur ── */
.music-container {
    background: #18181c;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 28px 28px;
    width: 100%;
    position: relative;
}

/* ── Pochette ── */
.img-container {
    width: 200px;
    height: 200px;
    margin-top: -80px;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.img-container img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ── Infos chanson ── */
.music-info {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.music-info h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #f0f0f2;
    letter-spacing: -0.3px;
}

.music-info p {
    font-size: 13px;
    color: #5a5a6e;
    margin-top: 5px;
    font-weight: 400;
}

/* ── Barre de progression ── */
.progress-container {
    background: #2a2a32;
    border-radius: 99px;
    cursor: pointer;
    margin: 6px 0;
    height: 4px;
    width: 100%;
    transition: height 0.15s ease;
}

.progress-container:hover {
    height: 6px;
}

.progress {
    background: #e0e0e8;
    border-radius: 99px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

/* ── Temps ── */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #3e3e50;
    margin-top: 6px;
    margin-bottom: 20px;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

/* ── Contrôles ── */
.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.action-btn {
    background: none;
    border: none;
    color: #3e3e50;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 12px;
    transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
    line-height: 1;
}

.action-btn:hover {
    color: #f0f0f2;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.08);
}

.action-btn:active {
    transform: scale(0.94);
}

.action-btn:focus {
    outline: none;
}

.action-btn-big {
    color: #f0f0f2;
    font-size: 25px;
    padding: 10px 20px;
}

.action-btn-big:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transform: scale(1.08);
}

/* ── Playlist ── */
.playlist-container {
    background: #18181c;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    padding: 14px 10px;
}

.playlist-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2e2e3a;
    margin-bottom: 10px;
    padding-left: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s ease;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #e0e0e8;
}

.playlist-item.active h4 {
    color: #f0f0f2;
}

.playlist-item.active p {
    color: #5a5a6e;
}

.playlist-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: #2a2a32;
}

.playlist-info {
    flex: 1;
    overflow: hidden;
}

.playlist-info h4 {
    font-size: 13px;
    color: #8a8a9e;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-info p {
    font-size: 11px;
    color: #3e3e50;
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Scrollbar ── */
.playlist-container::-webkit-scrollbar {
    width: 4px;
}

.playlist-container::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #2a2a32;
    border-radius: 99px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #3a3a48;
}
