:root {
    color-scheme: light dark;
    --bg: #0f172a;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.14);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --accent: #22d3ee;
    --accent-strong: #2563eb;
    --danger: #f87171;
    --warning: #fbbf24;
    --border: rgba(255, 255, 255, 0.18);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.24), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.24), transparent 24rem),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

main {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.brand {
    font-weight: 900;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a,
button,
.button {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--panel-strong);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

button:hover,
.button:hover,
.nav a:hover {
    border-color: rgba(255, 255, 255, 0.42);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: white;
    font-weight: 800;
}

.danger {
    color: var(--danger);
}

.hero {
    min-height: calc(100vh - 190px);
    display: grid;
    align-content: center;
    gap: 24px;
    padding-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: center;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 1;
}

.panel h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
}

h2 {
    font-size: 1.3rem;
}

.tagline {
    color: var(--muted);
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    line-height: 1.45;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.stack {
    display: grid;
    gap: 14px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

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

.full {
    grid-column: 1 / -1;
}

.track,
.status,
.list-row {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
}

.list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.title {
    font-size: 1.1rem;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.92rem;
}

.banner {
    display: none;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 8px;
    padding: 12px;
    color: var(--warning);
    background: rgba(251, 191, 36, 0.12);
    font-weight: 700;
}

.banner.show {
    display: block;
}

.field {
    display: grid;
    gap: 8px;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="range"],
select,
textarea {
    font: inherit;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

input[type="range"] {
    width: 100%;
}

.list {
    display: grid;
    gap: 10px;
}

.icon-button {
    width: 46px;
    padding: 0;
}

.official-player {
    width: 100%;
    height: 316px;
    border: 0;
    border-radius: 8px;
    background: #111827;
}

@media (max-width: 780px) {
    main {
        width: min(100% - 22px, 1040px);
        padding: 20px 0;
    }

    .site-header,
    .hero-grid,
    .layout {
        grid-template-columns: 1fr;
    }

    .site-header {
        display: grid;
    }

    .controls {
        grid-template-columns: 1fr;
    }
}
