﻿/*:root {
    --accent: #2b8cff;
    --bg: #0f1724;
    --card: #0b1220;
    --muted: #a0a8b8;
    --focus: 3px solid rgba(43,140,255,0.35);
}*/

body {
/*    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;*/
    margin: 0;
    /*background: linear-gradient(180deg,#071127 0%, #0b1522 100%);*/
    color: white;
    padding: 24px;
}

@font-face {
    font-family: 'Seasons'; /* Choose a descriptive name */
    src: url('../fonts/TheSeasons-Regular.woff') format('woff'); /* Adjust path and format */
    src: url('../fonts/TheSeasons-Regular.woff2') format('woff2'); /* Adjust path and format */
    /* Add other src declarations for different formats if available (e.g., .woff, .woff2) */
    font-weight: normal;
    font-style: normal;
}

.player-app {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.player-area {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.02);
    padding: 16px;
    border-radius: 12px;
    flex: 1 1 60%;
    align-items: flex-start;
}

.player-left img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}

.player-right {
    flex: 1;
}

#track-title {
    margin: 0;
    font-size: 1.2rem;
}

#track-artist {
    margin: 4px 0 12px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

canvas#spectrum {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
    border-radius: 6px;
}

.progress-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,var(--accent), #84d1ff);
    border-radius: 6px;
    outline: none;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

    .control-btn:focus {
        outline: none;
        box-shadow: var(--focus);
    }

.control-link {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
}

input[type="range"] {
    width: 120px;
}

/* Playlist */
.playlist {
    width: 320px;
    background: rgba(255,255,255,0.02);
    padding: 16px;
    border-radius: 12px;
    max-height: 640px;
    overflow: auto;
}

    .playlist h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

#playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.playlist-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    border: 1px solid transparent;
}

    .playlist-item .thumb {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 6px;
    }

    .playlist-item .meta {
        flex: 1;
        min-width: 0;
    }

.meta-title {
    font-weight: 600;
}

.meta-artist {
    color: var(--muted);
    font-size: 0.9rem;
}

.playlist-item:focus {
    outline: none;
    box-shadow: var(--focus);
}

.playlist-item:hover {
    background: rgba(255,255,255,0.01);
}

/* selected state */
.playlist-item.selected {
    background: linear-gradient(90deg, rgba(43,140,255,0.12), transparent);
    border-color: rgba(43,140,255,0.18);
    transform: translateY(-2px);
}

/* accessibility helper */
.sr-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* focus-visible styles for keyboard users */
:focus-visible {
    box-shadow: var(--focus);
    outline: none;
}

/* responsive */
@media (max-width:900px) {
    .player-app {
        flex-direction: column;
        padding: 12px;
    }

    .playlist {
        width: 100%;
    }

    .player-area {
        width: 100%;
    }

    .player-left img {
        width: 120px;
        height: 120px;
    }
}
