﻿.music-container {
    width: 100%;
    max-width: 850px;
    margin: 50px auto;
}


/* =========================
   TITLE
========================= */

.music-title {
    margin-bottom: 25px;
}

    .music-title span {
        color: #8f0000;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 3px;
    }

    .music-title h2 {
        margin-top: 3px;
        color: #eee;
        font-size: 24px;
        letter-spacing: 2px;
    }


/* =========================
   TRACK
========================= */

.track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 55px;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease;
}

    .track:hover {
        background: rgba(255, 255, 255, 0.025);
    }


/* =========================
   PLAY
========================= */

.track-play {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .track-play:hover {
        color: #c00000;
    }

.track.active .track-play {
    color: #b00000;
}


/* =========================
   MAIN
========================= */

.track-main {
    flex: 1;
    min-width: 0;
}


/* =========================
   TOP LINE
========================= */

.track-top {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 25px;
}

.track-number {
    color: #444;
    font-size: 9px;
    min-width: 20px;
}

.track-name {
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: #666;
    font-size: 11px;
}

.track-duration {
    margin-left: auto;
    color: #555;
    font-size: 10px;
}


/* =========================
   PROGRESS
========================= */

.track-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
}


/* Показываем только активному */

.track.active .track-progress {
    height: 18px;
    opacity: 1;
}

.track-current-time,
.track-total-time {
    color: #555;
    font-size: 8px;
    min-width: 30px;
}

.track-total-time {
    text-align: right;
}


/* =========================
   RANGE
========================= */

.track-range {
    flex: 1;
    height: 2px;
    margin: 0;
    appearance: none;
    background: #333;
    outline: none;
    cursor: pointer;
}


    /* Chrome */

    .track-range::-webkit-slider-thumb {
        appearance: none;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #a00000;
        cursor: pointer;
    }


    /* Firefox */

    .track-range::-moz-range-thumb {
        width: 7px;
        height: 7px;
        border: 0;
        border-radius: 50%;
        background: #a00000;
        cursor: pointer;
    }


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .music-container {
        margin: 35px auto;
    }

    .track {
        min-height: 50px;
        gap: 8px;
    }

    .track-top {
        gap: 7px;
    }

    .track-number {
        min-width: 17px;
    }

    .track-name {
        font-size: 12px;
    }

    .track-artist {
        display: none;
    }

    .track-duration {
        font-size: 9px;
    }

    .track-play {
        width: 25px;
        height: 25px;
    }
}
