:root {
    color-scheme: dark;
    --bg: #05070a;
    --bg-soft: #080b10;
    --surface: #0d1118;
    --surface-2: #141922;
    --surface-3: #1e2430;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #eef1f6;
    --muted: #a7adb8;
    --muted-2: #6f7580;
    --brand: #f6c453;
    --accent: #ef2435;
    --accent-2: #2dd4bf;
    --accent-3: #f6c453;
    --good: #36d399;
    --danger: #ff5c7a;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
    --radius: 8px;
    --header-height: 76px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-soft: #eef2f8;
    --surface: #ffffff;
    --surface-2: #eef3fa;
    --surface-3: #dfe7f1;
    --line: #cfdae8;
    --line-strong: #b8c5d6;
    --text: #111827;
    --muted: #546274;
    --muted-2: #748299;
    --shadow: 0 22px 60px rgba(30, 41, 59, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.1;
}

code {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--accent-2);
    padding: 0.1rem 0.35rem;
}

select,
input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    outline: none;
}

select:focus,
input:focus {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* Search box: apply focus ring to the wrapper, not the input */
.search-box:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}

.search-box input:focus,
.search-box input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--bg-soft);
    border-radius: 999px;
    background: var(--line-strong);
}

.app-shell {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.page {
    display: none;
    width: min(100% - 32px, 1320px);
    margin: 0 auto;
    padding: 28px 0 80px;
}

.page.is-active {
    display: block;
    animation: pageIn 240ms ease-out;
}

.page-head {
    display: grid;
    gap: 6px;
    margin: 20px 0 22px;
}

.page-head h1,
.hero h1,
.player-meta h1,
.text-page h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 12px;
}

.section-heading.compact h2 {
    font-size: 18px;
}

.eyebrow {
    display: block;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.is-hidden {
    display: none !important;
}

.shimmer {
    background: linear-gradient(110deg, var(--surface), var(--surface-3), var(--surface));
    background-size: 240% 100%;
    animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -240%;
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
