:root {
    color-scheme: dark;
    --bg: #090b13;
    --panel: #11141f;
    --line: #292c3b;
    --text: #f3f2f6;
    --muted: #aaaabc;
    --accent: #ffb685;
    font-family: Outfit, system-ui, sans-serif;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 22% 12%, #28203955, transparent 40%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
a {
    color: inherit;
    text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
button {
    color: inherit;
}
input,
select,
textarea {
    min-width: 0;
}
h1,
h2,
h3,
p {
    margin: 0;
}
button {
    border: 0;
}
a:hover {
    color: var(--accent);
}
[hidden] {
    display: none !important;
}
.page-shell {
    max-width: 1240px;
    margin: auto;
    padding: 0 40px;
}
.site-header {
    min-height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}
.brand-mark {
    background: #f0e9df;
    color: #10111a;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-weight: 800;
    position: relative;
}
.brand-mark span {
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 14px;
}
.site-header nav {
    display: flex;
    gap: 26px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}
.site-header nav [aria-current] {
    color: var(--text);
}
.site-header nav [aria-current]:after {
    content: '';
    display: block;
    background: var(--accent);
    width: 18px;
    height: 2px;
    margin-top: 7px;
}
.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 90px;
    align-items: center;
    padding: 74px 0 65px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--muted);
}
.hero .eyebrow {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 9px;
}
.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
h1 {
    font-size: clamp(52px, 6.2vw, 82px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -4px;
    margin: 23px 0;
}
h1 span {
    color: var(--accent);
}
.hero-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 400px;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
}
.hero-meta strong {
    color: var(--text);
    font-weight: 500;
}
.hero-meta small {
    display: block;
    color: #858699;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 0.3px;
}
.curator-avatar {
    width: 36px;
    height: 36px;
    border: 1px solid #4a4052;
    background: #282332;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 10px;
    color: #eee0f7;
}
.tier-guide {
    padding: 26px 28px;
    border: 1px solid #373341;
    border-radius: 18px;
    background: linear-gradient(135deg, #28233288, #14172288);
    transform: rotate(1deg);
}
.guide-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}
.guide-heading h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
}
.guide-heading > span {
    font-size: 27px;
    color: var(--accent);
}
.tier-guide > p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}
.tier-guide ol {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}
.tier-guide li {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
    border-top: 1px solid #ffffff0a;
}
.guide-detail {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}
.tier-chip {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 6px;
    font-weight: 700;
    background: var(--tier-color);
    color: #15141b;
    flex: none;
}
[data-tier='S'] {
    --tier-color: #ffb4a6;
}
[data-tier='A'] {
    --tier-color: #f4cf91;
}
[data-tier='B'] {
    --tier-color: #bedab1;
}
[data-tier='C'] {
    --tier-color: #abc8e8;
}
[data-tier='D'] {
    --tier-color: #c6b5e6;
}
.collection {
    border-top: 1px solid var(--line);
    padding-top: 35px;
    scroll-margin-top: 20px;
}
.collection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
}
.collection-heading h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    font-weight: 500;
    margin-top: 10px;
}
.collection-heading > p {
    font-size: 12px;
    color: var(--muted);
}
.collection-toolbar {
    margin: 27px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.type-filters {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0f121b;
}
.type-filters button {
    background: transparent;
    border-radius: 7px;
    padding: 10px 18px;
    font-size: 12px;
    color: var(--muted);
}
.type-filters button[aria-pressed='true'] {
    background: #30303e;
    color: var(--text);
    box-shadow: 0 1px 3px #0004;
}
.type-filters button:hover {
    color: var(--text);
}
.search-field {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 290px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 13px;
    background: #11141d;
}
.search-field > span:first-child {
    font-size: 24px;
    color: var(--muted);
}
.search-field input {
    background: transparent;
    border: 0;
    color: var(--text);
    width: 100%;
    padding: 12px 0;
    font-size: 12px;
}
.search-field:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.search-field input:focus {
    outline: 0;
}
input::placeholder,
textarea::placeholder {
    color: #85869a;
}
.tier-row {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #11131d;
    overflow: hidden;
}
.tier-label {
    padding: 23px 18px;
    border-right: 1px solid var(--line);
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--tier-color) 7%, #14141e),
        #13151f
    );
}
.tier-label .tier-chip {
    width: 39px;
    height: 39px;
    font-size: 23px;
    margin-bottom: 14px;
}
.tier-label h3 {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}
.tier-label p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.5;
}
.tier-label small {
    display: block;
    color: #8c8d9f;
    font-size: 10px;
    margin-top: 14px;
}
.tier-items {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
    align-content: start;
}
.empty-tier {
    grid-column: 1/-1;
    align-self: center;
    padding: 30px 15px;
    font-size: 12px;
    color: #9394a6;
}
.recommendation-card {
    min-width: 0;
    background: #1a1d29;
    border: 1px solid #ffffff0b;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cover {
    aspect-ratio: 16/9;
    position: relative;
    background: linear-gradient(135deg, #343142, #1c2836);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.cover-fallback {
    font-size: 38px;
    letter-spacing: -2px;
    color: #e4d4ca66;
    font-weight: 600;
}
.media-type {
    position: absolute;
    bottom: 9px;
    left: 9px;
    background: #090b13df;
    border: 1px solid #ffffff25;
    padding: 3px 7px;
    font-size: 9px;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.card-body {
    padding: 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-body h3 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.card-meta {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}
.card-note {
    font-size: 12px;
    line-height: 1.6;
    color: #bdbdcc;
    margin-top: 11px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    font-size: 11px;
}
.trailer-link {
    color: var(--accent);
}
.edit-pick {
    background: transparent;
    color: #d0c4ec;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.collection-state {
    border: 1px dashed #343646;
    border-radius: 14px;
    padding: 35px 22px;
    text-align: center;
    margin-bottom: 20px;
    background: #12151e;
}
.collection-state h3 {
    font-weight: 500;
    font-size: 18px;
    margin: 12px 0 5px;
}
.collection-state p {
    color: var(--muted);
    font-size: 13px;
    max-width: 480px;
    margin: auto;
}
.collection-state .state-icon {
    font-size: 24px;
    color: var(--accent);
}
.loading-ring {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 2px solid #444;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.owner-toolbar {
    padding: 16px 18px;
    margin: 0 0 24px;
    background: #242033;
    border: 1px solid #4a3f60;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.owner-toolbar strong {
    font-size: 14px;
    font-weight: 500;
}
.owner-toolbar p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}
.primary-button,
.quiet-button,
.danger-button {
    padding: 12px 17px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
}
.primary-button {
    background: var(--accent);
    color: #241b17;
}
.primary-button:hover {
    background: #ffc9a5;
}
.quiet-button {
    background: #303342;
}
.danger-button {
    background: #442934;
    color: #ffb9be;
}
#retry {
    display: block;
    margin: 0 auto 24px;
}
.text-button {
    background: transparent;
    padding: 6px 0;
    font-size: 12px;
    color: var(--muted);
}
.text-button:hover {
    color: var(--text);
}
footer {
    margin-top: 55px;
    padding: 28px 0 35px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
footer strong {
    font-size: 12px;
    font-weight: 500;
}
footer p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 7px;
}
.account-controls {
    text-align: right;
    max-width: 300px;
}
.account-controls p {
    color: var(--accent);
}
dialog {
    color: var(--text);
    background: #151824;
    border: 1px solid #494555;
    border-radius: 18px;
    max-height: 90dvh;
    width: min(570px, calc(100% - 28px));
    padding: 0;
    box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
    background: #05060bc9;
    backdrop-filter: blur(5px);
}
dialog form,
.confirm-content {
    padding: 26px;
}
.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
dialog h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 7px;
}
.close-button {
    padding: 0;
    background: #2b2c3b;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 24px;
    flex: none;
}
.form-intro {
    font-size: 12px;
    color: var(--accent);
    margin: 12px 0 22px;
}
form label {
    display: block;
    font-size: 12px;
    margin-top: 15px;
}
form label > span,
form small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}
form small {
    display: block;
    line-height: 1.5;
    margin-top: 5px;
}
form input,
form select,
form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px;
    border: 1px solid #414254;
    background: #0f121c;
    color: var(--text);
    border-radius: 7px;
    font-size: 14px;
}
form textarea {
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.error-message {
    color: #ffacb4;
    font-size: 13px;
    margin-top: 15px;
}
.confirm-content > p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
    margin-top: 13px;
}
#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 30px);
    padding: 14px 20px;
    border: 1px solid #5a4d45;
    border-radius: 10px;
    background: #292424;
    box-shadow: 0 10px 50px #0008;
    color: #ffe5d5;
    font-size: 13px;
    z-index: 5;
}
.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #111;
    padding: 10px;
    z-index: 10;
}
@media (min-width: 1050px) {
    .tier-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 850px) {
    .page-shell {
        padding: 0 24px;
    }
    .hero {
        gap: 35px;
        grid-template-columns: 1.1fr 1fr;
        padding: 50px 0;
    }
    .tier-guide {
        padding: 20px;
    }
    .guide-detail {
        display: none;
    }
    h1 {
        font-size: 61px;
    }
    .tier-row {
        grid-template-columns: 140px minmax(0, 1fr);
    }
    .tier-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .page-shell {
        padding: 0 18px;
    }
    .site-header {
        min-height: 110px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 0 14px;
        gap: 18px;
    }
    .site-header .brand {
        margin-right: auto;
    }
    .site-header nav {
        width: 100%;
        gap: 22px;
        font-size: 12px;
    }
    .site-header nav [aria-current]:after {
        margin-top: 5px;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 36px 0 32px;
        gap: 30px;
    }
    h1 {
        font-size: 62px;
        letter-spacing: -3px;
        margin: 20px 0;
    }
    .hero-description {
        font-size: 15px;
    }
    .hero-meta {
        margin-top: 22px;
    }
    .tier-guide {
        transform: none;
        padding: 18px 20px;
    }
    .tier-guide ol {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 14px;
    }
    .tier-guide li {
        border: 0;
        padding: 0;
        gap: 7px;
    }
    .tier-guide li > span:not(.tier-chip) {
        display: none;
    }
    .tier-guide .guide-heading h2 {
        font-size: 14px;
    }
    .tier-guide > p {
        font-size: 11px;
    }
    .guide-heading > span {
        font-size: 20px;
    }
    .tier-guide .tier-chip {
        height: 31px;
        width: 44px;
    }
    .collection {
        padding-top: 27px;
    }
    .collection-heading {
        align-items: start;
    }
    .collection-heading h2 {
        font-size: 24px;
    }
    .collection-heading > p {
        padding-top: 26px;
        font-size: 10px;
        flex: none;
    }
    .collection-toolbar {
        flex-direction: column;
        align-items: stretch;
        margin: 23px 0;
        gap: 12px;
    }
    .type-filters {
        justify-content: space-between;
    }
    .type-filters button {
        flex: 1;
    }
    .search-field {
        width: 100%;
    }
    .tier-row {
        display: block;
    }
    .tier-label {
        display: grid;
        grid-template-columns: 35px 1fr auto;
        column-gap: 12px;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px;
    }
    .tier-label .tier-chip {
        width: 35px;
        height: 35px;
        grid-row: 1/3;
        margin: 0;
        font-size: 21px;
    }
    .tier-label h3 {
        font-size: 13px;
    }
    .tier-label p {
        font-size: 10px;
        margin-top: 3px;
    }
    .tier-label small {
        grid-column: 3;
        grid-row: 1/3;
        margin: 0;
    }
    .tier-items {
        padding: 12px;
        gap: 12px;
    }
    .card-body {
        padding: 10px;
    }
    .card-body h3 {
        font-size: 14px;
    }
    .card-note {
        font-size: 11px;
    }
    .empty-tier {
        padding: 22px 5px;
    }
    .owner-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    footer {
        margin-top: 35px;
        padding: 24px 0;
        flex-direction: column;
    }
    .account-controls {
        text-align: left;
        max-width: none;
    }
    dialog form,
    .confirm-content {
        padding: 20px;
    }
    .form-row {
        gap: 12px;
    }
    dialog h2 {
        font-size: 21px;
    }
    .form-actions button {
        flex: 1;
    }
    .form-actions {
        gap: 8px;
    }
    .collection-state {
        padding: 25px 18px;
    }
    .collection-state h3 {
        font-size: 16px;
    }
}
@media (max-width: 360px) {
    .tier-items {
        grid-template-columns: 1fr;
    }
    .collection-heading {
        display: block;
    }
    .collection-heading > p {
        padding-top: 10px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
