* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0d0d12;
    --card: #17171f;
    --card-light: #20202a;
    --text: #ffffff;
    --muted: #92929d;
    --accent: #b68cff;
    --accent-2: #7c4dff;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at top,
            rgba(124, 77, 255, 0.18),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

.app {
    width: min(100%, 1100px);
    margin: auto;
    padding: 30px 20px 50px;
}



.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        var(--accent-2),
        var(--accent)
    );
    font-size: 20px;
}

.brand h1 {
    font-size: 20px;
    letter-spacing: 2px;
}

.brand span {
    color: var(--muted);
    font-size: 12px;
}



.player {
    background: rgba(23, 23, 31, 0.88);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

/* Artwork */

.artwork {
    width: fit-content;
    height: max-content;
    margin: 0 auto 28px;
    overflow: hidden;
    border-radius: 20px;
}

.artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;

    background:
        repeating-radial-gradient(
            circle,
            #16161d 0,
            #16161d 4px,
            #22222b 5px,
            #111118 8px
        );

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 0 10px rgba(255, 255, 255, 0.03);

    animation: rotateDisc 8s linear infinite;
    animation-play-state: paused;
}

.disc.playing {
    animation-play-state: running;
}

.disc::before {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--accent-2),
        var(--accent)
    );
    filter: blur(1px);
}

.disc-center {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #111118;
    border: 7px solid #292934;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@keyframes rotateDisc {
    to {
        transform: rotate(360deg);
    }
}


.song-info {
    text-align: center;
    margin-bottom: 25px;
}

.song-info h2 {
    font-size: 24px;
    margin-bottom: 7px;
}

.song-info p {
    color: var(--muted);
    font-size: 14px;
}


.progress-area {
    display: grid;
    grid-template-columns: 45px 1fr 45px;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-area span {
    color: var(--muted);
    font-size: 12px;
}

.progress-area span:last-child {
    text-align: right;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: #30303a;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* Controls */

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
}

.control-btn,
.play-btn {
    color: var(--muted);
    background: transparent;
    transition: 0.2s ease;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 17px;
}

.control-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.control-btn.active {
    color: var(--accent);
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(
        135deg,
        var(--accent-2),
        var(--accent)
    );
    font-size: 20px;
    box-shadow: 0 12px 30px rgba(124, 77, 255, 0.35);
}

.play-btn:hover {
    transform: scale(1.05);
}

/* Volume */

.volume-area {
    max-width: 300px;
    margin: 15px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-area input {
    flex: 1;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.volume-area input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Playlist */

.playlist-section {
    margin-top: 25px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 17px;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
}

.tab.active {
    color: white;
    background: var(--card);
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.2s ease;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.song-item.active {
    border-color: rgba(182, 140, 255, 0.35);
    background: rgba(124, 77, 255, 0.1);
}

.song-number {
    width: 25px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.song-cover {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        var(--accent-2),
        var(--accent)
    );
}

.song-details {
    flex: 1;
    min-width: 0;
}

.song-details h3 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-details p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.favorite-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.favorite-btn:hover,
.favorite-btn.loved {
    color: #ff6b9d;
}

/* Responsive */

@media (max-width: 600px) {
    .app {
        padding: 20px 12px 35px;
    }

    .player {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .artwork {
        width: 220px;
        height: 220px;
    }

    .controls {
        gap: 8px;
    }

    .play-btn {
        width: 58px;
        height: 58px;
    }

    .progress-area {
        grid-template-columns: 38px 1fr 38px;
    }
}