/* The Stubs tracker experience. Shared controls and their behavioral contracts
 * live in app.css; this layer owns page composition, rhythm and navigation.
 * Artwork supplies the color. Interface state stays on the neutral ramp. */
:root {
  --rail-width: 216px;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --content-width: 1500px;
  /* Secondary labels are still reading text, not disabled controls. */
  --muted-2: var(--muted);
}
:root[data-theme] { --muted-2: var(--muted); }
body { line-height: 1.5; }
.ui-icon { flex: 0 0 auto; vertical-align: middle; }
.heading-period, .brand-period { color: var(--muted-2); }
.app-sidebar, .topbar-context { display: none; }
.app-page .shell { max-width: var(--content-width); padding-top: 1.75rem; }
.topbar__spacer { display: block; }
.topbar { gap: .65rem; border-bottom: 1px solid var(--border); height: calc(var(--topbar-height) + env(safe-area-inset-top)); }
.topbar__brand { display: inline-flex; align-items: baseline; gap: 0; font-size: 1.55rem; font-weight: 850; letter-spacing: -.065em; }
.topbar__brand::before { display: none; }
.topbar .avatar { width: 36px; height: 36px; border-radius: var(--radius); font-size: .8rem; }
#theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; }
.mobile-menu { position: relative; }
.mobile-menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border-radius: var(--radius); color: var(--muted); }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > summary { background: var(--surface); color: var(--text); }
.mobile-menu nav { position: absolute; z-index: 60; right: -5.5rem; top: calc(100% + .75rem); width: min(270px, calc(100vw - 2rem)); padding: .75rem; display: grid; gap: .2rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-xl); }
.mobile-menu nav .eyebrow { padding: .5rem .65rem; }
.mobile-menu nav a { display: flex; align-items: center; gap: .85rem; min-height: 46px; padding: .65rem; border-radius: var(--radius); text-decoration: none; }
.mobile-menu nav a:hover { background: var(--surface); }
.page-head { margin-bottom: 1.8rem; }
.page-head h1 { font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1.12; font-weight: 780; letter-spacing: -.055em; margin-bottom: .55rem; }
.page-head p { margin: .3rem 0 0; max-width: 65ch; }
.page-head .eyebrow { margin-bottom: .55rem; }
.eyebrow { font-size: .65rem; letter-spacing: .13em; font-weight: 650; color: var(--muted); }
.section { margin-top: 2.5rem; }
.section__head { align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.section__head h2 { font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 720; letter-spacing: -.025em; }
.section__head .eyebrow { margin: 0 0 .3rem; }
.section__more { font-size: .75rem; font-weight: 550; white-space: nowrap; text-decoration: none; color: var(--muted); }
.section__more::after { content: ' →'; margin-left: .2rem; }
.panel, .card { border-color: var(--border); box-shadow: none; }
.panel { padding: clamp(1rem, 2.3vw, 1.55rem); background: var(--surface-2); }
.btn { gap: .6rem; min-height: 42px; padding: .65rem 1rem; font-size: .8rem; line-height: 1.25; font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none; }
.btn--small { min-height: 36px; padding: .5rem .8rem; font-size: .75rem; }
.btn--primary { font-weight: 700; }
.btn.btn--trakt { color: #fff; background: #ed1c24; border-color: #ed1c24; }
.btn.btn--trakt:hover { color: #fff; background: #c4161c; border-color: #c4161c; }
input:not([type='checkbox']):not([type='radio']):not([type='range']), select, textarea { border-radius: var(--radius); font-size: 1rem; }
label { text-transform: none; letter-spacing: 0; font-weight: 550; }
.tabs, .library-tabs, .settings-jump { gap: .3rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border); }
.tabs a, .library-tabs a, .settings-jump a { font-size: .8rem; font-weight: 550; letter-spacing: 0; text-transform: none; }
.chip, .pill { font-weight: 500; letter-spacing: 0; text-transform: none; border-radius: var(--radius); }
.empty--surface { padding: clamp(2rem, 6vw, 4rem) 1.25rem; border: 1px dashed var(--border-strong); background: var(--surface-2); border-radius: var(--radius); }
.empty h2 { font-size: 1.3rem; letter-spacing: -.035em; }
.empty p { max-width: 48ch; margin-inline: auto; line-height: 1.7; }
.empty .btn { justify-self: center; }

/* Home is a reading surface, not a wall of statistics. */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.home-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.home-head .muted { font-size: .85rem; }
.home-calendar { flex: 0 0 auto; }
.spotlight { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #111; color: #fff; }
.spotlight__art { position: absolute; z-index: -2; inset: 0; background: linear-gradient(120deg, #242426, #080808); }
.spotlight__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.spotlight__art .spotlight__poster-art { object-position: right 32%; width: 64%; margin-left: auto; }
.spotlight::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #080808 0%, rgb(8 8 8 / .88) 28%, rgb(8 8 8 / .35) 65%, rgb(8 8 8 / .08)), linear-gradient(0deg, rgb(0 0 0 / .5), transparent 55%); }
.spotlight__copy { width: 64%; max-width: 660px; padding: clamp(1.5rem, 4vw, 3.5rem); }
.spotlight__eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; color: #d4d4d8; }
.spotlight__eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.spotlight h2 { font-size: clamp(2rem, 3.9vw, 3.6rem); line-height: 1.05; font-weight: 780; letter-spacing: -.055em; overflow-wrap: anywhere; }
.spotlight__meta { color: #d4d4d8; font-size: .8rem; margin: .9rem 0 1.5rem; }
.spotlight__meta span { display: block; margin-top: .25rem; color: #a1a1aa; }
.spotlight__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.spotlight__actions .btn { color: #09090b; background: #fafafa; border-color: #fafafa; }
.spotlight__queue { color: #e4e4e7; font-size: .8rem; text-decoration: none; }
.spotlight__queue:hover { color: #fff; }
.spotlight__index { position: absolute; right: 1.2rem; bottom: 1rem; font-size: .55rem; letter-spacing: .14em; color: #d4d4d8; }
.spotlight__progress { max-width: 240px; margin-top: 1.25rem; font-size: .65rem; color: #d4d4d8; }
.spotlight__progress .progress { position: static; display: block; margin-top: .4rem; height: 3px; background: #3f3f46; }
.spotlight__progress .progress__fill { display: block; height: 100%; background: #fafafa; }
.home-secondary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
.home-secondary .rows { border: 1px solid var(--border); padding: .25rem .85rem; border-radius: var(--radius); background: var(--surface-2); }
.home-secondary .media-row { padding: .7rem 0; gap: .8rem; }
.home-secondary .row__thumb { width: 40px; height: 58px; border-radius: var(--radius); }
.home-secondary .row__name { font-size: .8rem; }
.home-secondary .row__meta { font-size: .68rem; margin-top: .2rem; }

/* Shared shelves: image, name, one line of context. No fake play controls. */
.shelf { display: flex; gap: .9rem; padding-bottom: .75rem; scrollbar-width: thin; }
.shelf > li { min-width: 0; flex: 0 0 calc((100% - 4.5rem) / 6); }
.shelf--wide > li, .home-section .shelf--wide > li { flex: 0 0 calc((100% - 1.8rem) / 3); }
.poster__frame, .resume__frame, .library-card__art { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.poster__name, .resume__name { margin-top: .65rem; font-size: .8rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.poster__meta, .resume__meta { font-size: .66rem; line-height: 1.5; margin-top: .25rem; color: var(--muted); }
.poster__fallback, .resume__fallback, .episode-card__fallback { display: grid; place-items: center; width: 100%; height: 100%; overflow-wrap: anywhere; padding: 1rem; background: linear-gradient(145deg, var(--surface), var(--surface-2)); color: var(--muted); font-weight: 500; text-align: center; }
.poster__fallback .ui-icon, .resume__fallback .ui-icon { width: 32px; height: 32px; color: var(--muted-2); }
.resume__show { font-size: 1rem; font-weight: 700; letter-spacing: -.025em; }
.resume__tag { font-size: .62rem; font-weight: 600; letter-spacing: .02em; }
.quick-actions-trigger { width: 36px; height: 36px; min-height: 36px; border-radius: var(--radius); }
.recommendation-card__reason { font-size: .66rem; color: var(--muted); line-height: 1.45; }
.recommendation-card__dismiss { min-height: 32px; font-size: .65rem; }
.now-watching { box-shadow: none; }
.now-watching__title { letter-spacing: -.04em; }
.now-watching__body { padding: .85rem 1rem; }

/* Search and the personal collection use the same rhythm as media shelves. */
.search-lead { display: flex; flex-direction: row; gap: .65rem; max-width: 780px; margin-bottom: 1.4rem; }
.search-lead input[type='search'] { flex: 1; min-width: 0; min-height: 54px; padding: .9rem 1rem; background: var(--surface-2); }
.search-lead .btn { flex: 0 0 auto; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; border: 0; }
.search-results > li { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.search-results .media-row { min-height: 120px; padding: .8rem; gap: 1rem; border: 0; }
.search-results .row__thumb { width: 62px; height: 93px; flex: 0 0 62px; border-radius: var(--radius); background: var(--surface); }
.search-results .row__name { font-size: .95rem; font-weight: 600; }
.search-results .row__meta { margin-top: .4rem; font-size: .75rem; }
.library-head { margin-bottom: 1.25rem; }
.library-more { background: transparent; border: 0; padding: .15rem 0; margin: .25rem 0 1.5rem; }
.library-more > summary { display: inline-flex; min-height: 42px; align-items: center; padding: .55rem .8rem; gap: .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: .75rem; color: var(--text-em); }
.library-more__body { margin-top: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.library-grid--posters { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.65rem 1rem; }
.library-card--poster { padding: 0; border: 0; border-radius: var(--radius); background: transparent; box-shadow: none; }
.library-card--poster .library-card__body { padding: .65rem 0 0; }
.library-card--poster h2 { font-size: .8rem; line-height: 1.4; letter-spacing: -.015em; font-weight: 620; }
.library-card--poster h2 a { text-decoration: none; }
.library-card--poster .library-card__topline { margin-bottom: .35rem; }
.library-card--poster .library-card__topline .chip { border: 0; padding: 0; color: var(--muted); background: transparent; font-size: .62rem; }
.library-card__meta, .library-card__next { font-size: .65rem; line-height: 1.5; }
.library-card__flags { gap: .25rem; font-size: .55rem; }
.library-card--poster .library-card__select { top: .4rem; left: .4rem; }
.library-grid--bulk .library-card:has([data-library-select]:checked) { outline: 2px solid var(--text); outline-offset: 5px; }
.library-bulkbar { top: calc(var(--topbar-height) + env(safe-area-inset-top) + .75rem); border-radius: var(--radius); background: var(--surface); z-index: 15; }
.pagination { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }

/* Detail pages retain every tracking hook, with artwork and actions together. */
.detail-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: 0 0 1.1rem; font-size: .7rem; color: var(--muted); }
.detail-breadcrumb a { color: var(--muted); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--text); }
.hero__frame, .episode-detail__hero { border-radius: var(--radius); border: 1px solid var(--border); margin-inline: 0; height: clamp(260px, 30vw, 380px); box-shadow: none; }
.hero__frame::before { background: linear-gradient(to top, rgb(0 0 0 / .75), transparent); }
.hero__frame::after { background: linear-gradient(to right, rgb(0 0 0 / .35), transparent); }
.hero__content { gap: 1.5rem; margin-top: 1.2rem; align-items: flex-end; }
.hero__poster { width: 170px; margin-top: -7rem; margin-left: 1.5rem; box-shadow: 0 12px 28px rgb(0 0 0 / .4); }
.hero__copy h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); letter-spacing: -.05em; line-height: 1.08; font-weight: 780; }
.hero__meta { font-size: .7rem; text-transform: none; font-weight: 500; letter-spacing: .02em; }
.hero__tagline { font-size: .85rem; font-style: normal; margin-top: .7rem; }
.hero__actions { gap: .6rem; margin-top: 1.5rem; }
.hero__actions .btn { min-height: 44px; }
.detail-sections { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 1.5rem; border-bottom: 1px solid var(--border); margin: 1.75rem 0 1.4rem; scrollbar-width: thin; }
.detail-sections a { display: flex; gap: .35rem; align-items: center; min-height: 44px; padding-bottom: .6rem; font-size: .75rem; font-weight: 550; text-decoration: none; white-space: nowrap; color: var(--muted); }
.detail-sections a:hover { color: var(--text); }
.detail-sections a span { font-size: .65rem; color: var(--muted-2); }
.title-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 0; }
.title-rating .section__head { margin: 0; }
.title-rating h2, .episode-rating-primary h2 { font-size: .8rem; font-weight: 600; }
.rating-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.rating-picker button { border-radius: var(--radius); width: 36px; min-width: 36px; height: 36px; font-size: .75rem; font-weight: 550; }
.rating-picker button.btn { width: auto; }
.title-more { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius); }
.title-more > summary { font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.title-more__body { padding-top: 1rem; }
.tracker-position { margin-top: 1.4rem; }
.upnext__box { padding: 1.1rem; background: var(--surface-2); border-color: var(--border); }
.upnext__label { font-size: .65rem; letter-spacing: .06em; font-weight: 600; }
.upnext__title { font-size: 1rem; font-weight: 600; }
.upnext__meta { font-size: .7rem; }
.tracker-snapshot { margin-top: 1.75rem; }
.tracker-snapshot .section__head .eyebrow, .episode-snapshot .eyebrow { display: none; }
.metadata-snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.metadata-snapshot article { padding: 1rem; min-height: 90px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; }
.metadata-snapshot article:last-child { border-right: 0; }
.metadata-snapshot article strong { margin-top: .5rem; font-size: 1.2rem; font-weight: 600; }
.metadata-snapshot article span { font-size: .64rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.metadata-snapshot article small { font-size: .65rem; }
.metadata-intro { max-width: 840px; margin-top: 1.7rem; }
.overview { line-height: 1.8; font-size: .95rem; max-width: 75ch; }
.score-chip { border-radius: var(--radius); box-shadow: none; background: var(--surface-2); }
.metadata-episodes { padding-top: 1.8rem; border-top: 1px solid var(--border); }
.season-tabs { margin-bottom: 1rem; }
.episode-card { display: grid; grid-template-columns: 155px minmax(0, 1fr); align-items: stretch; }
.episode-card__visual { min-width: 0; display: flex; }
.episode-card__image { text-decoration: none; width: 100%; height: 100%; min-height: 105px; aspect-ratio: 16/10; }
.episode-card__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: .9rem; }
.episode-card__eyebrow { letter-spacing: .015em; font-weight: 500; font-size: .6rem; line-height: 1.6; }
.episode__name { margin: .25rem 0; font-size: .85rem; font-weight: 650; line-height: 1.35; }
.episode__meta { font-size: .65rem; }
.episode-card.quick-actions-host .episode__tick { border-radius: var(--radius); left: auto; width: 36px; height: 36px; min-height: 36px; right: .4rem; top: .4rem; font-size: .75rem; }
.episode-card .quick-actions-trigger { left: .4rem; right: auto; top: .4rem; }
.episode-card[data-spoiler-hidden="true"] .episode-card__fallback { visibility: hidden; }
.episode-card__spoiler { font-size: .6rem; padding: 2.6rem .6rem .5rem; }
.episode-mini-shelf__image span, .trailer-card__play, .you-profile__avatar { border-radius: var(--radius); }
.episode-detail__copy .hero__copy h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.episode-detail__copy .eyebrow { margin: .8rem 0 .4rem; }
.episode-detail__copy { margin-top: 1.5rem; }
.episode-rating-primary { margin-top: 1.5rem; }
.episode-nav { margin-top: 2rem; }
.episode-nav a { border-radius: var(--radius); background: var(--surface-2); padding: 1rem; }
.episode-nav a strong { font-weight: 600; }
.about-grid > div { border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 1rem 0; background: transparent; }
.about-grid { gap: 1rem 2rem; }
.about-grid dt { font-size: .65rem; text-transform: none; letter-spacing: 0; }
.about-grid dd { margin-top: .45rem; }

/* Every secondary route is part of the product, including the quiet ones. */
.calendar-day { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.calendar-day__date { font-size: .75rem; line-height: 1.7; color: var(--muted); }
.calendar-day .rows { margin: 0; }
.calendar-day .row__thumb { border-radius: var(--radius); }
.media-row { border-color: var(--border); }
.row__name { font-weight: 600; }
.list-cards { gap: 1rem; }
.list-card { position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 1.5rem; overflow: hidden; }
.list-card::after { content: '↗'; position: absolute; bottom: 1.25rem; right: 1.5rem; font-size: 1.2rem; color: var(--muted); }
.list-card__top { margin-bottom: 2rem; }
.list-card h2 { font-size: 1.4rem; letter-spacing: -.04em; font-weight: 650; }
.list-card p { color: var(--muted); font-size: .8rem; line-height: 1.7; }
.list-card__meta { margin-top: auto; padding-top: 1rem; font-size: .65rem; }
.stat { border: 1px solid var(--border); background: var(--surface-2); box-shadow: none; padding: 1.1rem; border-radius: var(--radius); }
.stat__value { font-family: var(--font); font-weight: 650; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .65rem; text-transform: none; letter-spacing: .01em; color: var(--muted); font-weight: 500; }
.stats-summary { gap: .65rem; }
.stats-summary__item--featured { background: var(--surface-2); border-color: var(--border-strong); min-width: 0; overflow: hidden; }
.stats-summary__item--featured .stat__value { font-size: clamp(1.65rem, 3vw, 2.35rem); min-width: 0; overflow: hidden; overflow-wrap: anywhere; }
.stats-bar-row { font-size: .7rem; }
.stats-bar-row__track { height: 5px; }
.stats-streaks { margin-top: 1.25rem; }
.stats-streaks > div { background: transparent; border: 0; padding: .5rem 1rem .5rem 0; }
.stats-streaks strong { font-weight: 650; }
.stats-streaks span { font-size: .65rem; }
.stats-heatmap { padding-bottom: .5rem; }
.stats-heatmap__day { border-radius: var(--radius); }
.stats-head .stats-year { align-items: center; }
.you-page { max-width: 1120px; gap: 1.5rem; }
.you-profile { padding: 1.2rem 0 1.7rem; border-bottom: 1px solid var(--border); }
.you-profile h1 { font-weight: 730; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.you-profile__avatar { font-size: 1.5rem; font-weight: 650; }
.you-profile p { font-size: .8rem; }
.you-profile .eyebrow { font-size: .6rem; margin-bottom: .4rem; }
.you-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.you-grid .stat { min-height: 105px; }
.you-grid .stat__value { font-size: 2rem; }
.you-section.panel { padding: 1.3rem; }
.you-section .section__head { padding-bottom: .65rem; }
.you-row { padding: 1rem 0; }
.you-row strong { font-size: .85rem; font-weight: 600; }
.you-row small { font-size: .75rem; }
.you-row:last-child { border-bottom: 0; }
.settings-page { max-width: 1050px; margin-inline: auto; }
.settings-section { margin-top: 1.25rem; scroll-margin-top: calc(var(--topbar-height) + 1.5rem); }
.settings-section h2 { font-size: 1.1rem; font-weight: 650; }
.settings-section .small { line-height: 1.7; }
.settings-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.settings-jump a { flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; }
.settings-section__head { padding-bottom: .5rem; }
.import-provider { border-radius: var(--radius); box-shadow: none; }
.activity-timeline { margin-top: 1.5rem; }
.activity-event__body { overflow-wrap: anywhere; }
.site-credits { color: var(--muted); opacity: .8; padding: 1.5rem var(--page-gutter) calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 1rem); font-size: .6rem; }

/* Invite-only entry. The form and all passkey/password semantics are unchanged. */
.guest-page .shell { max-width: 1280px; padding: max(2.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left)); }
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: min(780px, calc(100svh - 5rem)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; padding: 2.5rem; background: var(--surface-2); border-right: 1px solid var(--border); }
.sidebar-brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.07em; color: var(--text); text-decoration: none; }
.sidebar-brand > .ui-icon { width: 28px; height: 28px; }
.auth-story__copy { padding-block: 4rem; }
.auth-story__copy .eyebrow { margin-bottom: 1.4rem; }
.auth-story h1 { font-size: clamp(2.7rem, 4.5vw, 4.4rem); font-weight: 730; line-height: 1.08; letter-spacing: -.065em; }
.auth-story__copy > p:last-child { color: var(--muted); font-size: .95rem; line-height: 1.85; max-width: 32ch; margin-top: 1.5rem; }
.auth-story__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .65rem; color: var(--muted); }
.auth-ticket { padding: .7rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 2rem; }
.auth-card.card { width: 100%; max-width: 360px; margin: 0; padding: 0; border: 0; background: transparent; }
.auth-card > .eyebrow { margin: 0 0 .6rem; }
.auth-card h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.05em; }
.auth-card > .muted { font-size: .85rem; margin: .5rem 0 1.75rem; }
.auth-card > .muted.small { font-size: .7rem; margin: 1.5rem 0 0; }
.auth-card label { color: var(--muted); font-size: .75rem; }
.auth-card input { margin-top: .45rem; min-height: 46px; }
.auth-card .btn { min-height: 46px; }
.auth-card .divider { margin-block: 1.35rem; }

@media (min-width: 1024px) {
  .app-page { padding-left: var(--rail-width); }
  .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--rail-width); padding: 1.8rem 1rem 1.2rem; background: var(--bg); border-right: 1px solid var(--border); overflow-y: auto; }
  .app-sidebar .sidebar-brand { padding-left: .65rem; font-size: 1.85rem; gap: .6rem; }
  .sidebar-caption { color: var(--muted); font-size: .6rem; margin: .3rem 0 2.2rem; padding-left: .7rem; }
  .app-sidebar .topbar__links { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .25rem; }
  .app-sidebar .topbar__links a { display: flex; align-items: center; gap: .85rem; min-height: 43px; padding: .65rem .8rem; font-size: .78rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; }
  .app-sidebar .topbar__links a:hover { background: var(--surface-2); color: var(--text); }
  .app-sidebar .topbar__links a[aria-current] { background: var(--surface); border-color: var(--border); color: var(--text); }
  .app-sidebar .topbar__links a[aria-current]::after { content: ''; width: 4px; height: 4px; margin-left: auto; background: currentColor; border-radius: var(--radius); }
  .app-sidebar .topbar__links .ui-icon { width: 18px; height: 18px; }
  .app-sidebar .topbar-more { margin-top: 1.75rem; }
  .app-sidebar .topbar-more > summary { min-height: 30px; padding: 0 .8rem .45rem; text-transform: uppercase; letter-spacing: .12em; font-size: .55rem; font-weight: 600; color: var(--muted-2); }
  .app-sidebar .topbar-more__menu { position: static; display: grid; gap: .25rem; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .sidebar-bottom { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
  .sidebar-import { display: flex; gap: .6rem; align-items: center; padding: .8rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); text-decoration: none; }
  .sidebar-import > span { display: grid; gap: .15rem; flex: 1; }
  .sidebar-import strong { font-size: .68rem; font-weight: 600; }
  .sidebar-import small { font-size: .56rem; color: var(--muted); }
  .sidebar-import .ui-icon { width: 15px; height: 15px; }
  .sidebar-settings { display: flex; align-items: center; gap: .75rem; padding: .7rem; font-size: .75rem; text-decoration: none; color: var(--muted); }
  .sidebar-settings .ui-icon { width: 18px; height: 18px; }
  .sidebar-footnote { font-size: .53rem; color: var(--muted-2); text-align: center; padding-top: .65rem; }
  .topbar { padding-inline: var(--page-gutter); gap: 1rem; background: var(--bg); backdrop-filter: none; }
  .topbar__brand, .mobile-menu { display: none; }
  .topbar-context { display: inline; font-size: .75rem; color: var(--muted); }
  .topbar__search { display: flex; align-items: center; gap: .6rem; min-width: 260px; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
  .topbar__search > .ui-icon { width: 16px; height: 16px; color: var(--muted); }
  .topbar__search input[type='search'] { width: 245px; padding: .55rem 0; border: 0; outline-offset: 2px; background: transparent; font-size: .75rem; min-height: 36px; }
  .app-page .shell { padding: 2rem var(--page-gutter) 3rem; }
  .home-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar { display: none; }
  .site-credits { padding-bottom: 1.5rem; }
  .hero__actions { margin-left: calc(170px + 3rem); }
  .you-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .you-grid .stat { min-height: 115px; }
}
@media (min-width: 1360px) {
  :root { --rail-width: 224px; }
  .library-grid--posters { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (min-width: 1700px) {
  .shelf > li { flex-basis: calc((100% - 5.4rem) / 7); }
  .library-grid--posters { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  /* The inherited stylesheet switches at 768px; this rail starts at 1024px. */
  :root { --tabbar-height: 60px; }
  .topbar, .app-page .shell, .site-credits { padding-left: max(var(--page-gutter), env(safe-area-inset-left)); padding-right: max(var(--page-gutter), env(safe-area-inset-right)); }
  .tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .topbar__search { display: none; }
  .tabbar { display: flex; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--border); }
  .app-page .shell { padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 2rem); }
  .home-calendar { display: none; }
  .library-grid--posters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .episode-card { grid-template-columns: 135px minmax(0, 1fr); }
  .stats-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .shelf > li { flex-basis: calc((100% - 2.7rem) / 4); }
  .shelf--wide > li, .home-section .shelf--wide > li { flex-basis: calc((100% - .9rem) / 2); }
  .search-results { grid-template-columns: minmax(0, 1fr); }
  .library-grid--posters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__poster { width: 120px; margin-top: -5rem; margin-left: .85rem; }
  .hero__content { gap: 1rem; }
  .hero__copy h1 { font-size: clamp(1.65rem, 5vw, 2.2rem); }
  .hero__frame { height: 240px; }
  .hero__tagline { font-size: .72rem; }
  .hero__meta { font-size: .62rem; gap: .35rem .65rem; }
  .episode-cards { grid-template-columns: minmax(0, 1fr); }
  .episode-card { grid-template-columns: 155px minmax(0, 1fr); }
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; border: 0; }
  .auth-story { border: 0; border-bottom: 1px solid var(--border); padding: 1.75rem; }
  .auth-story__copy { padding: 2rem 0 0; }
  .auth-story h1 { font-size: 2.6rem; }
  .auth-story__copy .eyebrow, .auth-story__copy > p:last-child, .auth-story__foot { display: none; }
  .auth-form-wrap { padding: 2rem 1.75rem; }
  .guest-page .shell { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
}
@media (max-width: 479px) {
  .app-page .shell { padding-top: 1.4rem; }
  .page-head h1 { font-size: 1.9rem; }
  .page-head > div > .muted { font-size: .8rem; }
  .page-head--split { align-items: flex-start; flex-wrap: wrap; }
  .home-head h1 { font-size: 1.8rem; }
  .home-head .eyebrow { font-size: .6rem; }
  .spotlight { min-height: 360px; align-items: flex-end; }
  .spotlight::after { background: linear-gradient(0deg, #080808, rgb(8 8 8 / .8) 45%, rgb(8 8 8 / .15)); }
  .spotlight__art .spotlight__poster-art { width: 100%; object-position: center 25%; }
  .spotlight__copy { width: 100%; max-width: none; padding: 1.4rem 1.25rem 2.3rem; }
  .spotlight__eyebrow { margin-bottom: .85rem; font-size: .58rem; }
  .spotlight h2 { font-size: 2.25rem; }
  .spotlight__meta { margin: .65rem 0 1.2rem; font-size: .72rem; }
  .spotlight__index { font-size: .45rem; bottom: .7rem; right: 1rem; }
  .spotlight__queue { font-size: .75rem; }
  .section { margin-top: 2rem; }
  .section__head { margin-bottom: .85rem; }
  .section__head .eyebrow { font-size: .58rem; }
  .shelf { gap: .7rem; }
  .shelf > li { flex-basis: calc((100% - 1.4rem) / 3); }
  .shelf--wide > li, .home-section .shelf--wide > li { flex-basis: 81%; }
  .poster__name, .resume__name { font-size: .74rem; }
  .poster__meta { font-size: .62rem; }
  .library-grid--posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem .7rem; }
  .library-card--poster h2 { font-size: .78rem; }
  .library-card__meta, .library-card__next { font-size: .7rem; }
  .library-tabs--consumer { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
  .library-tabs--consumer a { flex: 0 0 auto; padding: .55rem .7rem; font-size: .7rem; }
  .search-lead { gap: .5rem; }
  .search-lead input[type='search'] { padding: .8rem; min-height: 48px; }
  .search-lead .btn { padding-inline: .85rem; }
  .search-lead .btn span { display: none; }
  .hero__frame { height: 220px; }
  .hero__content { align-items: flex-start; }
  .hero__poster { width: 94px; margin-top: -4rem; margin-left: .65rem; }
  .hero__copy h1 { font-size: 1.8rem; }
  .hero__tagline { margin-top: .5rem; }
  .hero__actions { gap: .6rem; }
  .hero__actions .btn { font-size: .78rem; }
  .detail-sections { margin-top: 1.4rem; gap: 1.2rem; }
  .detail-sections a { font-size: .7rem; }
  .title-rating { display: block; }
  .title-rating .section__head { margin-bottom: .7rem; }
  .rating-picker { gap: .45rem; }
  .rating-picker button { width: calc((100% - 4 * .45rem) / 5); min-width: 44px; height: 44px; }
  .rating-picker button.btn { width: auto; }
  .episode-card { grid-template-columns: 132px minmax(0, 1fr); }
  .episode-card__body { padding: .7rem; }
  .episode-card__image { min-height: 112px; }
  .episode-card.quick-actions-host .episode__tick { width: 44px; height: 44px; }
  .episode-card .quick-actions-trigger { width: 36px; height: 44px; }
  .episode__name { font-size: .78rem; }
  .episode-card__eyebrow { font-size: .54rem; }
  .episode__meta { font-size: .6rem; }
  .metadata-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metadata-snapshot article { border-bottom: 1px solid var(--border); min-height: 85px; }
  .metadata-snapshot article:nth-child(2n) { border-right: 0; }
  .metadata-snapshot article:last-child { border-bottom: 0; }
  .calendar-day { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-top: 1.25rem; }
  .calendar-day .chip { display: none; }
  .stats-head .stats-year { width: 100%; }
  .you-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .you-grid .stat { min-height: 95px; padding: .8rem; }
  .you-grid .stat__value { font-size: 1.75rem; }
  .you-grid .stat__label { font-size: .59rem; }
  .you-profile { gap: .8rem; }
  .you-profile h1 { font-size: 1.7rem; }
  .you-profile p { font-size: .7rem; }
  .you-section.panel { padding: 1rem; }
  .auth-story { padding: 1.5rem; }
  .auth-story h1 { font-size: 2.35rem; }
  .auth-form-wrap { padding: 1.75rem 1.5rem; }
  .auth-card h2 { font-size: 1.45rem; }
}
.session-row > div { grid-template-columns: minmax(0, 1fr); }
.session-row strong { overflow-wrap: anywhere; }

@media (pointer: coarse) {
  .btn, .btn--small, .quick-actions-trigger, .recommendation-card__dismiss { min-height: 44px; }
  .quick-actions-trigger, .episode-card .quick-actions-trigger { width: 44px; }
  .episode-card.quick-actions-host .episode__tick { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .tabbar a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
