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

:root {
    --bg:        #1a1a2e;
    --surface:   #16213e;
    --border:    #0f3460;
    --accent:    #e94560;
    --text:      #eaeaea;
    --muted:     #888;
    --radius:    8px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.player {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    width: 360px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.player h1 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

.now-playing {
    min-height: 3.5rem;
    margin-bottom: 1.75rem;
}

.track-title {
    font-size: 1.05rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 1.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s linear;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.status {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--muted);
    min-height: 1em;
}
