@import url("https://fonts.googleapis.com/css?family=Raleway:200,300,400,500,600");

* {
  box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f6f6;
    color: #222;
	font-family: "Raleway";
	font-weight: 400;
}

body {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color:  #ff2600;
}

.topbar-title {
    font-size: 16px;
    color:  #000;
    opacity: 0.95;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.playlist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.track {
    display: flex;
    gap: 18px;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
    border-left: 6px solid transparent;
}

.track:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.track.playing {
    border-left-color: #ff5500;
}

.track-cover-wrap {
    position: relative;
    width: 160px;
    min-width: 160px;
    height: 160px;
}

.track-cover,
.no-cover {
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 24px;
}

.play-btn {
    position: absolute;
    right: 10px;   /* ← à droite */
    bottom: 10px;

    width: 40px;   /* ← plus petit */
    height: 40px;

    border: none;
    border-radius: 50%;
    background: #ff2600;
    color: #fff;
    cursor: pointer;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.play-btn:hover {
    background: #e84d00;
}

.play-icon {
    transform: translateX(1px); /* petit ajustement visuel */
    transform: translateY(-1px); /* petit ajustement visuel */
}
.track-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.track-meta {
    min-width: 0;
}

.track-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 6px;
    word-break: break-word;
}

.track-artist {
    font-size: 14px;
    color: #666;
}

.track-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #bdbdbd;
    border-radius: 50%;
}

.track.playing .status-dot {
    background: #ff5500;
}

.wave-area {
    position: relative;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
}

.wave-bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            #d8d8d8 0px,
            #d8d8d8 3px,
            transparent 3px,
            transparent 8px
        );
    opacity: 0.95;
}

.wave-progress {
    position: absolute;
    inset: 0;
    width: 0%;
    background:
        repeating-linear-gradient(
            90deg,
            #ff7a33 0px,
            #ff7a33 3px,
            transparent 3px,
            transparent 8px
        );
    pointer-events: none;
}

.seek-bar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

.seek-bar::-webkit-slider-thumb {
    appearance: none;
    width: 0;
    height: 56px;
    background: transparent;
    border: none;
}

.seek-bar::-moz-range-thumb {
    width: 0;
    height: 56px;
    background: transparent;
    border: none;
}

.seek-bar::-moz-range-track {
    background: transparent;
    border: none;
}

.track-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.time-box {
    font-size: 14px;
    color: #555;
}

.time-separator {
    margin: 0 6px;
    color: #aaa;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-btn {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    font-size: 15px;
}

.mini-btn:hover {
    background: #f9f9f9;
}

.empty-state {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 800px) {
    .track {
        flex-direction: column;
    }

    .track-cover-wrap {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .track-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .playlist {
        grid-template-columns: 1fr;
    }
}