/* Lyra on the web: the look shared by every screen. The colours, sizes and
   timings are the iPhone app's (docs/designs/lyra-web-screens.md, section 1).
   One breakpoint: a window 600 px wide or more is "wide". */
:root {
  --canvas: #110c15; --panel-top: #4f1c5e; --panel-bottom: #1c0a24;
  --accent: #ffb08a; --accent-deep: #f08c6e; --on-accent: #290f33;
  --text: rgba(255,255,255,.96); --secondary: rgba(255,255,255,.62); --tertiary: rgba(255,255,255,.40);
  --field: rgba(255,255,255,.055); --field-hover: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.09); --hairline: rgba(255,255,255,.06);
  --error: #ff7a73; --good: #8fe3a8;
  --sheet: #1b1320; --group: #1f1824; --popover: #2a2131;
  --in-lyra: #7fe09c; --wished: #ff9a4d; --cinemas: #ff6f69; --declined: rgba(255,255,255,.38);
  --accent-gradient: linear-gradient(180deg, var(--accent), var(--accent-deep));
  --plum-gradient: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  --r-poster: 10px; --r-still: 8px; --r-thumb: 7px; --r-card: 14px; --r-card-lg: 16px; --r-card-xl: 18px;
  --r-button: 14px; --r-field: 13px; --r-sheet: 28px; --r-tag: 5px;
  --margin: 20px; --row-gap: 12px; --section-gap: 22px; --home-gap: 28px;
  --shadow-primary: 0 6px 12px rgba(255,176,138,.28);
  --shadow-toast: 0 6px 14px rgba(0,0,0,.40);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --bar: 60px;            /* the tab bar's height */
  --content: 1500px;      /* the widest a page's content gets */
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --margin: 40px; } }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid rgba(255,176,138,.85); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255,176,138,.35); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.icon { flex: none; display: block; }

/* --- pictures --- */
.pic { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease-out; }
.pic.in { opacity: 1; }

/* --- the logo --- */
.logo { display: inline-grid; place-items: center; border-radius: 22.5%; background: linear-gradient(180deg, #5b2369, #200a29); border: .5px solid rgba(255,255,255,.08); position: relative; flex: none; }
.logo svg { width: 50%; height: 57%; margin-left: 4%; }
.logo.glow::before { content: ""; position: absolute; inset: -70%; background: radial-gradient(circle, rgba(255,176,138,.32), transparent 62%); z-index: -1; pointer-events: none; }
.logo.shadow { box-shadow: 0 8px 12px rgba(0,0,0,.4); }

/* --- grounds --- */
.brand-ground { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,176,138,.22), transparent 70%), var(--plum-gradient); }
.glow-ground { background: radial-gradient(ellipse 570px 380px at 50% 0, rgba(79,28,94,.55), transparent 100%) no-repeat, var(--canvas); background-size: 100% 420px, auto; }

/* --- spinner --- */
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: middle; }
.spinner.small { width: 15px; height: 15px; border-width: 2px; }
.spinner.white { border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- buttons --- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 18px; border-radius: var(--r-button); font-size: 16px; font-weight: 600; transition: transform .12s ease-out, filter .12s ease-out, background .12s ease-out, opacity .12s ease-out; user-select: none; }
.btn.primary { background: var(--accent-gradient); color: var(--on-accent); box-shadow: var(--shadow-primary), inset 0 0 0 .5px rgba(255,255,255,.25); }
.btn.primary:active:not(:disabled) { filter: brightness(.95); transform: scale(.985); }
.btn.primary:disabled { background: rgba(255,255,255,.07); color: var(--tertiary); box-shadow: none; }
.btn.ghost { background: var(--field); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--field-hover); }
.btn.ghost:active:not(:disabled) { background: var(--field-hover); }
.btn.destructive { min-height: 50px; background: rgba(255,122,115,.14); color: var(--error); }
.btn.pill { min-height: 46px; border-radius: 999px; background: #fff; color: #000; }
.btn.pill:active:not(:disabled) { transform: scale(.98); opacity: .85; }
.btn.pill:disabled, .btn.pill.status { background: rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: 15px; font-weight: 500; }
.btn.h48 { min-height: 48px; } .btn.h50 { min-height: 50px; } .btn.h44 { min-height: 44px; }
.btn.auto { width: auto; }
.circle-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.10); color: #fff; flex: none; transition: background .12s ease-out; }
.circle-btn:hover, .circle-btn:active { background: rgba(255,255,255,.18); }
.side-pill { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.10); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; flex: none; }
.side-pill:hover, .side-pill:active { background: rgba(255,255,255,.18); }
.link-btn { color: var(--accent); font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.quiet-btn { color: var(--tertiary); font-size: 14px; }
.quiet-btn:hover { color: var(--secondary); }

/* --- text pieces --- */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--tertiary); }
.section-heading { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.large-title { font-size: 34px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.error-line { display: flex; align-items: flex-start; gap: 7px; color: var(--error); font-size: 14px; }
.error-line::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: url("/img/exclaim.svg") center / contain no-repeat; mask: url("/img/exclaim.svg") center / contain no-repeat; }
.error-line.centered { justify-content: center; text-align: center; }

/* --- cards --- */
.card { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-card); }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px; border-radius: var(--r-card-xl); background: var(--field); border: 1px solid var(--line); text-align: center; }
.empty-card .badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,176,138,.12); color: var(--accent); }
.empty-card h3 { font-size: 17px; font-weight: 600; }
.empty-card p { font-size: 14px; color: var(--secondary); max-width: 420px; }
.empty-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; }

/* --- avatar --- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--plum-gradient); border: 1px solid var(--line); color: var(--accent); font-weight: 600; flex: none; user-select: none; }
.avatar.current { border: 2px solid var(--accent); }

/* --- toast --- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; padding: 11px 18px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-toast); transition: transform .25s ease-out, opacity .25s ease-out; z-index: 1000; max-width: calc(100vw - 40px); text-align: center; pointer-events: none; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 599px) { .toast { bottom: calc(var(--bar) + 24px + env(safe-area-inset-bottom)); } }

/* --- sheets --- */
.sheet-back { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); transition: background .2s ease-out; }
.sheet-back.in { background: rgba(0,0,0,.55); }
.sheet { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--sheet); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 26px 24px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease-out; display: flex; flex-direction: column; gap: 12px; }
.sheet-back.in .sheet { transform: none; }
@media (min-width: 600px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: var(--r-sheet); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .2s ease-out, opacity .2s ease-out; }
  .sheet-back.in .sheet { opacity: 1; }
}
.sheet-title { font-size: 18px; font-weight: 600; }
.sheet-text { font-size: 14px; color: var(--secondary); margin-bottom: 6px; }
.sheet.confirm .btn { min-height: 50px; }
.sheet.brand { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,176,138,.22), transparent 70%), var(--plum-gradient); }

/* --- skeletons --- */
.skel { background: rgba(255,255,255,.07); border-radius: 5px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); width: 70%; transform: translateX(-100%); animation: sheen 1.3s linear infinite; }
@keyframes sheen { to { transform: translateX(160%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { display: none; } }

/* --- the frame: tabs and the page --- */
#app { min-height: 100%; }
.shell { min-height: 100vh; }
.tabs { position: fixed; z-index: 100; display: flex; align-items: center; }
.tab { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--secondary); font-weight: 500; transition: color .15s ease-out, background .15s ease-out; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); }
.page { min-height: 100vh; }
.page-inner { max-width: var(--content); margin: 0 auto; }
@media (min-width: 600px) {
  /* wide: the bar floats at the top, as on an iPad */
  .tabs { top: 12px; left: 50%; transform: translateX(-50%); height: 44px; padding: 0 5px; gap: 2px; border-radius: 999px; background: rgba(32,24,38,.78); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .tab { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
  .tab.on { background: rgba(255,255,255,.09); }
  .tab .icon { width: 17px; height: 17px; }
  .page { padding-top: 68px; }
}
@media (max-width: 599px) {
  /* narrow: the bar is at the bottom, as on an iPhone */
  .tabs { left: 0; right: 0; bottom: 0; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(24,17,29,.86); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border-top: 1px solid var(--hairline); }
  .tab { flex: 1; flex-direction: column; gap: 3px; height: var(--bar); font-size: 10.5px; }
  .tab .icon { width: 23px; height: 23px; }
  .page { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
}

/* --- a notice across the top (offline, an update) --- */
.banner { display: flex; align-items: center; gap: 10px; margin: 0 var(--margin) 14px; padding: 12px 16px; border-radius: var(--r-card-lg); background: var(--field); border: 1px solid var(--line); font-size: 14px; color: var(--secondary); }
.banner .icon { color: var(--accent); }

/* --- first screens: the code, who's watching, the PIN pad --- */
.center-screen { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 24px; overflow: hidden; }
.center-col { position: relative; z-index: 1; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.corner-btn { position: absolute; top: 18px; left: 22px; z-index: 2; font-size: 16px; font-weight: 500; color: var(--text); padding: 8px 4px; }

.wall { position: absolute; inset: -30%; display: flex; flex-direction: column; gap: 12px; justify-content: center; transform: rotate(-12deg); pointer-events: none; }
.wall-lane { display: flex; gap: 12px; width: max-content; animation: drift 110s linear infinite; }
.wall-lane:nth-child(even) { animation-direction: reverse; margin-left: -68px; }
.wall-lane img { width: 124px; height: 186px; border-radius: var(--r-poster); object-fit: cover; flex: none; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-lane { animation: none; } }
.wall-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 55% at 50% 46%, rgba(17,12,21,.94), rgba(17,12,21,.88) 40%, rgba(17,12,21,.45) 100%); pointer-events: none; }
.link-title { font-size: 34px; font-weight: 700; margin-top: 22px; letter-spacing: -.4px; }
.link-sub { font-size: 15px; color: var(--secondary); margin-top: 8px; }
.link-code { margin-top: 22px; min-height: 41px; display: grid; place-items: center; font: 600 34px/1.2 var(--mono); letter-spacing: 2px; user-select: all; transition: opacity .2s ease-out; }
.link-status { margin-top: 22px; min-height: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.link-status .waiting { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--secondary); }
.link-status .linking { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.link-credit { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,.45); padding: 0 16px; }
.link-hint { margin-top: 26px; font-size: 13px; color: var(--tertiary); max-width: 420px; }

.who-title { font-size: 30px; font-weight: 600; letter-spacing: -.4px; margin-top: 26px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 160px)); justify-content: center; gap: 26px 18px; margin-top: 34px; width: 100%; }
.who-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; }
.who-tile:disabled { opacity: .6; }
.who-tile .face { position: relative; margin-bottom: 6px; transition: transform .15s ease-out; }
.who-tile:hover:not(:disabled) .face { transform: scale(1.04); }
.who-tile .lock { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sheet); border: 1px solid var(--line); color: var(--secondary); }
.who-tile .busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); }
.who-tile .name { font-size: 15px; font-weight: 600; }
.who-tile .role { font-size: 12px; color: var(--tertiary); min-height: 16px; }
.who-unlink { margin-top: 44px; }
.who-note { font-size: 15px; color: var(--secondary); margin-top: 30px; }

.pin-name { font-size: 22px; font-weight: 600; margin-top: 14px; }
.pin-ask { font-size: 15px; color: var(--secondary); margin-top: 4px; }
.pin-heading { font-size: 20px; font-weight: 600; }
.pin-pad { display: flex; flex-direction: column; align-items: center; margin-top: 26px; }
.pin-pad.off { opacity: .45; pointer-events: none; }
.pin-dots { display: flex; gap: 18px; height: 14px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--secondary); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.pin-dots.shake { animation: shake .4s linear; }
@keyframes shake { 0%, 100% { transform: none; } 17%, 50%, 83% { transform: translateX(-10px); } 33%, 67% { transform: translateX(10px); } }
.pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 22px; margin-top: 30px; }
.pin-key { width: 76px; height: 76px; border-radius: 50%; background: var(--field); border: 1px solid var(--line); font-size: 30px; font-weight: 400; display: grid; place-items: center; transition: background .1s ease-out; }
.pin-key:hover { background: var(--field-hover); }
.pin-key:active { background: rgba(255,255,255,.16); }
.pin-key.blank, .pin-key.del { background: none; border-color: transparent; }
.pin-key.del.hide { visibility: hidden; }
.pin-msg { min-height: 44px; margin-top: 18px; display: grid; place-items: center; }

/* --- the launch intro --- */
.intro { position: fixed; inset: 0; z-index: 2000; background: var(--canvas); display: grid; place-items: center; transition: opacity .45s ease-in, transform .45s ease-in; transform-origin: 46% 50%; }
.intro.out { opacity: 0; transform: scale(10); pointer-events: none; }
.intro .mark { width: 132px; position: relative; z-index: 1; }
.intro .mark rect { transform-box: fill-box; transform-origin: center; transform: scaleY(.15); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .15s ease-out; }
.intro.up .mark rect { transform: none; opacity: 1; }
.intro .mark rect:nth-of-type(2) { transition-delay: .09s; } .intro .mark rect:nth-of-type(3) { transition-delay: .18s; } .intro .mark rect:nth-of-type(4) { transition-delay: .27s; }
.intro .halo { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(79,28,94,.6), transparent 70%); transform: scale(.55); opacity: 0; transition: transform .7s ease-out, opacity .7s ease-out; }
.intro.lit .halo { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .intro { transition: opacity .3s; } .intro.out { transform: none; } .intro .mark rect { transition: none; transform: none; opacity: 1; } }

/* --- posters --- */
.poster { display: flex; flex-direction: column; width: var(--poster-w, 124px); flex: none; min-width: 0; text-align: left; }
.poster-frame { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--r-poster); overflow: hidden; background: var(--plum-gradient); box-shadow: inset 0 0 0 1px var(--hairline); isolation: isolate; }
.poster-frame.still { aspect-ratio: 16 / 9; border-radius: var(--r-still); }
.poster-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hairline); pointer-events: none; }
.poster-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; }
.poster-blank .mark { opacity: .16; filter: grayscale(1) brightness(3); }
.poster-blank-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poster-name { margin-top: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-sub { font-size: 12px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.poster .poster-frame, .poster-btn .poster-frame { transition: transform .15s ease-out, filter .15s ease-out; }
@media (hover: hover) { a.poster:hover .poster-frame, .poster-btn:hover .poster-frame { transform: scale(1.03); filter: brightness(1.08); } }
.poster-btn { display: block; width: 100%; border-radius: var(--r-poster); }
.pill-mark { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill-mark.queued { background: rgba(0,0,0,.62); color: #fff; }
.watched-mark { position: absolute; top: 6px; right: 6px; width: max(20px, 18%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.watched-mark .icon { width: 55%; height: 55%; stroke-width: 2.6; }
.play-mark { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.continue-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.continue-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.55); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--accent); }

/* --- rows and grids --- */
.row { display: flex; flex-direction: column; gap: var(--row-gap); }
.row > .section-heading, .row > .label-row { padding: 0 var(--margin); }
.h-scroll { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px var(--margin); scroll-padding: 0 var(--margin); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-scroll::-webkit-scrollbar { display: none; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poster-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px 12px; }
.poster-grid .poster { width: auto; }
.skel-heading { width: 170px; height: 20px; margin: 0 var(--margin); }
.skel-poster { width: 124px; aspect-ratio: 2 / 3; border-radius: var(--r-poster); }
.skel-poster.fill { width: 100%; }
.skel-line { height: 11px; margin-top: 8px; } .skel-line.w80 { width: 80%; } .skel-line.w40 { width: 40%; height: 10px; }
.skeleton-home { display: flex; flex-direction: column; gap: var(--home-gap); }

/* --- status line --- */
.status-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.status-line i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-line.in-lyra { color: var(--in-lyra); } .status-line.wished { color: var(--wished); } .status-line.cinemas { color: var(--cinemas); }
.status-line.declined { color: var(--secondary); } .status-line.declined i { background: var(--declined); }

/* --- the two-part switch --- */
.pill-picker { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.10); }
.pill-picker button { flex: 1; height: 38px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--secondary); transition: background .15s ease-out, color .15s ease-out; }
.pill-picker button.on { background: #fff; color: #000; }

/* --- chips --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 15px; border-radius: 999px; background: rgba(255,255,255,.10); font-size: 15px; font-weight: 500; transition: background .15s ease-out, color .15s ease-out; }
.chip:hover { background: rgba(255,255,255,.16); }
.chip.on { background: #fff; color: #000; }

/* --- menus --- */
.menu { position: fixed; z-index: 950; min-width: 230px; max-width: 320px; max-height: min(70vh, 520px); overflow: auto; padding: 6px; border-radius: 14px; background: rgba(42,33,49,.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0,0,0,.5); opacity: 0; transform: scale(.96); transform-origin: top right; transition: opacity .12s ease-out, transform .12s ease-out; }
.menu.in { opacity: 1; transform: none; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 15px; text-align: left; }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: rgba(255,255,255,.09); outline: none; }
.menu-item:disabled { color: var(--tertiary); }
.menu-item.destructive { color: var(--error); }
.menu-check { width: 16px; flex: none; color: var(--accent); }
.menu-label { flex: 1; min-width: 0; }
.menu-icon { color: var(--secondary); } .menu-item.destructive .menu-icon { color: var(--error); }
.menu-chev { color: var(--tertiary); transition: transform .15s ease-out; } .menu-chev.open { transform: rotate(90deg); }
.menu-divider { height: 1px; margin: 6px 4px; background: var(--line); }
.menu-heading { padding: 8px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--tertiary); }
.menu-sub { padding-left: 14px; }

/* --- a sub-screen's top line --- */
.back-bar { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px calc(var(--margin) - 10px); }
.back-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); }
.back-btn:hover { background: var(--field-hover); }
.back-title { flex: 1; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-right { display: flex; align-items: center; gap: 8px; }
/* a page that covers the tab bar on a narrow window (a title "card", the player) */
@media (max-width: 599px) { body.cover .tabs { display: none; } body.cover .page { padding-bottom: 0; } }

/* the link code's QR, on a white rounded card */
.link-qr { margin-top: 24px; width: 184px; height: 184px; }
.qr-card { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: qr-in .2s ease-out; }
.qr-card svg { display: block; width: 100%; height: 100%; }
@keyframes qr-in { from { opacity: 0; } }
