* {
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(148, 163, 184, 0.25);
    --text: #0f172a;
    --muted: #64748b;
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    --radius: 28px;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(135deg, #0b1120, #111827 45%, #0f172a);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.player-card {
    width: min(100%, 420px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.logo-wrap {
    width: 100%;
    min-height: 100px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(15, 23, 42, 0.04));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    overflow: hidden;
}

.logo-image {
    width: 300px;
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
}

.now-playing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 14px 16px;
}

.now-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

#trackName {
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 10px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-ghost {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.icon-btn {
    min-height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.icon-btn span {
    line-height: 1;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

@media (max-width: 480px) {
    .page-shell {
        padding: 14px;
    }

    .player-card {
        width: min(100%, 360px);
        padding: 16px;
        gap: 14px;
        border-radius: 24px;
    }

    .logo-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 100px;
    }

    .controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
