:root {
    --bg: #0b0e11;
    --bg-2: #11151a;
    --card: #141920;
    --line: #232a33;
    --text: #e9edf2;
    --muted: #8a94a3;
    --accent: #ffb547;
    --accent-2: #ff8a1f;
    --accent-soft: rgba(255, 154, 40, .12);
    --accent-line: rgba(255, 154, 40, .45);
    --ok: #ffb547;
    --off: #6b7280;
    --radius: 14px;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'Inter', system-ui, sans-serif;
    --ico-signal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='2' fill='black' stroke='none'/%3E%3Cpath d='M8.2 8.2a5.2 5.2 0 0 1 0 7.6M15.8 8.2a5.2 5.2 0 0 0 0 7.6M5.6 5.6a9 9 0 0 1 0 12.8M18.4 5.6a9 9 0 0 0 0 12.8'/%3E%3C/svg%3E");
    --ico-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16.5' cy='9' r='2.2'/%3E%3Cpath d='M3.2 19c.5-3.2 2.8-4.8 5.8-4.8s5.3 1.6 5.8 4.8z'/%3E%3Cpath d='M14.5 14.3c1.7-.2 3.3.7 4.1 2.3.4.8.6 1.6.6 2.4h-2.8'/%3E%3C/svg%3E");
    --ico-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.2 2.2 8 12 13.8 21.8 8 12 2.2zm0 13L3.6 10.2 2.2 11 12 16.8 21.8 11l-1.4-.8L12 15.2zm0 4.2-8.4-4.8L2.2 15.4 12 21.8l9.8-6.4-1.4-.8L12 19.4z'/%3E%3C/svg%3E");
    --ico-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='2' y='9' width='2.2' height='6' rx='1'/%3E%3Crect x='6.4' y='5' width='2.2' height='14' rx='1'/%3E%3Crect x='10.9' y='2' width='2.2' height='20' rx='1'/%3E%3Crect x='15.4' y='6' width='2.2' height='12' rx='1'/%3E%3Crect x='19.8' y='8' width='2.2' height='8' rx='1'/%3E%3C/svg%3E");
    --ico-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 10V8a4 4 0 0 1 8 0v2h1.2A1.8 1.8 0 0 1 19 11.8v7.4a1.8 1.8 0 0 1-1.8 1.8H6.8A1.8 1.8 0 0 1 5 19.2v-7.4A1.8 1.8 0 0 1 6.8 10H8zm2 0h4V8a2 2 0 1 0-4 0v2z'/%3E%3C/svg%3E");
}

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

html {
    background: var(--bg);
    color-scheme: dark;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.sp {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    background: radial-gradient(1200px 600px at 70% -10%, rgba(255, 138, 31, .08), transparent 60%), var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

h1,
h2,
p {
    margin: 0;
}

a {
    color: inherit;
}

::selection {
    background: rgba(255, 181, 71, .35);
}

.sp-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 64px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 14, 17, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sp-nav__inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.sp-logo__mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background:
        radial-gradient(circle at 7px 7px, transparent 4px, var(--accent-2) 4.6px, var(--accent-2) 6px, transparent 6.6px),
        radial-gradient(circle at 21px 7px, transparent 4px, var(--accent-2) 4.6px, var(--accent-2) 6px, transparent 6.6px),
        radial-gradient(circle at 7px 21px, transparent 4px, var(--accent-2) 4.6px, var(--accent-2) 6px, transparent 6.6px),
        radial-gradient(circle at 21px 21px, transparent 4px, var(--accent-2) 4.6px, var(--accent-2) 6px, transparent 6.6px);
}

.sp-logo__tld {
    font-weight: 600;
}

.sp-nav__divider {
    width: 1px;
    height: 22px;
    background: var(--line);
    flex: 0 0 1px;
}

.sp-engine {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.sp-engine__ver {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
}

.sp-nav__links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    line-height: 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sp-nav__link:hover {
    color: var(--text);
}

.sp-nav__link.is-active {
    color: var(--text);
}

.sp-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.sp-pill.is-off {
    border-color: rgba(107, 114, 128, .45);
    background: rgba(107, 114, 128, .12);
    color: var(--off);
}

.sp-pill.is-off .sp-dot--pulse {
    animation: none;
}

.sp-main {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 40px 24px 8px;
    display: grid;
    gap: 28px;
    flex: 1;
}

.sp-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: center;
    min-height: 240px;
}

.sp-hero__copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.sp-eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.sp-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.sp-hero__sub {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    max-width: 46ch;
}

.sp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sp-hero__meta:not(:has(.sp-chip:not([hidden]))) {
    display: none;
}

.sp-hero__wave {
    position: absolute;
    inset: 10% 30% 0 25%;
    opacity: .5;
    filter: blur(1px);
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 0% 100%, rgba(255, 138, 31, 0) 0%, rgba(255, 138, 31, .55) 46%, rgba(255, 138, 31, 0) 72%),
        repeating-radial-gradient(ellipse at 0% 110%, rgba(255, 181, 71, 0) 0 10px, rgba(255, 181, 71, .55) 11px 12px, rgba(255, 181, 71, 0) 13px 22px),
        repeating-radial-gradient(ellipse at 18% 120%, rgba(255, 138, 31, 0) 0 16px, rgba(255, 138, 31, .35) 17px 18px, rgba(255, 138, 31, 0) 19px 32px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 70%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 70%, transparent);
}

.sp-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sp-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 18px 20px;
    background: rgba(20, 25, 32, .88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sp-stat__val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.sp-stat__lbl {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.sp-stat__icon,
.sp-engine__icon,
.sp-panel__title .sp-ico-layers,
.sp-private__icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: var(--ico);
    mask-image: var(--ico);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.sp-stat__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: var(--accent);
}

.sp-engine__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--accent);
    --ico: var(--ico-layers);
}

.sp-panel__title .sp-ico-layers {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--accent);
}

.sp-ico-signal { --ico: var(--ico-signal); }
.sp-ico-users { --ico: var(--ico-users); }
.sp-ico-layers { --ico: var(--ico-layers); }
.sp-ico-wave { --ico: var(--ico-wave); }

.sp-private__icon {
    width: 36px;
    height: 36px;
    color: var(--muted);
    --ico: var(--ico-lock);
}

.sp-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.sp-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

.sp-panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
}

.sp-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sp-table-wrap {
    overflow-x: auto;
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
}

.sp-table th {
    text-align: left;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.sp-table td {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}

.sp-table th.num,
.sp-table td.num {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sp-table th.end,
.sp-table td.end {
    text-align: right;
}

.sp-row:hover td {
    background: rgba(255, 255, 255, .02);
}

.sp-mount {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.sp-np {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sp-np__play {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent-2);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.sp-np__play:hover:not(:disabled) {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.sp-np__play:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.sp-np__play:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.sp-np__play.is-playing::after {
    left: 50%;
    width: 10px;
    height: 10px;
    border: 0;
    border-left: 3px solid #1a1206;
    border-right: 3px solid #1a1206;
    box-sizing: border-box;
}

.sp-np__play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #1a1206;
    transform: translate(-50%, -50%);
}

.sp-np__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-np__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(38ch, 100%);
}

.sp-np__artist {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(38ch, 100%);
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sp-badge.is-off {
    border-color: rgba(107, 114, 128, .4);
    background: rgba(107, 114, 128, .12);
    color: var(--off);
}

.sp-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: currentColor;
}

.sp-dot--pulse {
    animation: spPulse 2s ease-out infinite;
}

.sp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

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

.sp-chip--link:hover {
    color: var(--accent);
    border-color: var(--accent-line);
}

.sp-private {
    text-align: center;
    padding: 96px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sp-private__title {
    margin-top: 16px;
    font-size: 22px;
    font-weight: 700;
}

.sp-foot {
    padding: 32px 24px 40px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.sp-foot a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.sp-foot a:hover {
    color: var(--accent);
}

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

body.is-loading .sp-main > * {
    opacity: 0;
    transform: translateY(8px);
}

.sp-main > * {
    transition: opacity .5s ease, transform .5s ease;
}

.sp-main > *:nth-child(2) {
    transition-delay: 80ms;
}

.sp-main > *:nth-child(3) {
    transition-delay: 160ms;
}

body.no-listeners .col-listeners,
body.no-listeners #statListenersCard {
    display: none;
}

.sp-flash {
    animation: spFlash .8s ease;
}

@keyframes spPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 154, 40, .6);
    }
    100% {
        box-shadow: 0 0 0 8px transparent;
    }
}

@keyframes spFlash {
    0% {
        color: var(--accent);
    }
    100% {
        color: inherit;
    }
}

@media (max-width: 900px) {
    .sp-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sp-hero__wave {
        display: none;
    }

    .sp-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .sp-nav__divider,
    .sp-engine {
        display: none;
    }

    .sp-nav__inner {
        padding: 0 16px;
        gap: 12px;
    }

    .sp-main {
        padding: 28px 16px 8px;
    }

    .sp-panel__head,
    .sp-table th,
    .sp-table td {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sp-table thead {
        display: none;
    }

    .sp-table,
    .sp-table tbody,
    .sp-table tr {
        display: block;
        width: 100%;
    }

    .sp-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        padding: 16px;
        border-top: 1px solid var(--line);
    }

    .sp-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0;
        border: 0;
        text-align: left;
    }

    .sp-table td.num,
    .sp-table td.end {
        text-align: left;
    }

    .sp-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 500;
        color: var(--muted);
    }

    .sp-row td:nth-child(2) {
        grid-column: 1 / -1;
    }

    .sp-np__title,
    .sp-np__artist {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
