@font-face {
    font-family: Geist;
    src: url("/assets/fonts/Geist-Variable.woff2?v=1") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --canvas: #101014;
    --sidebar: #15151d;
    --panel: #1c1c25;
    --control: #252530;
    --hover: #2a2936;
    --line: #2b2b36;
    --ink: #f5f5f7;
    --muted: #a1a1b0;
    --quiet: #737380;
    --accent: #7661ed;
    --accent-ink: #fff;
    --measure: 1560px;
    --gutter: clamp(1.15rem, 2.05vw, 2rem);
    --sidebar-width: clamp(225px, 18.25vw, 280px);
    --border-radius: 12px;
    --radius: 16px;
    background: var(--canvas);
    color: var(--ink);
    font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 10; background: var(--panel); padding: 1rem; }
.skip-link:focus { transform: none; }

.content { max-width: var(--measure); margin: auto; padding: clamp(1.65rem, 4vw, 3.25rem) var(--gutter) 4rem; }
.content > h1 { margin-bottom: .65rem; }
.narrow { max-width: 740px; }
.hero { min-height: clamp(330px, 46vw, 535px); position: relative; display: flex; align-items: end; isolation: isolate; border-radius: 24px; overflow: hidden; border: 1px solid #ffffff18; background: #25202a; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101115e8 0%, #10111580 47%, #10111508 85%), linear-gradient(0deg, #101115e8, transparent 67%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 37%; z-index: -2; }
.hero-content { width: 100%; max-width: 690px; padding: clamp(1.4rem, 5vw, 3.5rem); display: grid; justify-items: start; gap: .85rem; }
.hero-content h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); line-height: 1.2; letter-spacing: -.018em; }
.hero-content p { color: #e1dce4; max-width: 48ch; }
.hero-content .button { margin-top: .35rem; }
.hero-empty { min-height: clamp(260px, 37vw, 390px); background: radial-gradient(ellipse at 90% 0%, #3b3038, transparent 63%), #1d1d26; }
.hero-empty::after { background: linear-gradient(90deg, #10111580, transparent); }
.title-hero { margin-bottom: clamp(1.4rem, 4vw, 2.5rem); }
.shelf h2 { margin-bottom: 1rem; }

.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); align-items: start; }
.tile { min-width: 0; }
.tile a { text-decoration: none; display: grid; align-content: start; gap: .44rem; border-radius: 12px; }
.tile strong { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; font-size: .95rem; }
.tile .muted { font-size: .8rem; line-height: 1.25; }
.tile .button { width: 100%; font-size: .78rem; padding-inline: .35rem; }
.poster { position: relative; aspect-ratio: 2 / 3; background: #25242f url("/assets/watch-play.png") center / 32% auto no-repeat; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #ffffff19; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.tile a:hover img { transform: scale(1.04); }
.tile a:hover strong { color: var(--accent); }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 6px; padding: .23rem .48rem; color: #fff2e6; background: #17161fe8; border: 1px solid #ffffff28; font-size: .69rem; font-weight: 600; }
.tile-badge { position: absolute; top: .5rem; left: .5rem; }

.panel, .notice, .filters, .signin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); }
.panel { margin: 1rem 0; }
.panel > :where(h2, p, .actions, form, ul):not(:last-child) { margin-bottom: .85rem; }
.panel form + form { margin-top: .65rem; }
.notice { margin: 1rem 0; color: var(--muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); align-items: end; gap: .9rem 1rem; margin: 1.25rem 0 1.6rem; }
.filters > .button { width: 100%; }
.actions { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.content > .actions { margin-top: 1rem; }
.hero .actions { align-items: center; }
.pagination { justify-content: end; margin-top: 1.25rem; }
.stack { display: grid; gap: .85rem; max-width: 510px; }
label { display: grid; gap: .4rem; min-width: 0; color: var(--muted); font-size: .84rem; font-weight: 600; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type="checkbox"]), select, textarea { min-width: 0; width: 100%; min-height: 44px; background: var(--canvas); color: var(--ink); padding: .62rem .75rem; border: 1px solid #3d4250; border-radius: 9px; font-weight: 400; }
textarea { resize: vertical; }
.tick { display: flex; align-items: center; min-height: 44px; gap: .55rem; }
.tick input { width: 1.07rem; height: 1.07rem; margin: 0; accent-color: var(--accent); flex: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .56rem .92rem; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; text-align: center; line-height: 1.2; background: var(--control); color: var(--ink); cursor: pointer; font-size: .88rem; font-weight: 600; transition: background-color .18s ease, border-color .18s ease; }
.button:hover { background: #2b2f3a; border-color: #565c6b; }
.button:disabled { opacity: .7; cursor: default; }
.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.accent:hover { background: #ffddba; border-color: #ffddba; }
.status-tabs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: 1.15rem; }
.status-tabs .button { border-radius: 20px; padding-inline: .8rem; }
.signin { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(ellipse at 52% 0%, #2b2632, transparent 62%), var(--canvas); }
.signin-card { width: min(100%, 420px); padding: clamp(1.5rem, 5vw, 2.75rem); }
.signin-card .brand { margin-bottom: 1.65rem; }
.signin-card h1 { font-size: 1.625rem; margin-bottom: 1.25rem; }
.signin-card .button { margin-top: .35rem; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.tmdb-logo { width: 84px; height: auto; margin-bottom: 1rem; }
.reveal { animation: reveal .35s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
    .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .content { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.05rem; }
    .hero { border-radius: 18px; }
    .hero::after { background: linear-gradient(0deg, #101115f3 4%, #10111585 48%, #10111516 90%); }
    .hero-empty { min-height: 235px; }
    .hero-empty::after { background: linear-gradient(90deg, #10111565, transparent); }
}
@media (max-width: 390px) {
    .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

[data-search-results] .tile { gap: .45rem; }
[data-search-results] .tile strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    block-size: 2.5em;
    overflow: hidden;
}
[data-search-results] .tile > [role="status"]:empty { display: none; }



.title-page { padding-top: 0; }
.hero-full {
    margin-inline: calc(-1 * var(--gutter));
    min-height: clamp(330px, 44vw, 555px);
    border: 0;
    border-radius: 0;
    background-color: var(--canvas);
}
.hero-full .hero-content {
    max-width: 720px;
    padding: 2rem var(--gutter) clamp(2rem, 5vw, 4rem);
    gap: .9rem;
}
.hero-full .hero-content h1 { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem); }
.hero-full::after {
    background: linear-gradient(0deg, var(--canvas) 0%, #0b0c0f42 55%, transparent 90%),
                linear-gradient(90deg, #0b0c0fe6 0%, #0b0c0f65 48%, transparent 80%);
}
.hero-full.hero-empty { min-height: clamp(310px, 40vw, 510px); background: #151922 url("/assets/cinema-home.jpg") 62% 52% / cover no-repeat; }
.hero-full.hero-empty::after {
    background: linear-gradient(0deg, var(--canvas) 0%, transparent 60%),
                linear-gradient(90deg, #0b0c0ff0 4%, #0b0c0f50 60%, transparent 87%);
}
.hero-full .button { min-height: 48px; padding-inline: 1.25rem; }
.hero-secondary { background: #d7deed1b; border-color: #ffffff28; backdrop-filter: blur(12px); }
.accent:hover { background: #dedfe3; border-color: #dedfe3; }
.poster { border-radius: 8px; background-color: #20232b; }
.tile a { border-radius: 8px; }
.tile .muted { color: #a8aebb; }
.badge { border-radius: 4px; background: #101115c9; }
.title-hero { margin-bottom: .75rem; }
.panel { padding: 1.35rem 0; margin: .35rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.narrow .panel { margin-top: 1.3rem; }
.collection-filters { margin: 1rem 0 1.6rem; border-block: 1px solid var(--line); }
.collection-filters summary { width: fit-content; cursor: pointer; padding: .85rem 0; color: var(--muted); font-size: .87rem; font-weight: 600; }
.collection-filters .filters { margin: 0 0 1rem; padding: 0; border: 0; border-radius: 0; background: transparent; }
.section-heading h1 { margin-bottom: 1.05rem; }
.status-tabs .button { min-height: 40px; }
.notice, .filters { background: #ffffff05; border-color: #ffffff15; }
.signin {
    background:
        linear-gradient(90deg, #0b0c0ff5 10%, #0b0c0f9e 54%, #0b0c0f53),
        url("/assets/cinema-home.jpg") center / cover no-repeat var(--canvas);
}
.signin-card { background: #101217de; border-color: #ffffff1d; border-radius: 20px; box-shadow: 0 24px 90px #0008; backdrop-filter: blur(18px); }
@media (max-width: 640px) {
    .hero-full { min-height: clamp(305px, 94vw, 420px); }
    .hero-full.hero-empty { min-height: 310px; }
    .hero-full .hero-content { padding-bottom: 2.25rem; gap: .72rem; }
    .hero-full::after, .hero-full.hero-empty::after {
        background: linear-gradient(0deg, var(--canvas) 0%, #0b0c0f82 48%, #0b0c0f0a 90%);
    }
    .signin { background-position: 64% center; }
}


.title-page .title-hero {
    min-height: clamp(330px, 40vw, 525px);
    margin-bottom: 0;
}
.title-page .title-hero .hero-content {
    padding-bottom: clamp(2rem, 5vw, 4rem);
}
.title-hero-actions { align-items: center; }
.title-hero-actions a > span { font-size: .68em; }
.title-body {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: clamp(1.35rem, 3.3vw, 2.65rem);
}
.title-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: start;
}
.title-editorial h2, .title-watchlist h2 {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -.018em;
}
.title-overview { display: flex; align-items: flex-start; gap: clamp(.9rem, 2.4vw, 1.55rem); }
.title-poster {
    flex: 0 0 auto;
    width: clamp(72px, 10vw, 118px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 9px;
    box-shadow: 0 8px 24px #0008;
}
.title-overview .synopsis { margin-top: .65rem; font-size: .96rem; line-height: 1.65; color: #dedfe5; }
.title-facts { color: var(--muted); font-size: .81rem; line-height: 1.5; margin-top: .45rem; overflow-wrap: anywhere; }
.title-overview .synopsis + .title-facts { margin-top: .75rem; }
.title-section-heading { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.region-label {
    background: #ffffff0e;
    color: var(--muted);
    border: 1px solid #ffffff13;
    border-radius: 5px;
    padding: .13rem .29rem;
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.3;
}
.provider-list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.provider-list li { display: flex; min-width: 0; align-items: center; gap: .6rem; min-height: 44px; }
.provider-list img { flex: none; border-radius: 8px; background: var(--control); }
.provider-list strong, .provider-list small { display: block; }
.provider-list strong { font-size: .89rem; line-height: 1.25; overflow-wrap: anywhere; }
.provider-list small { margin-top: .12rem; color: var(--muted); font-size: .73rem; }
.availability-credit { margin-top: .65rem; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.availability-credit a { display: block; width: fit-content; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; margin-bottom: .3rem; }
.title-watchlist {
    padding: clamp(.95rem, 2.5vw, 1.5rem);
    border: 1px solid #ffffff12;
    border-radius: 16px;
    background: #14161b;
    scroll-margin-top: 82px;
}
.title-watchlist-header { display: flex; justify-content: space-between; align-items: start; gap: .75rem; margin-bottom: .9rem; }
.title-tools { display: flex; align-items: center; gap: .35rem; }
.title-tool { background: transparent; border-color: transparent; color: #d1d3db; }
.title-tool:hover, .title-tool[aria-pressed="true"] { background: #ffffff12; border-color: #ffffff14; color: var(--ink); }
.title-tool[aria-pressed="true"] span { color: #f9cf90; }
.title-more { position: relative; }
.title-more > summary { list-style: none; }
.title-more summary::-webkit-details-marker, .personal-editor summary::-webkit-details-marker { display: none; }
.title-more-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + .25rem);
    right: 0;
    width: min(250px, calc(100vw - 4rem));
    padding: .45rem;
    background: #191c23;
    border: 1px solid #ffffff22;
    border-radius: 12px;
    box-shadow: 0 10px 32px #0009;
}
.title-more-menu button { width: 100%; justify-content: flex-start; }
.title-remove > summary { padding: .55rem .9rem; min-height: 44px; cursor: pointer; font-size: .87rem; color: #ffb2b0; }
.title-remove p { padding: .35rem .65rem .7rem; font-size: .79rem; color: var(--muted); }
.watch-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 440px);
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    background: #0b0c10;
}
.watch-status button {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 44px;
    padding: .4rem .24rem;
}
.watch-status button:hover { background: #ffffff13; color: var(--ink); }
.watch-status button[aria-pressed="true"] { background: #ecedf0; color: #141518; cursor: default; }
.title-personal {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 1rem;
    align-items: start;
}
.personal-card {
    min-width: 0;
    padding: clamp(1rem, 2.4vw, 1.45rem);
    border: 1px solid #ffffff14;
    border-radius: 16px;
    background: #14161b;
}
.personal-card h2 { font-size: 1.075rem; margin-bottom: .9rem; letter-spacing: -.01em; }
.personal-empty { color: var(--muted); font-size: .88rem; }
.rating-list { margin: 0; padding: 0; list-style: none; }
.rating-list li { display: flex; align-items: center; gap: .62rem; min-height: 50px; padding-block: .3rem; }
.rating-list li + li { border-top: 1px solid #ffffff13; }
.rating-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #292d37;
    color: #e6e8ef;
    font-size: .78rem;
    font-weight: 600;
}
.rating-name { min-width: 0; overflow-wrap: anywhere; font-size: .91rem; }
.rating-value {
    margin-left: auto;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.018em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rating-value small { color: var(--muted); font-size: .65rem; font-weight: 550; letter-spacing: 0; }
.personal-note { margin-bottom: .65rem; padding: .76rem .88rem; border-radius: 10px; background: #0f1116; }
.personal-note header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.personal-note strong { font-size: .84rem; }
.personal-note header span { font-size: .72rem; color: var(--muted); }
.personal-note .note-body { margin-top: .34rem; font-size: .91rem; color: #e1e3e9; }
.personal-editor { margin-top: .7rem; }
.personal-editor > summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    width: fit-content;
    border-radius: 8px;
    padding: 0 .74rem;
    color: var(--ink);
    background: var(--control);
    cursor: pointer;
    list-style: none;
    font-size: .84rem;
    font-weight: 600;
}
.personal-editor > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid var(--muted);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-2px);
}
.personal-editor[open] > summary::after { transform: rotate(225deg); }
.personal-editor > summary:hover { background: #2b2f3a; }
.personal-editor > form { margin-top: .72rem; }
.rating-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; max-width: 310px; }
.rating-picker button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--control);
    color: var(--ink);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.rating-picker button:hover { background: #363a47; }
.rating-picker button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.title-note-form { display: grid; gap: .42rem; }
.title-note-form textarea { border-color: var(--line); }
.title-note-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.title-note-actions .tick { font-size: .79rem; }
.personal-remove {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: .79rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.personal-remove:hover { color: #ffb2b0; }

@media (max-width: 730px) {
    .title-personal { grid-template-columns: minmax(0, 1fr); }
    .title-editorial { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .title-availability { padding-top: .9rem; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
    .title-watchlist-header { flex-wrap: wrap; gap: .3rem; }
    .title-tools { margin-left: -.75rem; }
    .title-more-menu { right: auto; left: 0; }
}

.picker-page { max-width: calc(1010px + 2 * var(--gutter)); }
.picker-feature {
    min-height: clamp(325px, 41vw, 430px);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    overflow: hidden;
    background: #111216;
    border: 1px solid #ffffff12;
    border-radius: 22px;
}
.picker-feature-copy {
    z-index: 1;
    align-self: center;
    display: grid;
    justify-items: start;
    gap: .7rem;
    min-width: 0;
    padding: clamp(1.35rem, 4.3vw, 3.25rem);
}
.picker-feature h1 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.picker-feature .picker-description { max-width: 35ch; color: #c0c1c9; font-size: .94rem; line-height: 1.6; }
.picker-feature .picker-facts { color: #c8b69d; font-size: .8rem; }
.picker-visual { position: absolute; z-index: 0; inset: 0 0 0 36%; background: #111216; }
.picker-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.picker-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #111216, #11121655 22%, transparent 48%);
}
.picker-visual-tickets img { object-position: 57% 48%; }
.picker-visual-poster { display: grid; place-items: center; background: #181920; }
.picker-visual-poster img {
    width: auto;
    height: min(285px, 32vw);
    border-radius: 9px;
    box-shadow: 0 12px 36px #000a;
}
.picker-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
.picker-actions .button { padding-inline: .95rem; font-size: .87rem; }
.picker-primary { background: #f8e5cc; color: #241c13; border-color: #f8e5cc; }
.picker-primary:hover { background: #fff1de; border-color: #fff1de; }
.picker-primary span { font-size: 1.14em; }
.picker-secondary { color: var(--ink); background: #ffffff0b; border-color: #ffffff1f; }
.picker-refine { margin: .85rem .18rem 0; border-bottom: 1px solid #ffffff16; }
.picker-refine summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 48px;
    width: fit-content;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    font-size: .87rem;
    font-weight: 600;
}
.picker-refine summary::-webkit-details-marker { display: none; }
.picker-refine summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-2px);
}
.picker-refine[open] summary::after { transform: rotate(225deg); }
.picker-refine summary:hover, .picker-reset:hover { color: var(--ink); }
.picker-options { padding: .15rem 0 .8rem; }
.picker-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.picker-fields select, .picker-fields input[type="number"] {
    appearance: none;
    height: 44px;
    border-color: #ffffff21;
    background-color: var(--panel);
    font-size: 1rem;
}
.picker-fields select {
    padding-right: 1.9rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) center, calc(100% - 11px) center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.picker-switches { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; margin-top: .45rem; }
.picker-reset { color: var(--muted); font-size: .84rem; text-underline-offset: .18em; }
.picker-filter-submit { margin-left: auto; }
@media (max-width: 800px) {
    .picker-feature { grid-template-columns: minmax(0, 53fr) minmax(0, 47fr); }
    .picker-visual { left: 42%; }
}
@media (max-width: 630px) {
    .picker-feature { display: flex; flex-direction: column-reverse; min-height: 0; border-radius: 17px; }
    .picker-visual { position: relative; inset: auto; aspect-ratio: 16 / 9; }
    .picker-visual img { position: absolute; inset: 0; }
    .picker-visual::after { background: linear-gradient(0deg, #111216, transparent 45%); }
    .picker-visual-poster img { position: static; width: auto; height: min(150px, 37vw); }
    .picker-feature-copy { position: relative; align-self: stretch; padding: .6rem 1rem 1.25rem; margin-top: -.3rem; }
    .picker-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .picker-filter-submit { margin-left: 0; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.discover-intro { max-width: 840px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.discover-intro h1 { margin-bottom: 1rem; }
.discover-controls { display: flex; flex-wrap: wrap; gap: .7rem; align-items: stretch; }
.discover-search {
    flex: 1 1 320px;
    position: relative;
    display: block;
    border-radius: 12px;
}
.discover-search input[type="search"] {
    appearance: none;
    min-height: 49px;
    padding: 0 .95rem 0 2.7rem;
    border-radius: inherit;
    font-size: 1rem;
    background: #191b21;
    border-color: #323640;
}
.discover-search input[type="search"]::placeholder { color: #a1a6b2; opacity: 1; }
.discover-glass {
    position: absolute;
    z-index: 1;
    width: 13px;
    height: 13px;
    top: calc(50% - 8px);
    left: 16px;
    border: 1.6px solid var(--muted);
    border-radius: 50%;
    pointer-events: none;
}
.discover-glass::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 1.6px;
    background: var(--muted);
    top: 10px;
    left: 9px;
    transform: rotate(45deg);
    transform-origin: left;
}
.discover-segments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    min-width: 205px;
    gap: 2px;
    padding: 3px;
    background: #15171c;
    border: 1px solid #ffffff12;
    border-radius: 11px;
}
.discover-segments button {
    min-height: 42px;
    padding: 0 .7rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.discover-segments button:hover { color: var(--ink); }
.discover-segments button[aria-pressed="true"] { background: #30333d; color: var(--ink); }
.discover-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1rem; margin-bottom: 1rem; }
.discover-results-heading p { color: var(--muted); font-size: .85rem; }
.discover-results-heading p:empty { display: none; }
.discover-results { row-gap: 1.4rem; }
.discover-tile { position: relative; display: grid; }
.discover-tile .poster { margin-bottom: .18rem; }
.discover-add {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 50%;
    color: #fff;
    background: #111218e6;
    border: 1px solid #ffffff47;
    cursor: pointer;
}
.discover-add:hover { background: #292c35; }
.discover-add:disabled { cursor: default; color: #e8e8ee; }
.discover-tile > [role="status"] { margin-top: .35rem; }
@media (max-width: 570px) {
    .discover-controls { display: grid; gap: .55rem; }
    .discover-segments { width: min(100%, 258px); }
    .discover-add { top: 5px; right: 5px; }
}

/* Watch application shell */
body {
    font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
    scrollbar-color: #393845 var(--canvas);
}
.ui-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: middle;
}
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark-art { width: 120px; height: auto; display: block; }
.app-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 6;
    width: var(--sidebar-width);
    padding: 3.25rem 1.05rem 1.85rem;
    gap: 2.9rem;
    overflow-y: auto;
    background: linear-gradient(158deg, #1a1922, var(--sidebar) 45%, #11111b 83%);
    border-right: 1px solid #ffffff0c;
}
.app-sidebar > .wordmark { align-self: center; }
.sidebar-nav { display: grid; gap: .35rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1.02rem;
    min-height: 51px;
    padding: .6rem .95rem .6rem 1.45rem;
    border-radius: var(--border-radius);
    color: #dddce7;
    font-size: .99rem;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.sidebar-nav a:nth-child(5) { margin-top: 1.12rem; position: relative; }
.sidebar-nav a:nth-child(5)::before {
    content: "";
    position: absolute;
    inset: -.73rem 1.1rem auto;
    border-top: 1px solid #ffffff20;
}
.sidebar-nav .ui-icon { width: 1.34rem; height: 1.34rem; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { background: #2a2936; color: var(--ink); }
.nav-count {
    margin-left: auto;
    background: #ffffff10;
    color: var(--ink);
    padding: .19rem .51rem;
    border-radius: 999px;
    font-size: .77rem;
    font-variant-numeric: tabular-nums;
}
.household {
    position: relative;
    display: grid;
    gap: .56rem;
    margin: auto .5rem 0;
    padding: .75rem 2rem .75rem .85rem;
    border-radius: var(--border-radius);
    color: var(--ink);
    text-decoration: none;
    font-size: .88rem;
}
.household:hover, .household[aria-current="page"] { background: #ffffff08; }
.household > .ui-icon { position: absolute; right: .68rem; bottom: .75rem; color: var(--muted); }
.avatar-group { display: flex; align-items: center; padding-left: .15rem; }
.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: -.15rem;
    border-radius: 50%;
    border: 2px solid #15151d;
    background: #354550;
    color: #f7f6fb;
    font-size: .78rem;
    font-weight: 650;
}
.avatar:nth-child(2) { background: #52405b; }
.avatar:nth-child(3) { background: #51434b; }
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 80px;
    max-width: var(--measure);
    margin-inline: auto;
    padding: max(.8rem, env(safe-area-inset-top)) var(--gutter) .8rem;
    background: #101014f5;
}
.search-launcher {
    display: flex;
    width: min(100%, 597px);
    align-items: center;
    gap: .85rem;
    min-height: 48px;
    padding: 0 .9rem 0 1.1rem;
    border: 1px solid #312f3c;
    border-radius: 12px;
    background: linear-gradient(110deg, #1b1a24, #20202a);
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: border-color .18s;
}
.search-launcher:hover { border-color: #535264; }
.search-launcher .ui-icon { color: #e9e7f3; width: 1.38rem; height: 1.38rem; }
.search-launcher kbd {
    margin-left: auto;
    padding: .18rem .42rem;
    border: 1px solid #ffffff10;
    border-radius: 6px;
    background: #ffffff0a;
    font: inherit;
    font-size: .75rem;
    white-space: nowrap;
}
.mobile-wordmark, .mobile-nav { display: none; }
.app-shell .content { padding-top: 1.35rem; }
.app-shell .mobile-collection-links { display: none; }

/* Home feature and poster rails */
.app-shell .home { padding-top: 1.12rem; }
.home-feature {
    position: relative;
    min-height: 400px;
    border-radius: 22px;
    background: #191821;
    isolation: isolate;
}
.feature-slide {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    isolation: isolate;
    border-radius: inherit;
}
.feature-slide::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #14131bef 1%, #13121aad 32%, #14131b3b 61%, transparent 82%),
                linear-gradient(0deg, #14121b51, transparent 44%);
    pointer-events: none;
}
.feature-art {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 41%;
    border-radius: inherit;
}
.feature-fallback { background: #171720 url("/assets/cinema-home.jpg") center 53% / cover no-repeat; }
.feature-copy {
    display: grid;
    justify-items: start;
    gap: .52rem;
    width: min(100%, 590px);
    padding: 2.4rem clamp(1.55rem, 4vw, 3.65rem) 3.25rem;
    color: var(--ink);
}
.feature-copy h1, .feature-copy h2 {
    font-size: clamp(1.8rem, 3.1vw, 2.9rem);
    letter-spacing: -.032em;
    font-weight: 550;
    line-height: 1.12;
}
.feature-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .33rem .58rem;
    margin-bottom: .48rem;
    border: 1px solid #ffffff38;
    border-radius: 10px;
    background: #14131c42;
    font-size: .77rem;
}
.feature-status .ui-icon { width: .93rem; height: .93rem; }
.feature-facts { font-size: .91rem; color: #c2c0d0; }
.feature-synopsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 42ch;
    color: #dedce8;
    font-size: .93rem;
    line-height: 1.52;
    margin-top: .23rem;
}
.feature-actions { align-items: center; gap: .72rem; margin-top: 1.15rem; }
.button { border-radius: 11px; font-weight: 550; }
.button.accent { background: #6b57dc; border-color: #7661ed; color: #fff; }
.button.accent:hover { background: #755fe5; border-color: #8a76fb; }
.feature-actions .accent { box-shadow: 0 8px 26px #7760f339; }
.button.feature-secondary { background: #ffffff17; border-color: #ffffff21; color: var(--ink); }
.button.feature-secondary:hover { background: #ffffff24; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; }
.feature-menu { position: relative; }
.feature-menu > summary { cursor: pointer; list-style: none; }
.feature-menu > summary::-webkit-details-marker { display: none; }
.feature-menu-panel { position: absolute; z-index: 3; top: calc(100% + .4rem); left: 0; padding: .35rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.feature-menu-panel .button { width: 100%; }
.feature-pagination, .feature-arrows { position: absolute; display: flex; align-items: center; bottom: 1.3rem; z-index: 2; }
.feature-pagination { left: 50%; transform: translateX(-50%); gap: 2px; bottom: .52rem; }
.feature-pagination button {
    min-width: 30px;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #ffffff68;
    padding: 0;
    cursor: pointer;
}
.feature-pagination button::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 7px; background: currentColor; margin: auto; transition: width .18s; }
.feature-pagination button[aria-pressed="true"] { color: var(--ink); }
.feature-pagination button[aria-pressed="true"]::before { width: 16px; }
.feature-arrows { right: 1.55rem; gap: .55rem; }
.feature-arrows button { border: 1px solid #ffffff37; border-radius: 50%; background: #13121b65; color: #fff; cursor: pointer; }
.feature-arrows button:hover { background: #15141cc9; }
.home-row { margin-top: clamp(1.9rem, 3.1vw, 2.8rem); }
.home-row-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin-bottom: 1rem; }
.home-row-header h2 { font-size: clamp(1.25rem, 1.8vw, 1.68rem); font-weight: 600; letter-spacing: -.025em; }
.home-row-header p { color: #b7b5c4; font-size: .88rem; margin-top: .2rem; }
.home-row-header a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: #c5c2d4; font-size: .83rem; text-decoration: none; white-space: nowrap; }
.home-row-header a:hover { color: var(--ink); }
.home-row-header a .ui-icon { width: 1rem; height: 1rem; }
.poster-grid { gap: clamp(.68rem, 1.35vw, 1.2rem); }
.app-shell .tile { position: relative; }
.app-shell .poster { border-radius: 12px; box-shadow: none; background-color: var(--panel); transition: transform .19s ease, box-shadow .19s ease; }
.app-shell .tile strong { font-size: .93rem; color: var(--ink); }
.app-shell .tile .muted { color: var(--muted); }
.app-shell .tile a:hover strong { color: #dfd8ff; }
.app-shell .tile a:hover img { transform: none; }
.app-shell .tile a:hover .poster { transform: translateY(-3px); box-shadow: 0 10px 19px #0006; }
.watching-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.watching-grid .poster { aspect-ratio: 16 / 9; }
.poster-action { position: absolute; z-index: 1; top: .38rem; right: .38rem; }
.poster-action button {
    border: 1px solid #ffffff25;
    background: #12121ab3;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}
.poster-action button[aria-pressed="true"] { border-color: #c9befb; color: #cabfff; }
.poster-action button[aria-pressed="true"] .ui-icon { fill: #7561ed70; }

/* Search dialog and shared details */
.search-dialog {
    position: fixed;
    inset: 0;
    width: min(660px, calc(100% - 2rem));
    max-height: min(72dvh, 650px);
    height: fit-content;
    margin: auto;
    border: 1px solid #393746;
    border-radius: 16px;
    padding: 0;
    overflow: auto;
    color: var(--ink);
    background: #1b1a24;
    box-shadow: 0 20px 60px #0009;
}
.search-dialog::backdrop { background: rgb(8 7 13 / 5%); }
.quick-search-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: .85rem; padding: .35rem .8rem .35rem 1rem; border-bottom: 1px solid var(--line); background: #1b1a24; }
.quick-search-header input[type="search"] { flex: 1; padding-inline: .55rem; color: var(--ink); background: transparent; border: 0; border-radius: 9px; font-size: 1rem; }
.quick-search-header input:focus-visible { outline: 1px solid #9290a2; outline-offset: -2px; }
.quick-search-header .icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.quick-search-header .icon-button:hover { background: var(--hover); color: var(--ink); }
.quick-search-status { padding: .9rem 1rem; color: var(--muted); font-size: .91rem; }
.quick-search-status:empty { display: none; }
.quick-search-results { display: grid; padding: .3rem; }
.quick-row { min-width: 0; display: flex; align-items: center; gap: .35rem; border-radius: 9px; padding-right: .45rem; }
.quick-row:focus-within, .quick-row:hover { background: #2a2936; }
.quick-row a { display: flex; align-items: center; min-width: 0; flex: 1; gap: .7rem; padding: .42rem; border-radius: 8px; text-decoration: none; }
.quick-thumb { flex: none; width: 35px; height: 50px; border-radius: 5px; object-fit: cover; background: #35333f; }
.quick-meta { min-width: 0; display: grid; gap: .16rem; }
.quick-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; font-weight: 600; }
.quick-meta small { color: var(--muted); font-size: .77rem; }
.quick-add { border: 1px solid var(--line); border-radius: 9px; background: #24232d; color: var(--ink); cursor: pointer; }
.quick-add:hover { background: #39364a; }
.quick-add:disabled { color: #cbc2ff; cursor: default; }
.quick-skeleton { width: min(70%, 310px); height: 49px; margin: .42rem; border-radius: 6px; background: #ffffff0b; }
.app-toast {
    position: fixed;
    z-index: 12;
    right: max(1rem, env(safe-area-inset-right));
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: .65rem .95rem;
    border: 1px solid #ffffff20;
    border-radius: 10px;
    background: #242330;
    color: var(--ink);
    font-size: .88rem;
    box-shadow: 0 7px 22px #0005;
}
.app-toast:empty { display: none; }
.signin-card .wordmark { margin-bottom: 1.5rem; }
.signin-card { background: #171720ee; }
.login-screen {
    background:
        radial-gradient(ellipse 78% 110% at 7% -23%, #090711 48%, #121020 67%, #37205b 92%, #63388e 98%, transparent 100%),
        radial-gradient(ellipse 100% 100% at 94% 32%, #090711 58%, #1b122e 82%, #4a2662 96%, #76448f 98%, transparent 100%),
        linear-gradient(145deg, #180d29, #221333 43%, #080610 76%);
}
.login-screen .signin-card {
    width: min(100%, 410px);
    padding: clamp(1.5rem, 6vw, 2.5rem);
    border: 1px solid #3d344e;
    border-radius: 24px;
    background: linear-gradient(155deg, #211a30, #15121e 68%);
    box-shadow: 0 24px 80px #05030ac9;
    backdrop-filter: none;
}
.login-screen .wordmark { display: flex; justify-content: center; margin: 0 0 1.5rem; }
.login-screen h1 { text-align: center; font-size: 1.4rem; margin-bottom: 1.4rem; }
.login-screen form { gap: 1rem; }
.login-screen input:not([type="hidden"]) { min-height: 46px; background: #120f19; border-color: #494059; }
.login-screen .button { min-height: 46px; }
.app-shell .title-hero { margin-inline: 0; border-radius: 22px; margin-top: 0; min-height: clamp(340px, 39vw, 500px); }
.panel, .personal-card, .title-watchlist, .picker-feature, .filters, .notice { border-color: var(--line); }
.personal-card, .title-watchlist, .picker-feature { background: var(--panel); }
.picker-primary { border-color: #7661ed; background: #6b57dc; color: #fff; }
.picker-primary:hover { background: #755fe5; border-color: #8a76fb; }
.watch-status button[aria-pressed="true"] { background: #4e3d83; color: #fff; }
.discover-results .discover-add { color: var(--ink); }
input, select, textarea { accent-color: var(--accent); }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) center, calc(100% - 11px) center; background-size: 5px 5px; background-repeat: no-repeat; }

@media (min-width: 821px) and (max-width: 1150px) {
    .app-shell .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .app-sidebar { display: none; }
    .app-topbar { min-height: 61px; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
    .mobile-wordmark { display: inline-flex; }
    .mobile-wordmark .wordmark-art { width: clamp(84px, 23vw, 100px); }
    .search-launcher { width: 44px; min-height: 44px; justify-content: center; margin-left: auto; padding: 0; }
    .search-launcher span, .search-launcher kbd { display: none; }
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        z-index: 6;
        inset: auto 0 0;
        min-height: 58px;
        padding: .2rem env(safe-area-inset-right) calc(.2rem + env(safe-area-inset-bottom)) env(safe-area-inset-left);
        border-top: 1px solid #ffffff17;
        background: #15151df7;
    }
    .mobile-nav a { flex: 1; display: grid; place-items: center; gap: .25rem; align-content: center; min-height: 49px; color: var(--muted); text-decoration: none; font-size: .68rem; }
    .mobile-nav a[aria-current="page"] { color: #c6bcff; }
    .app-shell .content { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
    .app-shell .mobile-collection-links { display: flex; }
    .app-shell .home { padding-top: .45rem; }
    .app-toast { bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
    .app-shell .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
    .home-feature { min-height: auto; border-radius: 17px; }
    .feature-slide { min-height: 365px; align-items: flex-end; }
    .feature-slide::after { background: linear-gradient(0deg, #12111afa 8%, #13121aa8 45%, #15141b1a 77%); }
    .feature-art { object-position: 60% top; }
    .feature-copy { padding: 1.05rem 1.05rem 2.55rem; gap: .4rem; }
    .feature-copy h1, .feature-copy h2 { font-size: 1.75rem; }
    .feature-status { font-size: .71rem; margin-bottom: .18rem; }
    .feature-synopsis { font-size: .82rem; }
    .feature-actions { margin-top: .65rem; }
    .feature-actions .button { padding-inline: .65rem; }
    .feature-actions .icon-button { padding: 0; }
    .feature-arrows { display: none; }
    .feature-pagination { bottom: .025rem; }
    .feature-pagination button { min-width: 36px; min-height: 44px; }
    .home-row-header { gap: .35rem; }
    .home-row-header p { font-size: .76rem; }
    .home-row-header a { min-height: 40px; font-size: .73rem; }
    .home-row-header a .ui-icon { width: .8rem; }
}

.search-skeleton { background: linear-gradient(150deg, #22212a, #1a1920); }

.topbar-account { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: none; }
.topbar-account > form { margin: 0; }
.topbar-profiles .avatar-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    text-decoration: none;
}
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-link:hover .avatar { border-color: #a595fc; }
.topbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .65rem;
    border-radius: 9px;
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
    font-size: .84rem;
    cursor: pointer;
}
.topbar-logout:hover { color: var(--ink); background: var(--panel); border-color: var(--line); }
.topbar-logout .ui-icon { width: 1rem; height: 1rem; }
.profile-page { max-width: 760px; }
.profile-card {
    margin-bottom: 1.25rem;
    padding: clamp(1.25rem, 5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(165deg, #21212c, #16161e 65%);
    text-align: center;
}
.profile-header { display: grid; justify-items: center; gap: .9rem; }
.profile-header .avatar { width: 88px; height: 88px; font-size: 1.75rem; border-color: #525064; }
.profile-header h1 { margin-bottom: .2rem; overflow-wrap: anywhere; }
.profile-header p { margin: 0; }
.profile-activity { margin-top: 1.65rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.profile-activity h2 { font-size: .9rem; color: var(--muted); }
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: .85rem 0 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--line);
}
.profile-stats div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: .3rem;
    padding: .8rem .35rem;
    background: #1b1b25;
}
.profile-stats dt { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.profile-stats dd { margin: 0; font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-upload { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.profile-upload label { min-width: min(250px, 100%); }
.profile-upload-hint { font-size: .82rem; }

@media (max-width: 820px) {
    .topbar-account { gap: .08rem; margin-left: 0; }
    .topbar-logout { padding: 0; }
    .topbar-logout span { display: none; }
}
@media (max-width: 570px) {
    .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.availability-credit .attribution-link { display: inline; color: inherit; }
.poster-action button:hover { background: #262333; border-color: #aaa1d8; }

@media (min-width: 821px) {
    .app-shell {
        --frame-gutter: clamp(.7rem, 1.05vw, 1.125rem);
        padding: var(--frame-gutter);
        overflow: hidden;
        background: radial-gradient(ellipse at 50% 0%, #111117, #050507 76%);
    }
    .app-frame {
        display: grid;
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
        height: calc(100vh - var(--frame-gutter) - var(--frame-gutter));
        height: calc(100dvh - var(--frame-gutter) - var(--frame-gutter));
        border: 1px solid #484653;
        border-radius: 32px;
        overflow: hidden;
        background: var(--canvas);
        box-shadow: 0 18px 50px #0008;
    }
    .app-frame .app-sidebar {
        position: relative;
        width: auto;
        min-height: 0;
        inset: auto;
    }
    .app-workspace {
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    .app-toast {
        right: calc(var(--frame-gutter) + 1rem);
        bottom: calc(var(--frame-gutter) + 1rem);
    }
}
