/* SwiftRecs. Neutral black, red for action, gold only for praise and the logo. Poster-led: the artwork carries the colour.
   Shapes: pills (999px) for buttons, chips and inputs; 16px for cards; 8px for small things such as posters.
   Type: one page title (h1), one section heading (.rowhead h2 / h2.section), one card heading (h3). */
:root {
  --bg: #0f0f0f; --surface: #181818; --raised: #222222; --line: #303030;
  --text: #f4f4f4; --dim: #a6a6a6; --faint: #707070;
  --accent: #d81e28; --accent-text: #ff6b72; --accent-ink: #fff;
  --neg: #8c8c8c;   /* "not for me": deliberately grey, never red */
  --gold: #f0b429; --gold-shine: linear-gradient(120deg, #c9820a 0%, #ffd66b 30%, #f0b429 50%, #ffe7a3 70%, #d18f0f 100%);
  --red-fill: linear-gradient(180deg, #e3262f, #c41922);
  --card-bg: linear-gradient(180deg, #171717, #121212); --card-line: #242424;
  --r: 8px; --r-card: 16px; --gutter: clamp(16px, 3.5vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: var(--line) transparent; }
body { margin: 0; color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 90% 420px at 50% 0, rgba(216,30,40,.07), transparent 75%) no-repeat, var(--bg); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }   /* card heading */
.dim { color: var(--dim); } .hint { color: var(--faint); font-size: 13px; }
svg { width: 16px; height: 16px; display: block; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons: pills, one family with the chips */
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid #2c2c2c; background: linear-gradient(180deg, #1f1f1f, #171717); border-radius: 999px; padding: 9px 18px;
  font-weight: 550; white-space: nowrap; transition: background .12s, border-color .12s; }
button:hover { background: linear-gradient(180deg, #2a2a2a, #1f1f1f); border-color: #3d3d3d; }
button.primary { background: var(--red-fill); border-color: #c41922; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(216,30,40,.22); }
button.primary:hover { background: linear-gradient(180deg, #f0323b, #d31f28); }
button.ghost { background: none; border-color: transparent; color: var(--dim); box-shadow: none; }
button.ghost:hover { color: var(--text); background: var(--raised); }
button.on { border-color: var(--accent); color: var(--accent-text); background: #1a1212; }
button.on.good { border-color: var(--gold); color: var(--gold); } button.on.bad { border-color: #777; color: #bbb; }
button:disabled { opacity: .55; cursor: default; }
.iconbtn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; } .iconbtn svg { width: 18px; height: 18px; }

/* inputs: the same pill, height and focus ring for text, number, select and file */
input[type=text], input[type=password], input[type=search], input[type=number], select {
  width: 100%; min-height: 40px; padding: 9px 16px; background: #161616; border: 1px solid var(--line); border-radius: 999px; outline: none; }
select { padding-right: 34px; appearance: none; cursor: pointer;
  background: #171717 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a6a6a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216,30,40,.22); }
input:focus-visible, select:focus-visible { outline: none; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23a6a6a6' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.filepick { display: block; margin-top: 10px; color: var(--dim); font-size: 14px; border-radius: 999px; }
.filepick::file-selector-button { font: inherit; font-weight: 550; color: var(--text); min-height: 40px; padding: 9px 18px; margin-right: 12px; border-radius: 999px; border: 1px solid #2c2c2c; background: linear-gradient(180deg, #1f1f1f, #171717); cursor: pointer; }
.filepick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(24,24,24,.94), rgba(15,15,15,.9)); backdrop-filter: blur(12px); box-shadow: 0 1px 0 #1c1c1c; }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216,30,40,.7) 30%, rgba(255,90,98,.95) 50%, rgba(216,30,40,.7) 70%, transparent); box-shadow: 0 0 14px 1px rgba(216,30,40,.45); }
.brand { flex: none; }
.logo { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; }
.logo .mark { height: 1.5em; width: 1.5em; margin-right: .4em; flex: none; object-fit: contain; }
.logo .wordmark { height: 1.12em; width: auto; flex: none; display: block; }
.logo em { font-style: normal; background: var(--gold-shine); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.back { margin-right: -10px; color: var(--text); flex: none; }
header.top nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
header.top nav a { padding: 7px 12px; color: var(--dim); font-weight: 500; white-space: nowrap; }
header.top nav a:hover { color: var(--text); } header.top nav a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
header.top .search { width: clamp(200px, 22vw, 300px); flex: none; }
header.top .searchbtn { display: none; }
/* profile menu */
.usermenu { position: relative; flex: none; }
.user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; font-size: 13.5px; font-weight: 500; }
.user .uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user svg { width: 14px; height: 14px; color: var(--dim); }
.user.on { border-color: var(--accent); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; padding: 6px; display: grid; gap: 2px;
  background: linear-gradient(180deg, #1c1c1c, #141414); border: 1px solid #2e2e2e; border-radius: var(--r-card); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 14px; border-radius: 999px; color: var(--dim); font-weight: 500; font-size: 14px; }
.menu a:hover, .menu a:focus-visible, .menu button:hover { background: var(--raised); color: var(--text); }
.menu a.on { background: #2a2a2a; color: var(--text); }
.menu hr { border: 0; border-top: 1px solid #2a2a2a; margin: 4px 8px; }
/* mid-size screens: the search box folds into an icon and opens in place of the navigation */
@media (max-width: 1279px) and (min-width: 901px) {
  header.top .search { display: none; } header.top .searchbtn { display: grid; }
  header.top.searching .search { display: block; flex: 1; width: auto; } header.top.searching nav, header.top.searching .searchbtn { display: none; }
  .user .uname { display: none; } .user { padding-right: 10px; }
}
@media (max-width: 1100px) { header.top { gap: 14px; } }

main { padding-bottom: 72px; } .pad { padding: 0 var(--gutter); }
.pagetitle { margin: 28px 0 8px; }
.statshead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; } .statshead .segmented { margin: 0; }

/* section headings: rows and page sections look the same */
.rowhead h2::before, h2.section::before { content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 10px; border-radius: 2px; background: var(--accent); vertical-align: -1px; }
.section { margin: 30px 0 12px; } .section.span { grid-column: 1 / -1; margin: 12px 0 0; }
.section small { font-size: 13px; font-weight: 400; margin-left: 10px; color: var(--faint); }
.section.pad0 { margin-top: 34px; } .pad0 { padding: 0; }
.inline.sectionbar { margin-top: 30px; } .sectionbar h2.section { margin: 0 auto 0 0; }

/* page tabs and segmented controls */
.tabs { display: flex; gap: 26px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 14px 0 12px; color: var(--dim); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); } .tabs a.on { color: var(--text); border-color: var(--accent); }
.segmented { display: inline-flex; margin: 14px 0 18px; padding: 3px; gap: 2px; border: 1px solid #2a2a2a; border-radius: 999px; background: #151515; }
.segmented a, .segmented button { padding: 7px 16px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--dim); font-weight: 500; font-size: 15px; white-space: nowrap; }
.segmented a:hover, .segmented button:hover { color: var(--text); background: none; }
.segmented .on, .segmented .on:hover { background: #2a2a2a; color: var(--text); }

/* hero */
.hero { position: relative; min-height: min(56vh, 520px); display: flex; align-items: flex-end; background: var(--surface) center 20% / cover; margin-bottom: 8px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.95) 0%, rgba(15,15,15,.6) 42%, rgba(15,15,15,.08) 76%), linear-gradient(0deg, var(--bg) 0%, rgba(15,15,15,0) 40%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 50% at 96% 0%, rgba(216,30,40,.18), transparent 70%); }
.heroin { position: relative; z-index: 1; padding: 0 var(--gutter) 34px; max-width: 640px; display: grid; gap: 12px; }
.heroin h1 { font-size: clamp(28px, 4vw, 44px); color: #fff; } .heroin p { color: #d6d6d6; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--gold-shine); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
.why { color: var(--dim); font-size: 13px; align-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }

/* rows and poster cards */
.row { margin-top: 26px; }
.rowhead { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--gutter); }
.rowhead span { color: var(--faint); font-size: 13px; }
.rowbody { padding-top: 12px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 12px var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.strip > * { flex: 0 0 clamp(124px, 13vw, 168px); width: clamp(124px, 13vw, 168px); min-width: 0; scroll-snap-align: start; }
.card, .person, .trailer { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 13vw, 160px), 1fr)); gap: 20px 14px; margin-top: 14px; }
.card .art { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: #1a1a1a; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.04); transition: box-shadow .15s; }
.card .art:hover { box-shadow: 0 0 0 2px var(--accent), 0 10px 28px rgba(216,30,40,.22); }
.card .art:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.seen img { opacity: .5; }
.noart { height: 100%; display: grid; place-items: center; padding: 10px; text-align: center; color: var(--dim); font-size: 13px; }
.card .name { margin-top: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub, .person .sub, .trailer .sub { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .12s; }
.card .art:hover .quick, .card .art:focus-visible .quick, .quick:focus-within { opacity: 1; }
.quick button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(15,15,15,.86); border-color: rgba(255,255,255,.18); }
.quick button:hover, .quick button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: none) { .quick { opacity: 1; } }
.badge { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.86); }
.b-soon { background: #0f0f0f; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); } .soon { color: var(--gold); font-weight: 500; }
.b-love, .b-seen { background: var(--gold-shine); color: #2b1a00; } .rated-love .art { box-shadow: 0 0 0 2px var(--gold); }
.b-like { background: #3d1418; color: #ffb9bd; } .rated-like .art { box-shadow: 0 0 0 2px #a3262d; }
.b-ok { background: #2a2a2a; color: #ddd; } .rated-ok .art { box-shadow: 0 0 0 2px #555; }
.b-no { background: #1a1a1a; color: #999; } .rated-no .art { box-shadow: 0 0 0 2px #444; } .rated-no img { opacity: .45; }
.b-next { background: var(--accent); color: #fff; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.22); } .prog i { display: block; height: 100%; background: var(--accent); }
/* rating overlay: five choices and a link to the title page must fit on a poster */
.votes { position: absolute; inset: 0; display: grid; align-content: center; gap: 4px; padding: 8px; background: rgba(15,15,15,.9); }
.votes button { padding: 5px 4px; font-size: 12.5px; }
.votes .open { color: #ff8a90; font-size: 12px; padding: 3px; } .votes .open:hover { color: #fff; background: none; text-decoration: underline; }
.person img, .nophoto { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); background: #1a1a1a; display: grid; place-items: center; font-size: 28px; color: var(--faint); }
.person .name { margin-top: 8px; font-size: 14px; font-weight: 500; }
a.person { display: block; } a.person:hover .name { color: var(--accent-text); } a.person img, a.person .nophoto { transition: box-shadow .15s; } a.person:hover img { box-shadow: 0 0 0 2px var(--accent); }
.empty { padding: 56px 20px; text-align: center; color: var(--dim); grid-column: 1 / -1; } .empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.centerline { text-align: center; margin-top: 22px; }

/* ratings on posters and banners */
.pic { display: inline-grid; } .pic :is(svg, img) { width: 13px; height: 13px; }
.rate { position: absolute; left: 6px; bottom: 8px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 8px 3px 6px; border-radius: 999px;
  background: rgba(0,0,0,.74); backdrop-filter: blur(4px); font-size: 11.5px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.3; pointer-events: none; }
.rate .st, .rate .rt { display: inline-flex; align-items: center; gap: 3px; } .rate .rt { gap: 2px; }
.rate.inline { position: static; align-self: start; width: max-content; font-size: 14px; padding: 5px 12px 5px 9px; gap: 12px; } .rate.inline .pic :is(svg, img) { width: 16px; height: 16px; }
.card .art:has(.prog) .rate { bottom: 10px; }

/* title page */
.titlehero { height: min(46vh, 430px); background: var(--surface) center 18% / cover; position: relative; }
.titlehero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 40% 55% at 96% 0%, rgba(216,30,40,.14), transparent 70%); }
.titlehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(15,15,15,.4) 58%, rgba(15,15,15,.6)); }
.titlebody { position: relative; display: grid; grid-template-columns: clamp(140px, 19vw, 250px) 1fr; gap: clamp(18px, 3vw, 40px); margin-top: clamp(-170px, -16vw, -90px); }
.posterbox img { width: 100%; border-radius: var(--r); display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.8); }
.info { display: grid; gap: 12px; align-content: start; padding-top: 8px; }
.info h1 { font-size: clamp(26px, 3.6vw, 40px); } .tagline { color: var(--dim); font-style: italic; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--dim); font-size: 14px; align-items: baseline; }
.overview { max-width: 76ch; color: #d6d6d6; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; } .credits dt { color: var(--faint); } .credits dd { margin: 0; }
.devices { display: grid; gap: 6px; max-width: 520px; } .devices button { display: flex; justify-content: space-between; gap: 12px; text-align: left; white-space: normal; }
.activity { list-style: none; margin: 10px 0 0; padding: 0; max-width: 640px; border: 1px solid #2a2a2a; border-radius: var(--r-card); background: #141414; }
.activity li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; } .activity li:first-child { border-top: 0; }
.activity b { font-weight: 500; } .activity span { color: var(--dim); } .activity time { margin-left: auto; color: var(--faint); }
.video { width: min(1100px, 94vw); aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; } .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video.inline { width: min(960px, 100%); box-shadow: 0 0 0 1px #2a2a2a; }
.upto { display: grid; gap: 8px; padding: 14px 18px; border: 1px solid var(--card-line); border-radius: var(--r-card); background: var(--card-bg); max-width: 560px; }
.upto select { width: auto; } .upto b { font-weight: 600; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; }
.scorechip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: #181818; border: 1px solid #2a2a2a; }
.scorechip small { color: var(--dim); font-size: 12px; } .scorechip b { font-weight: 650; font-variant-numeric: tabular-nums; } .scorechip .pic :is(svg, img) { width: 17px; height: 17px; }
.universes { display: grid; gap: 10px; max-width: 520px; }
.universe { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-card); border: 1px solid rgba(240,180,41,.35);
  background: linear-gradient(120deg, rgba(240,180,41,.13), rgba(216,30,40,.10) 60%, #141414); transition: border-color .15s, transform .15s; }
.universe:hover { border-color: var(--gold); transform: translateY(-1px); }
.universe .txt { display: grid; flex: 1; min-width: 0; } .universe small { color: var(--dim); font-size: 12px; } .universe b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .universe em { font-style: normal; color: var(--dim); font-size: 12.5px; }
.universe > svg { color: var(--dim); flex: none; }
/* watch counter */
.watchlog { display: grid; gap: 14px; max-width: 560px; margin-top: 10px; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: var(--r-card); background: var(--card-bg); }
.counter { display: grid; gap: 10px; } .counter .q { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper .num { font-size: 30px; font-weight: 650; min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.step { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; display: grid; place-items: center; }
.step.small { width: 26px; height: 26px; font-size: 15px; }
.saved { color: var(--gold); font-size: 13px; margin-left: 4px; }
.when { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #2a2a2a; }
.whenhead { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 14px; }
.yearpick { display: flex; align-items: center; gap: 10px; color: var(--text); }
.chips.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; }
.chips.months .chip { justify-content: center; padding-left: 0; padding-right: 0; }
.months .chip:disabled { opacity: .3; }
.viewings .chip { color: var(--dim); }

/* chips: two sizes, normal and small, everywhere */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; align-content: flex-start; } .chips.small { margin-top: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(180deg, #1e1e1e, #171717);
  border: 1px solid var(--line); font-weight: 500; font-size: 14px; line-height: 1.25; white-space: nowrap; }
.chips.small .chip { min-height: 30px; padding: 4px 12px; font-size: 13px; }
span.chip { color: var(--dim); }
.chip.s1 { border-color: var(--accent); color: var(--accent-text); } .chip.s2 { background: var(--red-fill); border-color: var(--accent); color: #fff; }
.chip small { opacity: .8; font-weight: 400; }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.chip.withglyph { padding-left: 4px; } .chip.withglyph small { color: var(--dim); }
@media (pointer: coarse) { .chip { min-height: 40px; } .chips.small .chip { min-height: 34px; } }

/* cards: one style for every page */
.statcard { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 18px 20px 20px; margin-top: 16px; min-width: 0; }
.statcard header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } .statcard header h3 { margin: 0; }
.statcard header span { color: var(--faint); font-size: 12.5px; }
.statcard > .hint + * { margin-top: 12px; }
.statcard.narrow { max-width: 760px; }
.statgrid, .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; } .statgrid .wide { grid-column: 1 / -1; }
.statgrid .statcard, .cols .statcard { margin-top: 0; height: 100%; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.form { width: min(440px, 100%); display: grid; gap: 12px; padding: 28px; margin: 0; } .form h1 { font-size: 28px; }
.err { color: var(--accent-text); font-size: 14px; min-height: 1.4em; }
.meter { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 40px; gap: 10px; align-items: center; margin-top: 8px; font-size: 14px; }
.meter > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .meter > span:last-child { text-align: right; font-size: 13px; }
.track { height: 6px; background: var(--raised); border-radius: 6px; overflow: hidden; } .track i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.skipped { display: grid; gap: 8px; margin-top: 18px; }
.dialog { width: min(440px, 92vw); background: linear-gradient(180deg, #1c1c1c, #141414); border: 1px solid #2e2e2e; border-radius: var(--r-card); padding: 24px; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.dialog h2 { font-size: 19px; } .dialog .actions { justify-content: flex-end; margin-top: 6px; }

/* setup wizard */
.wizard { max-width: 1080px; margin: 0 auto; padding: 36px var(--gutter) 120px; } .wizard h2 { font-size: 20px; }
.steps { display: flex; gap: 6px; margin: 16px 0 20px; max-width: 240px; } .steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--accent); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.group { padding: 10px; text-align: left; white-space: normal; border-radius: var(--r-card); background: linear-gradient(180deg, #1c1c1c, #151515); border-color: #2a2a2a; }
.group.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.group .ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; } .group img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--raised); display: block; }
.searchbox { display: grid; gap: 8px; margin-top: 18px; padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--r-card); }
.bar { position: fixed; inset: auto 0 0 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(24,24,24,.94), rgba(15,15,15,.9)); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bar > .dim { text-align: center; font-size: 14px; }

/* discover and filters */
.moodform { display: grid; gap: 12px; margin-bottom: 8px; } .moodform h2 { font-size: 22px; }
.moodgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 28px; margin-top: 10px; }
.moodsec { margin-bottom: 14px; } .moodcount { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--dim); }
.moodnote { margin-top: 16px; padding: 10px 14px; border: 1px solid rgba(240,180,41,.35); border-radius: var(--r-card); background: rgba(240,180,41,.07); color: var(--text); font-size: 14px; }
.understood { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; }
.understood .chip { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.filters { display: grid; gap: 16px; } .fieldrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; align-content: start; } .field > span { font-size: 13px; color: var(--dim); font-weight: 500; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--dim); font-size: 14px; } .inline select { width: auto; }
.formend .switch { margin-right: auto; color: var(--text); }
.relintro { margin: 18px 0 0; font-size: 14px; }
.filterbar { display: none; }
.relmark { position: absolute; right: 6px; bottom: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; pointer-events: none; }
.relmark.season { background: rgba(15,15,15,.9); box-shadow: inset 0 0 0 1px var(--accent); }
.art:has(.relmark.season) .relmark:not(.season) { bottom: 32px; }
.card .trackbtn { display: block; width: 100%; margin-top: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 550; color: var(--dim); }
.card .trackbtn.on { border-color: var(--accent); color: var(--accent-text); }
@media (pointer: coarse) { .card .trackbtn { padding: 8px 10px; } }

/* on/off switches */
.switches { display: grid; gap: 12px; margin-top: 8px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #2a2a2a; border: 1px solid #3a3a3a; flex: none; transition: background .15s, border-color .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #bdbdbd; transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); } .switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + i { opacity: .5; }
.switch span { display: grid; } .switch b { font-weight: 550; } .switch small { color: var(--dim); font-size: 12.5px; }

/* trailers */
.trailers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; margin-top: 22px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); background: #1a1a1a center / cover; cursor: pointer; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); transition: background .15s; } .thumb:hover::after { background: rgba(0,0,0,.05); }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.playbtn { position: absolute; z-index: 1; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.86); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.trailer .name { display: block; margin-top: 8px; font-weight: 500; } .trailer .name:hover { color: var(--accent-text); }

/* catalogs */
.catalogs { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.side { position: sticky; top: 82px; display: grid; gap: 2px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.side h3 { margin: 14px 0 6px; } .side > h3:first-child { margin-top: 0; }
.sidehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; } .sidehead h3 { margin: 0; }
.showall { display: none; }
.unilist { display: grid; gap: 2px; }
.side a { padding: 7px 12px; border-radius: 999px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.side a:hover { color: var(--text); background: var(--surface); } .side a.on { color: var(--text); background: var(--raised); }
.side a.emptylib { color: var(--faint); }
.unilink { display: flex !important; align-items: center; gap: 9px; }
.listlink { display: flex; align-items: center; } .listlink button { padding: 6px; }
.addlist { display: grid; gap: 6px; margin-top: 6px; } .catmain .section { margin-top: 0; }

/* lists (history, import review) */
.list { margin-top: 16px; border: 1px solid #2a2a2a; border-radius: var(--r-card); overflow: hidden; background: #141414; }
.listrow { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); } .listrow:first-child { border-top: 0; } .listrow:hover { background: var(--surface); }
.listrow img, .noimg { width: 34px; height: 51px; object-fit: cover; border-radius: 6px; background: var(--raised); flex: none; }
.listrow.pick { cursor: pointer; } .listrow.pick input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.grow { flex: 1; min-width: 0; display: grid; } .grow b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .grow small { color: var(--faint); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--raised); color: var(--dim); white-space: nowrap; } .tag.neg { color: #999; }
.listrow time { color: var(--faint); font-size: 13px; width: 96px; text-align: right; flex: none; }

/* franchise checklist and universe symbols */
.franchisehead { display: flex; align-items: center; gap: 16px; margin: 26px 0 10px; }
.progressline { display: grid; grid-template-columns: auto minmax(120px, 360px) auto; gap: 14px; align-items: center; margin-top: 6px; }
.progressline .track { height: 8px; }
.glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 16px rgba(0,0,0,.4); }
.glyph svg { width: 28px; height: 28px; }
.glyph.big { width: 64px; height: 64px; border-radius: 18px; } .glyph.big svg { width: 34px; height: 34px; }
.glyph.tiny { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; } .glyph.tiny svg { width: 13px; height: 13px; }
.link { color: var(--accent-text); } .link:hover { text-decoration: underline; }

/* people */
.personhead { display: grid; grid-template-columns: clamp(120px, 16vw, 210px) 1fr; gap: clamp(18px, 3vw, 36px); margin-top: 28px; align-items: start; }
.personhead img, .personhead .nophoto { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); }
.bio { white-space: pre-line; } .bio.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* stats */
.stats-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: #262626; border: 1px solid #262626; border-radius: var(--r-card); overflow: hidden; }
.stat { background: linear-gradient(180deg, #181818, #121212); padding: 20px 22px; display: grid; gap: 2px; align-content: start; }
.stat b { font-size: 40px; font-weight: 680; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat:first-child b { background: var(--gold-shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text); font-size: 14px; font-weight: 500; } .stat small { color: var(--faint); font-size: 12.5px; }
.cols-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; border-bottom: 1px solid #2a2a2a; margin-bottom: 22px; }
.cols-chart.dense { gap: 3px; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.col i { display: block; width: min(100%, 26px); background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .12s; }
.col:hover i { filter: brightness(1.3); }
.col .val { font-size: 11.5px; color: var(--dim); margin-bottom: 4px; opacity: 0; font-variant-numeric: tabular-nums; white-space: nowrap; } .col .val.peak, .col:hover .val { opacity: 1; color: var(--text); }
.col .lab { position: absolute; top: calc(100% + 6px); font-size: 11px; color: var(--faint); white-space: nowrap; }
.hbars { display: grid; gap: 9px; } .hbar { display: grid; grid-template-columns: minmax(84px, 30%) 1fr 30px 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hbar .track { height: 8px; background: #1f1f1f; border-radius: 4px; } .hbar .track i { border-radius: 4px; }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; } .hbar .pc { text-align: right; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.heat { display: flex; gap: 8px; overflow-x: auto; } .heatdays { display: grid; grid-template-rows: repeat(7, 14px); gap: 3px; font-size: 10px; color: var(--faint); line-height: 14px; }
.heatgrid { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; }
.heatgrid i, .heatkey i { width: 14px; height: 14px; border-radius: 3px; display: block; background: #1c1c1c; }
.heatgrid i.future { background: none; }
i.l1 { background: #4a1418 !important; } i.l2 { background: #7d1a20 !important; } i.l3 { background: #b31d26 !important; } i.l4 { background: #ee3a44 !important; }
.heatkey { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 11px; color: var(--faint); } .heatkey i { width: 11px; height: 11px; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 10px; }
.face { display: grid; justify-items: center; text-align: center; gap: 3px; } .face img, .face .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #1f1f1f; display: grid; place-items: center; color: var(--faint); font-size: 24px; box-shadow: 0 0 0 1px #2c2c2c; transition: box-shadow .15s; }
.face:hover img, .face:hover .ph { box-shadow: 0 0 0 2px var(--accent); } .face b { font-size: 13px; font-weight: 500; margin-top: 5px; line-height: 1.25; } .face small { color: var(--faint); font-size: 12px; }
.statspage .row { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }

/* admin, profile and preferences */
.adminpage .statcard .actions { margin-top: 12px; } .adminpage .statcard .hint { margin-bottom: 4px; }
.connline { display: flex; align-items: center; gap: 10px; font-weight: 500; }
/* status dot: gold when on, grey when off (an error would be red) */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,41,.16); }
.dot.off { background: #666; box-shadow: 0 0 0 3px rgba(120,120,120,.16); }
.copyline { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.copyline input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; } .copyline button { flex: none; }
.peoplelist { display: grid; gap: 1px; background: var(--card-line); border: 1px solid var(--card-line); border-radius: var(--r-card); overflow: hidden; margin-top: 12px; }
.personrow { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(180deg, #171717, #131313); }
/* avatars: the same red disc for everyone; admins are marked by the gold "Admin" pill, not the avatar */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; background: var(--red-fill); color: #fff; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 13px; }
.avatar.big { width: 84px; height: 84px; font-size: 34px; }
.who { flex: 1; min-width: 0; display: grid; gap: 2px; } .who b small { color: var(--faint); font-weight: 400; } .who > small { color: var(--dim); font-size: 12.5px; }
.role { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: #222; color: var(--dim); white-space: nowrap; } .role.admin { color: #2b1a00; background: var(--gold-shine); }
.rowactions { display: flex; gap: 6px; flex: none; } .rowactions button { padding: 7px 14px; font-size: 13px; }
.versionline { display: flex; align-items: center; gap: 12px; } .versionline b { font-size: 26px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.profilehead { display: flex; align-items: center; gap: 20px; margin: 30px 0 22px; } .profilehead h1 { margin-bottom: 6px; } .profilehead p { margin-top: 8px; }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.linkcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--card-line); border-radius: var(--r-card); background: var(--card-bg); transition: border-color .15s, transform .15s; }
.linkcard:hover { border-color: var(--accent); transform: translateY(-1px); } .linkcard span { display: grid; gap: 3px; } .linkcard small { color: var(--dim); font-size: 13px; } .linkcard svg { color: var(--faint); flex: none; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; padding: 12px 14px 12px 20px;
  border: 1px solid #2c2c2c; border-radius: 999px; background: rgba(20,20,20,.94); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }

/* overlays */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.82); display: grid; place-items: center; }
.modal[hidden], .toast[hidden], [hidden] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; max-width: 90vw; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: var(--r-card); background: #f4f4f4; color: #000; font-weight: 500; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.toast button { background: #111; color: #fff; border-color: #111; padding: 4px 12px; font-size: 13px; }
.spinner { width: 28px; height: 28px; margin: 56px auto; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; grid-column: 1 / -1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .spinner { animation-duration: 2s; } .logo em, .kicker { animation: none; } }

/* ================= phone layout and home-screen app ================= */
.tabbar, .mobileonly { display: none; }
@media (pointer: coarse) {   /* thumbs need bigger targets than a mouse pointer */
  .quick button { width: 36px; height: 36px; } .quick { gap: 8px; }
  .step.small { width: 34px; height: 34px; }
}
/* up to tablet width: navigation moves to the bottom tab bar; the top bar keeps the logo and search */
@media (max-width: 900px) {
  header.top { gap: 12px; height: auto; min-height: 58px; padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 8px; }
  header.top nav, header.top .usermenu, header.top .searchbtn { display: none; }
  header.top .search { flex: 1; width: auto; min-width: 0; }
  .back { margin-right: -6px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 12; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(24,24,24,.96), rgba(12,12,12,.98));
    backdrop-filter: blur(14px); border-top: 1px solid #262626; }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--dim); font-size: 11px; font-weight: 500; border-radius: var(--r); }
  .tabbar a svg { width: 22px; height: 22px; } .tabbar a.on { color: #fff; } .tabbar a.on svg { color: var(--accent); }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: max-content; }
  .savebar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  :root { --gutter: 14px; }
  input[type=text], input[type=password], input[type=search], input[type=number], select { font-size: 16px; }   /* stops iOS zooming on focus */
  .mobileonly { display: inline-block; }
  .tabs { gap: 20px; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .segmented a, .segmented button { padding: 7px 12px; font-size: 14px; }
  h1 { font-size: 22px; } .pagetitle { margin-top: 18px; } .statshead { margin-top: 18px; }
  .hero { min-height: 46vh; } .heroin { padding-bottom: 22px; } .heroin p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .strip { gap: 10px; } .strip > * { flex-basis: 31vw; width: 31vw; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  /* title page: full-width, thumb-sized actions */
  .titlehero { height: 30vh; } .titlebody { grid-template-columns: 104px 1fr; gap: 14px; margin-top: -70px; }
  .titlebody .info { display: contents; } .titlebody .info > * { grid-column: 1 / -1; }
  .titlebody .info > h1 { grid-column: 2; align-self: end; font-size: 22px; } .titlebody .posterbox { grid-row: span 1; }
  .titlebody .actions { display: grid; grid-template-columns: 1fr 1fr; } .titlebody .actions button { padding: 11px 8px; }
  .titlebody .actions .primary { grid-column: 1 / -1; }
  .devices, .upto, .watchlog, .video.inline { max-width: none; }
  .personhead { grid-template-columns: 96px 1fr; gap: 14px; }
  .moodgrid { grid-template-columns: 1fr; }
  .fieldrow { grid-template-columns: 1fr 1fr; }
  select { padding-left: 14px; padding-right: 30px; background-position: right 10px center; }
  /* releases: the filters fold behind one button */
  .filterbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
  .filtertoggle { display: inline-flex; align-items: center; gap: 8px; flex: none; }
  .filtersummary { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .relfilters:not(.open) { display: none; }
  /* catalogs: libraries and lists as pills, universes as one scrolling row with "Show all" */
  .catalogs { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
  .side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; padding-right: 0; }
  .side > h3, .sidehead { flex: 0 0 100%; margin: 8px 0 0; }
  .side a { flex: 0 0 auto; border: 1px solid #2a2a2a; padding: 6px 12px; } .side .hint, .addlist { flex: 0 0 100%; } .listlink { flex: 0 0 auto; }
  .showall { display: inline-flex; padding: 4px 10px; font-size: 13px; }
  .unilist { flex: 0 0 auto; width: calc(100% + 2 * var(--gutter)); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scroll-padding-inline: var(--gutter); }
  .unilist.open { flex-wrap: wrap; overflow: visible; }
  .listrow { padding: 8px 10px; gap: 10px; }
  .listrow time, .tag, .tags { display: none; }
  .progressline { grid-template-columns: 1fr; gap: 6px; }
  .wizard { padding-top: calc(20px + env(safe-area-inset-top)); } .groups { grid-template-columns: 1fr 1fr; }
  .bar > .dim { font-size: 12.5px; }
  .center { padding-top: calc(20px + env(safe-area-inset-top)); }
  .trailers { grid-template-columns: 1fr; } .statgrid, .cols { grid-template-columns: 1fr; }
  .stats-hero { grid-template-columns: 1fr 1fr; } .stat { padding: 14px 16px; } .stat b { font-size: 30px; }
  .cols-chart { height: 140px; } .hbar { grid-template-columns: minmax(70px, 34%) 1fr 26px 36px; }
  .personrow { flex-wrap: wrap; } .rowactions { flex: 0 0 100%; padding-left: 54px; } .who > small { white-space: normal; }
  .profilehead { margin-top: 18px; } .universes { max-width: none; }
  .franchisehead { margin-top: 16px; gap: 12px; } .glyph.big { width: 52px; height: 52px; }
}
.pic img { display: block; object-fit: contain; transform: scale(1.25); }
.glyph.art { background: none; box-shadow: none; border-radius: 0; }
.glyph.art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.glyph.art.tiny { width: 26px; height: 26px; } .glyph.art.tiny img { filter: none; }
.tabicon { width: 25px; height: 25px; display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tabbar a.on .tabicon { color: var(--accent); }
/* Small phones: the top bar shows the icon alone so the search box keeps its room. */
@media (max-width: 520px) { header.top .logo { font-size: 0; } header.top .logo .wordmark { display: none; } header.top .logo .mark { height: 34px; width: 34px; margin-right: 0; } }
