@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/ibm-plex-mono-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    --paper: #f2eee3;
    --sheet: #faf8f2;
    --shade: #e9e3d4;
    --shade-2: #ded6c3;
    --ink: #15130e;
    --graphite: #5c5547;
    --rule: #d6cfbe;
    --rule-strong: #b6ad97;
    --marker: #ffcf33;
    --marker-soft: #fbe7a6;
    --on-marker: #15130e;
    --rec: #e0412b;
    --rec-text: #b3311d;
    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    --bg: var(--paper);
    --surface: var(--sheet);
    --surface-2: var(--shade);
    --surface-3: var(--shade-2);
    --border: var(--rule);
    --border-strong: var(--rule-strong);
    --text: var(--ink);
    --muted: var(--graphite);
    --accent: var(--rec);
    --accent-2: var(--rec-text);
    --accent-text: var(--rec-text);
    --accent-ink: var(--on-marker);
    --gradient: var(--marker);
    --live: var(--rec);
    --shadow: 0 14px 34px -20px rgb(21 19 14 / .5);
    --radius-sm: 3px;
    --radius: 4px;
    --radius-lg: 6px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: #1a1813;
        --sheet: #23201a;
        --shade: #2c2820;
        --shade-2: #38332a;
        --ink: #f2eee3;
        --graphite: #aaa28f;
        --rule: #3a352b;
        --rule-strong: #5a5243;
        --marker-soft: #4a3d17;
        --rec: #ff5b44;
        --rec-text: #ff8a73;
        --shadow: 0 16px 38px -18px rgb(0 0 0 / .75);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #1a1813;
    --sheet: #23201a;
    --shade: #2c2820;
    --shade-2: #38332a;
    --ink: #f2eee3;
    --graphite: #aaa28f;
    --rule: #3a352b;
    --rule-strong: #5a5243;
    --marker-soft: #4a3d17;
    --rec: #ff5b44;
    --rec-text: #ff8a73;
    --shadow: 0 16px 38px -18px rgb(0 0 0 / .75);
}

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

html {
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

.sprite {
    display: none;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.3rem;
    font-weight: 800;
    font-stretch: 78%;
    letter-spacing: -.01em;
    text-decoration: none;
}

.logo {
    width: 34px;
    height: 26px;
    color: var(--ink);
}

.logo .rec {
    fill: var(--rec);
    animation: rec 2.4s steps(1) infinite;
}

@keyframes rec {
    50% {
        opacity: .25;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    color: var(--graphite);
    font-size: .925rem;
    font-weight: 650;
    text-decoration: none;
    transition: color .15s, background .15s;
}

.nav-divider {
    flex: none;
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: var(--rule-strong);
}

.nav a:hover {
    color: var(--ink);
    background: var(--shade);
}

.nav a[aria-current="page"] {
    background: var(--marker);
    color: var(--on-marker);
}

.icon.hot {
    color: var(--rec);
}

.tabs a[aria-current="page"] .icon.hot, .nav a[aria-current="page"] .icon.hot, .segmented [aria-pressed="true"] .icon.hot, .segmented [aria-current="page"] .icon.hot {
    color: #b3311d;
}

.icon.hot .spark {
    stroke: var(--marker);
    stroke-dasharray: 22 128;
    stroke-dashoffset: 22;
    animation: spark 3.2s cubic-bezier(.45, 0, .25, 1) infinite;
}

.nav a[aria-current="page"] .icon.hot .spark, .tabs a[aria-current="page"] .icon.hot .spark, .segmented [aria-pressed="true"] .icon.hot .spark, .segmented [aria-current="page"] .icon.hot .spark {
    stroke: #fff;
}

@keyframes spark {
    55%, 100% {
        stroke-dashoffset: -106;
    }
}

main {
    flex: 1;
    padding-bottom: 72px;
}

.mono, .badge, .viewers, .count, .movement, .menu-count, .time {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    box-shadow: inset 0 -2px 0 rgb(21 19 14 / .22);
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}

.button:hover {
    background: #ffd84f;
}

.button:active {
    box-shadow: inset 0 2px 0 rgb(21 19 14 / .22);
}

.button.ghost {
    padding: 9px 15px;
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--rule-strong);
    font-weight: 650;
}

.button.ghost:hover {
    background: var(--shade);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 620px;
    padding: 5px 5px 5px 16px;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    transition: box-shadow .15s;
}

.suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: -2px;
    right: -2px;
    z-index: 30;
    display: grid;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    animation: pop .12s ease-out;
}

.suggest li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 2px;
    cursor: pointer;
}

.suggest li:hover, .suggest li[aria-selected="true"] {
    background: var(--marker);
    color: var(--on-marker);
}

.suggest img {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.suggest span {
    display: grid;
    min-width: 0;
}

.suggest strong {
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest small {
    overflow: hidden;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest small.live {
    color: var(--rec-text);
}

.suggest li:hover small, .suggest li[aria-selected="true"] small {
    color: var(--on-marker);
}

.matches {
    margin-top: 4px;
}

.search:focus-within {
    box-shadow: 0 0 0 4px var(--marker);
}

.search > .icon {
    color: var(--graphite);
    font-size: 1.15rem;
}

.search input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
}

.search input::placeholder {
    color: var(--graphite);
}

.search.small {
    max-width: 380px;
    padding-left: 14px;
    border-width: 1px;
    border-color: var(--rule-strong);
}

.search.small:focus-within {
    border-color: var(--ink);
}

.search.small input {
    padding: 7px 4px;
    font-size: .95rem;
}

.search.small .button {
    padding: 7px 16px;
}

.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 640px;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--marker);
    color: var(--ink);
    text-align: left;
}

.notice .icon {
    color: var(--ink);
    font-size: 1.15rem;
}

.dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rec);
    animation: rec 1.6s steps(1) infinite;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.hero {
    display: grid;
    gap: 22px;
    max-width: 820px;
    padding: 64px 0 8px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--ink);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7.5vw, 5.2rem);
    font-weight: 850;
    font-stretch: 72%;
    line-height: .95;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.marked {
    display: inline-block;
    transform: rotate(-2deg);
    white-space: nowrap;
    padding: .04em .06em .14em;
    background: var(--marker);
    color: var(--on-marker);
}

.marked::before, .marked::after {
    color: var(--rec);
    font-weight: 500;
}

.marked::before {
    content: "[";
    margin-right: .04em;
}

.marked::after {
    content: "]";
    margin-left: .04em;
}

.hero p {
    max-width: 34rem;
    margin: 0;
    color: var(--graphite);
    font-size: 1.15rem;
}

.hero .search {
    margin: 6px 0 0;
}

.hero .notice {
    margin: 0;
}

.section {
    margin-top: 64px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.1;
    letter-spacing: -.005em;
}

.section-head h2 .icon {
    color: var(--rec);
}

.section-sub {
    margin: 4px 0 0;
    color: var(--graphite);
    font-size: .9rem;
}

.segmented {
    display: flex;
    gap: 0;
    max-width: 100%;
    padding: 0;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    scrollbar-width: none;
}

.segmented button, .segmented a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--graphite);
    font: inherit;
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s;
}

.segmented > :not(:first-child) {
    box-shadow: inset 1px 0 0 var(--rule);
}

.segmented button:hover, .segmented a:hover {
    color: var(--ink);
    background: var(--shade);
}

.segmented button[aria-pressed="true"], .segmented a[aria-current="page"] {
    background: var(--marker);
    color: var(--on-marker);
}

[data-paged]:not(.ready) > :nth-child(n + 13) {
    display: none;
}

.tiles[data-paged] .tile {
    animation-delay: 0s;
}

.more-row {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 4px;
    white-space: nowrap;
    transition: text-decoration-color .15s;
}

.see-all:hover {
    text-decoration-color: var(--rec);
}

.page-head {
    padding: 44px 0 28px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 850;
    font-stretch: 72%;
    line-height: 1;
    letter-spacing: -.005em;
}

.page-head p {
    max-width: 44rem;
    margin: 0;
    color: var(--graphite);
    font-size: 1.05rem;
}

.page-head .search {
    margin-top: 24px;
}

.tabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: calc(100% + 8px);
    margin: 22px 0 0 -8px;
    padding: 7px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--graphite);
    font-size: .925rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, background .15s;
}

.tabs a:hover {
    color: var(--ink);
    background: var(--shade);
}

.tabs a[aria-current="page"] {
    background: var(--marker);
    color: var(--on-marker);
}

.tabs a[aria-current="page"]::before, .tabs a[aria-current="page"]::after, .custom-range > summary[aria-current="page"]::before, .custom-range > summary[aria-current="page"]::after {
    content: "";
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 7px;
    border: 2px solid var(--ink);
    pointer-events: none;
}

.tabs a[aria-current="page"]::before, .custom-range > summary[aria-current="page"]::before {
    left: -5px;
    border-right: 0;
}

.tabs a[aria-current="page"]::after, .custom-range > summary[aria-current="page"]::after {
    right: -5px;
    border-left: 0;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile {
    min-width: 0;
    animation: rise .35s ease-out backwards;
    animation-delay: calc(min(var(--i), 12) * 30ms);
}

.thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--shade);
    cursor: pointer;
}

.thumb:focus-visible {
    outline: 3px solid var(--marker);
    outline-offset: 2px;
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / .45), transparent 38%);
    pointer-events: none;
}

.thumb .play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    opacity: 0;
    background:
        linear-gradient(var(--marker), var(--marker)) left 10px top 10px / 4px calc(100% - 20px) no-repeat,
        linear-gradient(var(--marker), var(--marker)) left 10px top 10px / 16px 4px no-repeat,
        linear-gradient(var(--marker), var(--marker)) left 10px bottom 10px / 16px 4px no-repeat,
        linear-gradient(var(--marker), var(--marker)) right 10px top 10px / 4px calc(100% - 20px) no-repeat,
        linear-gradient(var(--marker), var(--marker)) right 10px top 10px / 16px 4px no-repeat,
        linear-gradient(var(--marker), var(--marker)) right 10px bottom 10px / 16px 4px no-repeat,
        rgb(0 0 0 / .18);
    transition: opacity .15s;
}

.thumb .play .icon {
    width: 46px;
    height: 46px;
    padding: 13px 11px 13px 15px;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
}

.thumb:hover .play, .thumb:focus-visible .play {
    opacity: 1;
}

.badge {
    position: absolute;
    z-index: 1;
    padding: 2px 7px;
    border-radius: 2px;
    background: rgb(21 19 14 / .82);
    color: #f2eee3;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.45;
}

.badge.rank {
    top: 8px;
    left: 8px;
}

.badge.rank.top {
    background: var(--marker);
    color: var(--on-marker);
}

.badge.duration {
    right: 8px;
    bottom: 8px;
}

.badge.velocity {
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--rec);
    color: #fff;
}

.badge.growth {
    left: 8px;
    bottom: 8px;
    background: var(--marker);
    color: var(--on-marker);
    font-weight: 700;
}

.badge.velocity.optional {
    display: none;
}

.tiles.trending .badge.velocity.optional {
    display: inline-flex;
}

.tile-body {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.tile-body.plain {
    grid-template-columns: minmax(0, 1fr);
}

.tile-avatar img {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.tile-title {
    display: -webkit-box;
    margin: 0 0 3px;
    overflow: hidden;
    font-size: .975rem;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tile-channel {
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}

.tile-channel:hover {
    text-decoration-color: var(--rec);
}

.tile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    margin: 2px 0 0;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

.tile-meta > span + span::before {
    content: "/";
    margin-right: 6px;
    color: var(--rule-strong);
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 32px 0 28px;
}

.profile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}

.ring {
    flex: none;
    padding: 0;
    border-radius: 50%;
    background: none;
}

.ring img {
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.profile .label {
    display: block;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 850;
    font-stretch: 72%;
    line-height: 1.05;
}

.channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .8rem;
    text-decoration: none;
    transition: color .15s;
}

.channel:hover {
    color: var(--ink);
}

.channel-switch {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 28px;
}

.channel-switch + .results-head {
    padding-top: 24px;
}

.channel-switch .menu {
    position: static;
}

.channel-switch-label {
    margin-right: 4px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.streamer-chip.add-chip {
    padding-left: 12px;
    border-style: dashed;
}

.add-chip .icon {
    color: var(--ink);
}

.add-channel {
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    padding: 14px;
}

.add-channel label {
    font-size: .875rem;
    font-weight: 600;
}

.add-channel .hint {
    margin: 0;
}

.results-head + .tabs {
    margin-top: 20px;
    margin-bottom: 26px;
}

.spacer {
    height: 24px;
}

.theater {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.stage {
    scroll-margin-top: 84px;
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-poster {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.player-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 2px solid var(--on-marker);
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font-size: 2rem;
    transform: translate(-50%, -50%);
    transition: transform .15s ease;
}

.player-poster:hover .play-mark {
    transform: translate(-50%, -50%) rotate(-2deg);
}

.player-poster:active .play-mark {
    transform: translate(-50%, -50%) rotate(2deg);
}

.stage .player {
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 2px var(--ink);
}

.stage-info {
    padding: 18px 0 0;
}

.stage-info h2 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--graphite);
    font-size: .85rem;
}

.chip strong {
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.playlist {
    border-top: 2px solid var(--ink);
}

.playlist-head {
    margin: 0;
    padding: 10px 0;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rule);
}

.playlist ol {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.playlist li {
    border-bottom: 1px solid var(--rule);
}

.playlist-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 8px 10px 10px;
    border: 0;
    border-left: 4px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.playlist-item:hover {
    background: var(--shade);
}

.playlist-item[aria-current="true"] {
    background: var(--marker-soft);
    border-left-color: var(--marker);
}

.playlist-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: var(--shade-2);
}

.playlist-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-thumb .badge {
    padding: 0 5px;
    font-size: .68rem;
}

.playlist-thumb .badge.rank {
    top: 4px;
    left: 4px;
}

.playlist-thumb .badge.duration {
    right: 4px;
    bottom: 4px;
}

.playlist-item[aria-current="true"] .badge.rank {
    background: var(--marker);
    color: var(--on-marker);
}

.playlist-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.playlist-meta {
    display: block;
    margin-top: 4px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
}

.live-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.live-row > li {
    border-bottom: 1px solid var(--rule);
}

.live-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    text-decoration: none;
    transition: background .15s;
}

.live-chip:hover {
    background: var(--shade);
}

.live-chip img {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--rec);
}

.live-text {
    flex: 1;
    min-width: 0;
}

.live-text strong, .live-text span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-text strong {
    font-size: .95rem;
}

.live-text span {
    color: var(--graphite);
    font-size: .8rem;
}

.viewers {
    color: var(--rec-text);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.streamers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.streamer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding: 22px 12px 16px;
    text-align: center;
    text-decoration: none;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    transition: border-color .15s, background .15s;
    animation: rise .35s ease-out backwards;
    animation-delay: calc(min(var(--i), 16) * 25ms);
}

.streamer-card:hover {
    border-color: var(--ink);
}

.avatar {
    position: relative;
    margin-bottom: 12px;
}

.avatar img {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--rule-strong);
}

.streamer-card.live .avatar img {
    box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--rec);
}

.live-badge {
    position: absolute;
    left: 50%;
    bottom: -8px;
    padding: 0 6px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--rec);
    color: #fff;
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.streamer-card .name {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.streamer-card .status {
    max-width: 100%;
    overflow: hidden;
    color: var(--graphite);
    font-size: .825rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-dialog {
    --dialog-width: min(920px, calc(100vw - 32px), calc((100vh - 140px) * 16 / 9));
    width: var(--dialog-width);
    max-width: none;
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.player-dialog::backdrop, .sheet::backdrop {
    background: rgb(21 19 14 / .72);
}

.dialog-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 2px solid var(--ink);
}

.dialog-count {
    flex: none;
    color: var(--graphite);
    font-size: .8rem;
}

.dialog-count:empty {
    display: none;
}

.dialog-nav {
    position: absolute;
    top: calc(var(--dialog-width) * 9 / 32);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--sheet);
    color: var(--ink);
    font-size: 1.4rem;
    margin-top: -22px;
    cursor: pointer;
    transition: background .15s;
}

.dialog-nav:hover {
    background: var(--marker);
    color: var(--on-marker);
}

.dialog-nav.prev {
    left: 10px;
}

.dialog-nav.next {
    right: 10px;
}

.dialog-nav.prev .icon {
    transform: rotate(90deg);
}

.dialog-nav.next .icon {
    transform: rotate(-90deg);
}

@media (min-width: 1100px) {
    .dialog-nav {
        position: fixed;
        top: 50%;
        width: 52px;
        height: 52px;
        margin-top: -26px;
    }

    .dialog-nav.prev {
        left: calc(50vw - var(--dialog-width) / 2 - 76px);
    }

    .dialog-nav.next {
        right: calc(50vw - var(--dialog-width) / 2 - 76px);
    }
}

.dialog-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--rule-strong);
    color: var(--ink);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.close:hover {
    background: var(--shade);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.site-footer {
    padding: 22px 0 30px;
    border-top: 2px solid var(--ink);
    color: var(--graphite);
    font-size: .825rem;
}

.site-footer a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.site-footer a:hover {
    text-decoration-color: var(--rec);
}

.guide-head .eyebrow {
    margin-bottom: 16px;
}

.guide-head .eyebrow .icon {
    color: var(--rec);
}

.guide-clip {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 14px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.guide-clip img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
}

.guide-clip .label {
    color: var(--rec-text);
}

.guide-clip h2 {
    margin: 4px 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 78%;
    overflow-wrap: anywhere;
}

.guide-clip p {
    margin: 0;
    color: var(--graphite);
    font-size: .9rem;
}

.guide-clip-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.guide-notice {
    max-width: none;
}

.paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 8px;
}

.path {
    display: flex;
    flex-direction: column;
    padding-top: 18px;
    border-top: 2px solid var(--ink);
}

.path-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.path-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.path-head h2 {
    margin: 0 0 2px;
    font-size: 1.5rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.1;
}

.path-head p {
    margin: 0;
    color: var(--graphite);
    font-size: .9rem;
}

.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    counter-increment: step;
}

.step-text {
    display: grid;
    gap: 4px;
    font-size: .9rem;
}

.step-text strong {
    font-size: 1rem;
}

.step-text strong::before {
    content: counter(step, decimal-leading-zero) "  ";
    color: var(--rec-text);
    font-family: var(--mono);
    font-size: .85rem;
}

.step-text span {
    color: var(--graphite);
}

.step-text a {
    color: var(--ink);
    font-weight: 650;
    text-decoration-color: var(--rec);
    text-underline-offset: 3px;
}

.path-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: auto 0 0;
    padding-top: 20px;
    color: var(--graphite);
    font-size: .85rem;
}

.path-tip .icon {
    flex: none;
    margin-top: 2px;
    color: var(--ink);
}

.mock {
    position: relative;
    display: grid;
    place-items: center;
    height: 112px;
    padding: 12px;
    overflow: hidden;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
}

.mock-screen {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: repeating-linear-gradient(135deg, #2a2620 0 10px, #24211b 10px 20px);
}

.mock-play {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding-left: 2px;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font-size: .8rem;
}

.mock-caption {
    position: absolute;
    left: 10px;
    bottom: 8px;
    width: 45%;
    height: 6px;
    border-radius: 1px;
    background: rgb(242 238 227 / .4);
}

.mock-live {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 6px;
    border-radius: 2px;
    background: var(--rec);
    color: #fff;
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.mock-bar {
    display: flex;
    gap: 6px;
}

.mock-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background: var(--shade);
    color: var(--graphite);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.mock-chip.small {
    padding: 3px 8px;
    font-size: .68rem;
}

.mock-chip.hot {
    background: var(--marker);
    color: var(--on-marker);
    box-shadow: 0 0 0 2px var(--ink);
}

.mock-corner {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.mock-cursor {
    position: absolute;
    right: -10px;
    bottom: -14px;
    width: 20px;
    height: 20px;
    fill: #fff;
    stroke: #000;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.mock-menu {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 5px;
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
}

.mock-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 2px;
    color: var(--graphite);
    font-size: .66rem;
    font-weight: 600;
}

.mock-item.hot {
    background: var(--marker);
    color: var(--on-marker);
}

.mock-options {
    display: flex;
    gap: 6px;
    padding: 4px 8px 2px;
}

.mock-creator {
    display: grid;
    justify-items: end;
    gap: 12px;
    width: 100%;
}

.mock-track {
    position: relative;
    width: 100%;
    height: 26px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--shade-2) 0 26px, var(--rule-strong) 26px 28px);
}

.mock-selection {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 28%;
    width: 40%;
    border: 3px solid var(--marker);
    border-top-width: 0;
    border-bottom-width: 0;
    background: rgb(255 207 51 / .25);
}

.mock-list {
    display: grid;
    gap: 6px;
    width: 100%;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px;
    border-radius: 2px;
}

.mock-row.hot {
    background: var(--marker-soft);
}

.mock-thumb {
    flex: none;
    width: 38px;
    height: 20px;
    border-radius: 2px;
    background: repeating-linear-gradient(135deg, #2a2620 0 6px, #24211b 6px 12px);
}

.mock-lines {
    flex: 1;
    height: 6px;
    border-radius: 1px;
    background: var(--shade-2);
}

.mock-row .mock-chip {
    padding: 3px 6px;
}

.guide-faq {
    margin-top: 56px;
}

.faq-title {
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
    font-size: 1.6rem;
    font-weight: 800;
    font-stretch: 78%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
}

.faq {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.faq h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 750;
}

.faq p {
    margin: 0;
    color: var(--graphite);
    font-size: .9rem;
}

@media (max-width: 960px) {
    .paths, .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-clip {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .guide-clip-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .step {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .guide-clip {
        grid-template-columns: minmax(0, 1fr);
    }
}

.header-end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.button.small {
    padding: 7px 13px;
    font-size: .875rem;
}

.menu {
    position: relative;
}

.menu > summary {
    list-style: none;
    cursor: pointer;
}

.menu > summary::-webkit-details-marker {
    display: none;
}

.menu .chevron {
    font-size: .85em;
    opacity: .7;
    transition: transform .15s;
}

.menu[open] .chevron {
    transform: rotate(180deg);
}

.menu[open] > summary.button.ghost {
    background: var(--shade);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    display: grid;
    gap: 0;
    min-width: 220px;
    padding: 4px;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    animation: pop .12s ease-out;
}

.menu-panel.end {
    left: auto;
    right: 0;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.menu-panel form {
    margin: 0;
}

.menu-panel > a, .menu-panel > form > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.menu-panel > a:hover, .menu-panel > form > button:hover {
    background: var(--shade);
}

.menu-panel > a[aria-current="true"] {
    background: var(--marker);
    color: var(--on-marker);
}

.menu-panel > form > button:disabled {
    color: var(--graphite);
    cursor: default;
    background: transparent;
}

.menu-panel > a .icon, .menu-panel > form > button .icon {
    color: var(--graphite);
}

.menu-panel > a[aria-current="true"] .icon {
    color: var(--on-marker);
}

.menu-panel .icon.hot {
    color: var(--rec);
}

.menu-count {
    margin-left: auto;
    color: var(--graphite);
    font-size: .78rem;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    margin: 4px 6px;
    border: 0;
    background: var(--rule);
}

.avatar-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 3px;
    border-radius: var(--radius-sm);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--rule-strong);
    color: var(--graphite);
    transition: color .15s, box-shadow .15s, background .15s;
}

.avatar-button img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 2px;
}

.avatar-button:hover, .menu[open] > .avatar-button {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.avatar-button.active {
    background: var(--marker);
    box-shadow: none;
    color: var(--on-marker);
}

.account-menu .menu-panel {
    min-width: 240px;
}

.menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 6px;
}

.menu-user img {
    width: 36px;
    height: 36px;
    border-radius: 2px;
}

.menu-user span {
    display: grid;
    min-width: 0;
}

.menu-user strong {
    font-size: .95rem;
}

.menu-user small {
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .75rem;
}

.stage-actions, .head-actions, .export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.library {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--ink);
}

.saved {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.saved-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
    background: var(--shade);
}

.saved-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.saved-meta {
    margin: 0;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .78rem;
}

.saved-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.saved-actions form {
    margin: 0;
}

.exports {
    display: grid;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.exports li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 7px 0;
    border-top: 1px dashed var(--rule);
    font-size: .875rem;
}

.exports a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.exports a:hover {
    text-decoration-color: var(--rec);
}

.exports span {
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .76rem;
    white-space: nowrap;
}

.export-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-button {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.preset-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.preset-row .button {
    flex: none;
    min-width: 76px;
    padding-block: 0;
}

.preset-row .close {
    width: auto;
    height: auto;
    aspect-ratio: 1;
}

.preset-row .close:disabled, .preset-row .button:disabled {
    opacity: .45;
    cursor: default;
}

.preset-save {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.preset-row .select, .preset-row .text-input {
    flex: 1;
    min-width: 0;
}

.can-share .share-button {
    display: inline-flex;
}

.share-button span {
    color: inherit;
    font-family: var(--font);
    font-size: .8rem;
    white-space: nowrap;
}

.share-button:disabled {
    opacity: .7;
    cursor: progress;
}

.danger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    color: var(--graphite);
    font-size: .85rem;
}

.danger button {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--rec);
    border-radius: var(--radius-sm);
    color: var(--rec-text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.danger button:hover {
    background: var(--rec);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.portfolio-new, .portfolio-card {
    padding: 20px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
}

.portfolio-new {
    display: grid;
    gap: 4px;
    grid-row: span 2;
    align-content: start;
    border: 2px solid var(--ink);
}

.portfolio-new h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 800;
    font-stretch: 78%;
}

.portfolio-new h2 .icon {
    color: var(--rec);
}

.portfolio-new .button {
    justify-self: start;
    margin-top: 14px;
}

textarea.text-input {
    resize: vertical;
    min-height: 84px;
    line-height: 1.45;
}

.portfolio-card {
    display: grid;
    gap: 6px;
    align-content: start;
    text-decoration: none;
    transition: border-color .15s;
}

.portfolio-card:hover {
    border-color: var(--ink);
}

.portfolio-card strong {
    margin-top: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 78%;
    overflow-wrap: anywhere;
}

.portfolio-meta {
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .76rem;
}

.avatar-stack {
    display: flex;
    min-height: 40px;
}

.avatar-stack img, .avatar-more {
    width: 40px;
    height: 40px;
    margin-left: -10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--sheet);
}

.avatar-stack > :first-child {
    margin-left: 0;
}

.avatar-more {
    display: grid;
    place-items: center;
    background: var(--shade-2);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
}

.back-link {
    margin-bottom: 10px;
}

.icon.flip {
    transform: scaleX(-1);
}

.streamer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.streamer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px 4px 4px;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.streamer-chip:first-child {
    padding-left: 11px;
}

.streamer-chip img {
    width: 22px;
    height: 22px;
    border-radius: 2px;
}

.streamer-chip:hover {
    border-color: var(--ink);
}

.streamer-chip.active {
    background: var(--marker);
    border-color: var(--marker);
    color: var(--on-marker);
}

.title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-head .title-row h1 {
    margin: 0;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 14px;
    max-width: 520px;
    padding: 22px 24px;
    background: var(--sheet);
    border: 1px dashed var(--ink);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.empty-state p {
    margin: 0;
}

.sheet {
    width: min(540px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 48px);
    padding: 0;
    color: var(--ink);
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.sheet-body {
    display: grid;
    gap: 20px;
    padding: 16px 20px 20px;
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}

.sheet-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    font-stretch: 78%;
}

.sheet-section {
    display: grid;
    gap: 8px;
    margin: 0;
}

.sheet-section h3, .filter-panel h3 {
    margin: 0;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheet-section .button {
    justify-self: start;
}

.sheet .danger {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.manage-list {
    display: grid;
    max-height: 220px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.manage-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--rule);
    font-size: .9rem;
}

.manage-list img {
    width: 28px;
    height: 28px;
    border-radius: 2px;
}

.manage-list a {
    overflow: hidden;
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-list form {
    margin: 0;
}

.close.small-close {
    width: 28px;
    height: 28px;
    font-size: .85rem;
}

.inline-form {
    display: flex;
    gap: 8px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbar .tabs {
    margin: 0 0 0 -8px;
}

.page-head .toolbar {
    margin-top: 20px;
}

.ranking {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--ink);
}

.rank-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 20px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--rule);
    animation: rise .35s ease-out backwards;
    animation-delay: calc(min(var(--i), 14) * 20ms);
    transition: background .15s;
}

.rank-row:hover {
    background: var(--sheet);
}

.rank-row.empty {
    opacity: .55;
}

.rank-pos {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 32px;
    padding: 0 6px;
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rank-pos.top {
    background: var(--marker);
    color: var(--on-marker);
}

.rank-streamer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.rank-streamer img {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.rank-streamer > span {
    min-width: 0;
}

.rank-streamer strong {
    display: block;
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}

.rank-streamer:hover strong {
    text-decoration-color: var(--rec);
}

.rank-streamer small {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .74rem;
}

.rank-streamer small span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-views p {
    margin: 0;
    color: var(--graphite);
    font-size: .82rem;
    white-space: nowrap;
}

.rank-views strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rank-views .rank-none {
    white-space: normal;
}

.rank-bar {
    display: block;
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    background: var(--shade);
}

.rank-bar span {
    display: block;
    height: 100%;
    background: var(--ink);
}

.rank-row:nth-child(-n + 3) .rank-bar span {
    background: var(--marker);
}

.rank-clip {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.rank-clip-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
    background: var(--shade);
}

.rank-clip-thumb img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-clip-thumb .icon {
    grid-area: 1 / 1;
    width: 28px;
    height: 28px;
    padding: 7px 6px 7px 8px;
    border-radius: 2px;
    background: var(--marker);
    color: var(--on-marker);
    opacity: 0;
    transition: opacity .15s;
}

.rank-clip:hover .rank-clip-thumb .icon, .rank-clip:focus-visible .rank-clip-thumb .icon {
    opacity: 1;
}

.rank-clip-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-clip:hover .rank-clip-title {
    text-decoration: underline;
    text-decoration-color: var(--rec);
    text-underline-offset: 3px;
}

.rank-clip-meta {
    display: block;
    margin-top: 2px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
}

@media (max-width: 820px) {
    .rank-row {
        grid-template-columns: 48px minmax(0, 1fr) minmax(0, auto);
        gap: 10px 12px;
    }

    .rank-views {
        text-align: right;
    }

    .rank-views p span {
        display: none;
    }

    .rank-bar {
        width: 96px;
        margin-left: auto;
    }

    .rank-clip {
        grid-column: 2 / -1;
        grid-template-columns: 84px minmax(0, 1fr);
    }
}

.toolbar-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
}

.toolbar-actions .segmented {
    max-width: 100%;
}

.toolbar-actions .menu {
    position: static;
}

.toolbar-actions .button.small {
    padding: 8px 14px;
}

.count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--paper);
    font-size: .7rem;
    font-weight: 600;
}

.filter-panel {
    gap: 16px;
    width: min(340px, calc(100vw - 32px));
    padding: 14px;
}

.filter-panel section {
    display: grid;
    gap: 8px;
}

.option-list {
    display: grid;
    max-height: 232px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.option-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 8px;
    border-bottom: 1px solid var(--rule);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.option-list a:hover {
    background: var(--shade);
}

.option-list span, .option-chips span {
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.option-list a[aria-current="true"] {
    background: var(--marker);
    color: var(--on-marker);
}

.option-list a[aria-current="true"] span {
    color: var(--on-marker);
}

.option-empty {
    margin: 0;
    padding: 6px 8px;
    color: var(--graphite);
    font-size: .85rem;
}

.option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-chips a, .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.option-chips a:hover, .filter-chip:hover {
    border-color: var(--ink);
}

.option-chips a[aria-current="true"] {
    background: var(--marker);
    border-color: var(--marker);
    color: var(--on-marker);
}

.option-chips a[aria-current="true"] span {
    color: var(--on-marker);
}

.results-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 26px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}

.results-line h2 {
    margin: 0;
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 600;
}

.results-line .section-sub {
    margin: 0;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.filter-chip {
    background: var(--marker);
    border-color: var(--marker);
    color: var(--on-marker);
}

.filter-chip .icon {
    color: var(--on-marker);
}

.profile .add-to {
    align-self: flex-start;
}

.add-to .menu-panel .icon {
    color: var(--ink);
}

.loading {
    display: grid;
    gap: 12px;
    max-width: 460px;
    padding: 20px 0;
    border-top: 2px solid var(--ink);
}

[data-save][aria-pressed="true"] {
    background: var(--marker);
    color: var(--on-marker);
    box-shadow: none;
}

[data-save][aria-pressed="true"] .icon {
    fill: currentColor;
}

.shared-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 2px;
    background: var(--marker);
    color: var(--on-marker);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
}

.top-badge:hover {
    box-shadow: 0 0 0 2px var(--ink);
}

.profile > div {
    display: grid;
    justify-items: start;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0 0 30px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--rule);
}

.stat {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
    padding: 12px 16px 12px 0;
}

.stat + .stat {
    padding-left: 16px;
    border-left: 1px solid var(--rule);
}

.stat-label {
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat strong {
    font-family: var(--mono);
    font-size: 1.45rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stat .stat-text {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stat small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--graphite);
    font-size: .78rem;
}

.stat-chart {
    grid-column: span 2;
}

.sparkline {
    width: 100%;
    height: 38px;
    margin: 4px 0 2px;
    overflow: visible;
}

.sparkline polyline {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sparkline polygon {
    fill: var(--marker);
    opacity: .55;
}

.movement {
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.movement.up {
    color: #2f7d32;
}

.movement.down {
    color: var(--rec-text);
}

.movement.new {
    padding: 0 4px;
    border-radius: 2px;
    background: var(--marker);
    color: var(--on-marker);
}

.movement.same {
    color: var(--graphite);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .movement.up {
        color: #8fd18f;
    }
}

:root[data-theme="dark"] .movement.up {
    color: #8fd18f;
}

.rising-note {
    margin: 0 0 16px;
}

.rank-place {
    display: grid;
    justify-items: center;
    gap: 3px;
}

.browse-switch {
    width: fit-content;
    margin-top: 22px;
}

.browse-switch + .search {
    margin-top: 16px;
}

.search-section + .search-section {
    margin-top: 48px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-grid > li {
    min-width: 0;
    animation: rise .35s ease-out backwards;
    animation-delay: calc(min(var(--i), 16) * 25ms);
}

.game-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
}

.game-art {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 2px;
    background: var(--shade);
}

.game-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-art::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0 var(--marker);
    transition: box-shadow .15s;
}

.game-card:hover .game-art::after, .game-card:focus-visible .game-art::after {
    box-shadow: inset 0 0 0 4px var(--marker);
}

.game-card .viewers {
    margin-top: -6px;
}

.game-card strong {
    overflow: hidden;
    font-size: .925rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.game-title img {
    flex: none;
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--ink);
}

.page-head.game-head h1 {
    margin: 0;
}

.game-menu summary span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-page {
    display: grid;
    gap: 6px;
    max-width: 640px;
    padding: 80px 0 40px;
}

.error-code {
    width: fit-content;
    padding: 0 .12em;
    background: var(--marker);
    color: var(--on-marker);
    font-family: var(--mono);
    font-size: clamp(4rem, 13vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.error-code::before {
    content: "[";
    color: var(--rec);
}

.error-code::after {
    content: "]";
    color: var(--rec);
}

.error-page h1 {
    margin: 18px 0 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 850;
    font-stretch: 72%;
    line-height: 1;
}

.error-page p {
    margin: 0 0 22px;
    color: var(--graphite);
}

.page-head.centered {
    text-align: center;
}

.page-head.centered p {
    margin: 0 auto;
}

.upload {
    display: grid;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.upload .upload-facts {
    justify-self: center;
}

.upload-progress {
    max-width: none;
}

.upload .notice {
    max-width: none;
    margin: 0;
}

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 60px 24px;
    background: var(--sheet);
    border: 2px dashed var(--ink);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.dropzone:hover, .dropzone.over {
    background-color: var(--marker-soft);
}

.dropzone.over {
    border-style: solid;
}

.dropzone strong {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    font-stretch: 85%;
}

.dropzone > span:not(.dropzone-icon) {
    color: var(--graphite);
    font-size: .9rem;
}

.dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dropzone-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    font-size: 1.5rem;
}

.upload-facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--graphite);
    font-size: .9rem;
}

.upload-facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upload-facts .icon {
    flex: none;
    margin-top: 3px;
    color: var(--ink);
}

.upload-facts a {
    color: var(--ink);
    font-weight: 650;
    text-decoration-color: var(--rec);
    text-underline-offset: 3px;
}

.guide-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 22px;
    background: var(--marker);
    color: var(--on-marker);
    border-radius: var(--radius-sm);
}

.guide-cta .dropzone-icon {
    background: var(--on-marker);
    color: var(--marker);
}

.guide-cta h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 850;
    font-stretch: 78%;
}

.guide-cta p {
    margin: 0;
    color: var(--on-marker);
    font-size: .9rem;
}

.guide-cta .button {
    background: var(--on-marker);
    color: var(--marker);
    box-shadow: none;
}

@media (max-width: 700px) {
    .guide-cta {
        grid-template-columns: minmax(0, 1fr);
    }
}

progress {
    width: 100%;
    height: 8px;
    accent-color: var(--rec);
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
    gap: 32px;
}

.preview {
    position: sticky;
    top: 80px;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
}

.output {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 360px);
    border-radius: 2px;
    background: #000;
}

.transport {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.timeline {
    width: 100%;
    padding: 8px 14px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 2px;
}

.track {
    --start: 0%;
    --end: 100%;
    --playhead: 0%;
    position: relative;
    height: 56px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.filmstrip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: var(--shade-2);
}

.shade {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgb(21 19 14 / .66);
    pointer-events: none;
}

.shade.left {
    left: 0;
    width: var(--start);
}

.shade.right {
    right: 0;
    width: calc(100% - var(--end));
}

.range {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: var(--start);
    width: calc(var(--end) - var(--start));
    border-top: 4px solid var(--marker);
    border-bottom: 4px solid var(--marker);
    pointer-events: none;
}

.handle {
    position: absolute;
    top: -4px;
    bottom: -4px;
    z-index: 1;
    width: 14px;
    background: var(--marker);
    cursor: ew-resize;
}

.handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: var(--on-marker);
}

.handle[data-handle="start"] {
    left: calc(var(--start) - 14px);
    border-radius: 2px 0 0 2px;
}

.handle[data-handle="end"] {
    left: var(--end);
    border-radius: 0 2px 2px 0;
}

.playhead {
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: var(--playhead);
    z-index: 2;
    width: 2px;
    margin-left: -1px;
    background: var(--rec);
    pointer-events: none;
}

.playhead::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    border: 5px solid transparent;
    border-top-color: var(--rec);
}

.trim-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    width: 100%;
    color: var(--graphite);
    font-size: .85rem;
}

.trim-info strong {
    color: var(--ink);
    font-family: var(--mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.link-button {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: var(--rec);
    text-underline-offset: 3px;
    cursor: pointer;
}

.captions {
    margin-top: 16px;
}

.captions summary {
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}

.captions summary span {
    color: var(--graphite);
    font-weight: 500;
}

.caption-list {
    display: grid;
    gap: 6px;
    max-height: 320px;
    margin-top: 10px;
    overflow-y: auto;
}

.add-caption {
    margin-top: 12px;
}

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

.caption-time {
    padding: 6px 8px;
    border: 0;
    border-radius: 2px;
    background: var(--shade);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.caption-time:hover {
    background: var(--marker);
    color: var(--on-marker);
}

.icon-button {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--marker);
    color: var(--on-marker);
    cursor: pointer;
}

.time {
    color: var(--graphite);
    font-size: .82rem;
}

.panel {
    display: grid;
    gap: 6px;
}

.group {
    padding: 14px 0 18px;
    border-top: 2px solid var(--ink);
}

.group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}

.group > summary::-webkit-details-marker {
    display: none;
}

.group > summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 0;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    transition: transform .15s;
}

.group:not([open]) > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.group[open] > summary {
    margin-bottom: 12px;
}

.group:not([open]) {
    padding-bottom: 14px;
}

.group > h2, .group > summary h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.1;
}

.field {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.group > h2 + .field, .group > summary + .field {
    margin-top: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile .label, .game-title .label, .guide-clip .label {
    display: block;
}

.label output {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

.field .segmented {
    width: 100%;
    flex-wrap: wrap;
}

.field .segmented button {
    flex: 1;
    justify-content: center;
}

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

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ink);
}

input[type="color"] {
    width: 48px;
    height: 34px;
    padding: 3px;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.text-input, .select {
    width: 100%;
    padding: 9px 11px;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    color: inherit;
    font: inherit;
    font-size: .9rem;
}

.text-input:focus, .select:focus {
    border-color: var(--ink);
    outline: 3px solid var(--marker);
    outline-offset: 0;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.frame {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    background: #000;
    touch-action: none;
}

.hint {
    margin: 10px 0 0;
    color: var(--graphite);
    font-size: .825rem;
}

.field .hint {
    margin: 0;
}

.detect-status {
    display: block;
    margin-top: 10px;
    color: var(--graphite);
    font-size: .85rem;
}

.export-row {
    margin-top: 16px;
}

.export-progress {
    margin-top: 14px;
}

@media (max-width: 960px) {
    .theater, .workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .preview {
        position: static;
    }

    .output {
        max-height: 70vh;
    }

    .saved {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .saved-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .segmented {
        overflow-x: auto;
    }

    .container {
        padding: 0 16px;
    }

    .nav a span {
        display: none;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 7px;
    }

    .nav-divider {
        margin: 0 3px;
    }

    .header-end {
        gap: 6px;
    }

    .header-end > .button.small {
        padding: 7px 11px;
    }

    .brand {
        gap: 7px;
        font-size: 1.15rem;
    }

    .logo {
        width: 28px;
        height: 22px;
    }

    .hero {
        padding-top: 40px;
    }

    .search .button {
        padding: 10px 14px;
    }

    .results-head .search.small {
        max-width: none;
    }

    .profile h1 {
        font-size: 1.9rem;
    }

    .playlist-item {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

    .stat-chart {
        grid-column: 1 / -1;
    }

    .stat:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .dialog-bar .button {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo .rec, .dot, .tile, .streamer-card, .icon.hot .spark, .menu-panel, .rank-row, .game-grid > li {
        animation: none;
    }
}

:root {
    --swipe: var(--marker);
}

:is(.button, .button.ghost, .nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .close, .dialog-nav, .option-chips a, .menu-panel > a, .menu-panel > form > button) {
    transition: color .15s, background .15s, box-shadow .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1);
}

:is(.button, .button.ghost, .nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .close, .dialog-nav, .option-chips a, .menu-panel > a, .menu-panel > form > button):not(:disabled):hover,
:is(.nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .option-chips a, .menu-panel > a):is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]),
.filter-chip {
    background: var(--swipe);
    border-color: transparent;
    box-shadow: none;
    color: var(--on-marker);
}

:is(.button, .button.ghost, .nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .close, .dialog-nav, .option-chips a, .menu-panel > a, .menu-panel > form > button):not(:disabled):hover {
    transform: rotate(-2deg);
}

:is(.button, .button.ghost, .nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .close, .dialog-nav, .option-chips a, .menu-panel > a, .menu-panel > form > button):not(:disabled):active {
    transform: rotate(1.5deg) scale(.96);
}

.option-chips a:hover span {
    color: var(--on-marker);
}

.menu .menu-panel > a:not(:disabled):hover, .menu .menu-panel > form > button:not(:disabled):hover {
    transform: rotate(-0.6deg);
}

.menu .menu-panel > a:not(:disabled):active, .menu .menu-panel > form > button:not(:disabled):active {
    transform: rotate(0.4deg) scale(.98);
}

.detect-status:empty, .hint:empty {
    display: none;
}

.editable-name {
    border-radius: 2px;
    outline: 0;
    cursor: text;
    transition: box-shadow .15s, background .15s;
}

.editable-name:hover {
    box-shadow: 0 2px 0 var(--rule-strong);
}

.editable-name:focus {
    background: var(--sheet);
    box-shadow: 0 0 0 2px var(--marker);
}

:is(.nav, .tabs, .segmented, .range-bar):has(:is(a, button, summary):not([aria-current="page"], [aria-current="true"], [aria-pressed="true"], :disabled):hover) :is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]) {
    background: transparent;
    color: var(--graphite);
}

.option-chips:has(:is(a, button, summary):not([aria-current="page"], [aria-current="true"], [aria-pressed="true"], :disabled):hover) :is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]) {
    background: var(--sheet);
    border-color: var(--rule-strong);
    color: var(--ink);
}

.option-chips:has(:is(a, button, summary):not([aria-current="page"], [aria-current="true"], [aria-pressed="true"], :disabled):hover) :is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]) span {
    color: var(--graphite);
}

.menu-panel:has(:is(a, button, summary):not([aria-current="page"], [aria-current="true"], [aria-pressed="true"], :disabled):hover) :is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]) {
    background: transparent;
    color: var(--ink);
}

:is(.nav a, .tabs a, .custom-range > summary, .segmented button, .segmented a, .option-chips a, .menu-panel > a):not(:disabled):is([aria-current="page"], [aria-current="true"], [aria-pressed="true"]):is(:hover, :active) {
    transform: none;
}

.group > h2 {
    margin-bottom: 12px;
}

.confirm-dialog {
    width: min(380px, calc(100vw - 32px));
}

.confirm-dialog h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.15;
}

.consent-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: grid;
    gap: 14px;
    width: min(360px, calc(100vw - 32px));
    padding: 16px 18px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--sheet);
    font-size: .9rem;
    animation: consent-in .25s ease-out;
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner p {
    margin: 0;
    line-height: 1.5;
}

.consent-banner a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.consent-actions .button {
    justify-content: center;
}

@keyframes consent-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

@media (max-width: 640px) {
    .consent-banner {
        right: 16px;
        bottom: 16px;
    }
}

.twitch-consent {
    width: min(420px, calc(100vw - 32px));
}

.twitch-consent p {
    margin: 0;
    color: var(--graphite);
    line-height: 1.5;
}

.twitch-consent p a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.welcome {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: color-mix(in srgb, var(--paper) 45%, transparent);
    backdrop-filter: blur(7px);
    animation: welcome-in .7s ease-out both;
}

.welcome p {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.6rem, 9vw, 6rem);
    font-weight: 850;
    font-stretch: 72%;
    line-height: 1;
    text-align: center;
    animation: welcome-text .9s cubic-bezier(.2, 1.2, .4, 1) .15s both;
}

.welcome-name {
    position: relative;
    display: inline-block;
    padding: 0 .14em .1em;
    transform: rotate(-2deg);
    animation: welcome-name-in .5s ease-out .55s both;
}

.welcome-name::after {
    content: attr(data-name);
    position: absolute;
    inset: 0;
    padding: inherit;
    background: var(--marker);
    color: var(--on-marker);
    clip-path: inset(0);
    animation: welcome-mark .55s cubic-bezier(.6, 0, .2, 1) 1.1s both;
}

.welcome.leaving {
    animation: welcome-out .45s ease-in forwards;
}

.welcome.leaving p {
    animation: welcome-text-out .45s ease-in forwards;
}

@keyframes welcome-in {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
}

@keyframes welcome-text {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }
}

@keyframes welcome-mark {
    from {
        clip-path: inset(0 100% 0 0);
    }
}

@keyframes welcome-name-in {
    from {
        opacity: 0;
    }
}

@keyframes welcome-out {
    to {
        opacity: 0;
        backdrop-filter: blur(0);
    }
}

@keyframes welcome-text-out {
    to {
        opacity: 0;
        transform: translateY(-16px) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome, .welcome p, .welcome-name, .welcome-name::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
    }
}

.theme-toggle {
    width: 36px;
    height: 36px;
}

.header-end > .button {
    height: 36px;
    padding-block: 0;
}

.theme-toggle .sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-toggle .moon {
        display: none;
    }
}

.page-head p.one-line {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ring {
    position: relative;
}

.ring.live img {
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--rec);
}

.live-now {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: var(--rec-text);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.live-now:hover {
    text-decoration: underline;
}

.range-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.range-bar .custom-range {
    margin-top: 22px;
}

.custom-panel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
}

.custom-panel .field {
    margin: 0;
}

.custom-panel .button {
    grid-column: 1 / -1;
}

.head-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

#clips {
    scroll-margin-top: 16px;
}

.head-tools .search {
    width: 280px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .head-tools {
        width: 100%;
    }

    .head-tools .search {
        width: 100%;
    }
}



.custom-range > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--graphite);
    font-size: .925rem;
    font-weight: 650;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.custom-range > summary::-webkit-details-marker {
    display: none;
}

.range-bar .nav-divider {
    margin: 22px 4px 0;
}

#clips {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 2px solid var(--ink);
}

#clips .section-head .range-bar {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    margin-right: auto;
}

#clips .section-head .tabs {
    min-width: 0;
}

#clips .section-head .range-bar :is(.tabs, .custom-range, .nav-divider) {
    margin-top: 0;
}

#clips .section-head .tabs {
    padding-block: 5px;
}

#clips .section-head {
    align-items: center;
    gap: 12px 20px;
    padding-bottom: 12px;
}

#clips .section-head h2 {
    line-height: 1;
}

#clips .section-head :is(.tabs a, .custom-range > summary) {
    min-height: 34px;
}

#clips .section-head .toolbar-actions {
    align-items: center;
}

#clips .section-head .toolbar-actions .button {
    height: 34px;
    padding-block: 0;
}

.legal {
    max-width: 760px;
    padding-bottom: 56px;
}

.legal-facts {
    display: grid;
    grid-template-columns: minmax(130px, auto) 1fr;
    margin: 0 0 40px;
    border-top: 2px solid var(--ink);
}

.legal-facts :is(dt, dd) {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.legal-facts dt {
    padding-right: 20px;
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.9;
}

.legal-section {
    padding: 22px 0 8px;
    border-top: 1px solid var(--rule);
}

.legal-section h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    font-stretch: 78%;
}

.legal-section p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.legal :is(.legal-section, .legal-facts) a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
    text-underline-offset: 3px;
}

.legal :is(.legal-section, .legal-facts) a:hover {
    text-decoration-color: var(--rec);
}

.consent-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 20px 0 0;
    font-family: var(--mono);
    font-size: .85rem;
}

.legal-table {
    width: 100%;
    margin: 4px 0 18px;
    border-collapse: collapse;
    font-size: .9rem;
}

.legal-table :is(th, td) {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    border-bottom: 2px solid var(--ink);
    color: var(--graphite);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.legal-table td.mono {
    font-size: .8rem;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .legal-facts {
        grid-template-columns: 1fr;
    }

    .legal-facts dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .legal-table thead {
        display: none;
    }

    .legal-table tr {
        display: grid;
        padding: 10px 0;
        border-bottom: 1px solid var(--rule);
    }

    .legal-table td {
        padding: 2px 0;
        border: 0;
    }
}
