/*
 * Because You Watched. Dark-only on purpose, like a cinema.
 * Layout: a slim header, then each page in one column (.wrap), max 1180px.
 */
:root {
  --bg: #0f0d0d;
  --surface: #1a1717;
  --line: #2c2726;
  --fg: #f4efed;
  --muted: #a39b98;
  --red: #e3262f;
  --gold: #f2c230;
  --match: #4fd17a;
  --wa: #3fd47a;
  --wa-deep: #1f8f55;
  --gs-hi: #4fd17a;
  --gs-mid: #f2c230;
  --gs-lo: #ef6a4c;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.bar { padding-block: 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1;
  color: var(--red); text-shadow: 0 2px 18px color-mix(in srgb, var(--red) 40%, transparent);
  display: flex; align-items: baseline; gap: .28em; white-space: nowrap;
}
.logo b { color: var(--fg); font-weight: 400; }
.how { margin-left: auto; font: 600 13px/1 var(--body); color: var(--muted); text-decoration: none; padding: 8px 4px; }
.how:hover { color: var(--fg); }
.how:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.home-filters { margin-top: 16px; width: max-content; max-width: 100%; }
.filters { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.filters button {
  font: 600 12.5px/1 var(--body); letter-spacing: .04em; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 8px 13px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filters button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Search */
.search { padding-block: 40px 18px; }
.search label {
  display: block; font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.field-q { position: relative; }
.q-ghost, #q {
  font-family: var(--display); font-size: clamp(40px, 8vw, 92px); line-height: 1.05; letter-spacing: .01em;
  padding: 6px 0 10px; width: 100%;
}
.q-ghost {
  position: absolute; inset: 0; pointer-events: none; white-space: pre; overflow: hidden;
  color: transparent;
}
.q-ghost span { color: #5a5250; }
#q {
  position: relative; background: transparent; border: 0; color: var(--fg); outline: none;
  border-bottom: 2px solid var(--line); caret-color: var(--red);
  transition: border-color .2s;
}
#q::placeholder { color: #4a4342; }
#q:focus { border-bottom-color: var(--red); }
.hint { margin-top: 12px; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hint kbd { font: 600 11px/1 var(--body); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; color: var(--fg); }
.chip {
  font: 600 13px/1 var(--body); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Suggestions */
.list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); overflow: hidden; max-width: 560px;
}
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt[aria-selected="true"], .opt:hover { background: #252020; }
.opt .sw { width: 26px; height: 36px; border-radius: 3px; flex: none; }
.opt .t { font-weight: 700; }
.opt .m { color: var(--muted); font-size: 12.5px; }

/* Result header */
.now { padding-block: 26px 6px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.now h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); line-height: 1;
  letter-spacing: .01em; margin: 8px 0 0; text-wrap: balance;
}
.now h2 em { font-style: normal; color: var(--gold); }
.meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta .pill { color: var(--bg); background: var(--gold); font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: 3px 7px; border-radius: 3px; }
.note { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.note b { color: var(--fg); }

/* Picks carousel: the selected title sits centred and larger, the rest fall away either side */
.carousel { --cw: clamp(184px, 21vw, 236px); position: relative; margin-block: 4px 18px; }
.track {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 36px 22px; padding-inline: calc(50% - var(--cw) / 2);
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track::-webkit-scrollbar { display: none; }
.track .item {
  flex: 0 0 var(--cw); scroll-snap-align: center; transform: scale(.84); transform-origin: 50% 40%; opacity: .45;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
}
.track .item.is-active { transform: scale(1.07); opacity: 1; z-index: 2; }
.track .item:not(.is-active) .card { cursor: zoom-in; }
.track .rank { font-size: calc(var(--cw) * .62); }
/* Fit the longest word on the poster rather than breaking it */
.track .ptitle { font-size: min(var(--fs), calc(var(--cw) * 1.08 / var(--lw))); overflow-wrap: normal; word-break: normal; }
.car-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.car-nav svg { width: 20px; height: 20px; }
.car-nav.prev { left: 0; }
.car-nav.next { right: 0; }
.car-nav:hover:not(:disabled) { border-color: var(--muted); }
.car-nav:disabled { opacity: 0; pointer-events: none; }
.car-nav:focus-visible, .car-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.car-dots { display: flex; justify-content: center; gap: 8px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.car-dots button[aria-current="true"] { width: 24px; background: var(--red); }
.card { position: relative; display: grid; grid-template-columns: 34% 1fr; align-items: end; cursor: pointer; border: 0; background: none; color: inherit; text-align: left; padding: 0; font: inherit; }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.rank {
  font-family: var(--display); font-size: clamp(110px, 13vw, 170px); line-height: .78;
  color: var(--bg); -webkit-text-stroke: 3px #57504e; text-align: right; margin-right: -14%;
  position: relative; z-index: 0; user-select: none;
}
.poster {
  position: relative; z-index: 1; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 6px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: space-between; padding: 9px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}
.card:hover .poster, .card:focus-visible .poster { transform: translateY(-6px) scale(1.03); box-shadow: 0 24px 50px rgba(0,0,0,.7); }
.kind { position: relative; z-index: 1; font: 800 9.5px/1 var(--body); letter-spacing: .16em; color: rgba(255,255,255,.85); }
.ptitle {
  position: relative; z-index: 1; font-family: var(--display); line-height: .95; letter-spacing: .01em;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); overflow-wrap: anywhere;
}
.under { grid-column: 1 / -1; padding-top: 12px; display: grid; gap: 4px; min-width: 0; }
.under .top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.pct { color: var(--match); font-weight: 800; font-variant-numeric: tabular-nums; }
.yr { color: var(--muted); font-variant-numeric: tabular-nums; }
.under .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.why { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.badge {
  position: absolute; z-index: 2; top: 8px; right: 8px; background: var(--red); color: #fff;
  font: 800 9.5px/1 var(--body); letter-spacing: .12em; padding: 5px 7px; border-radius: 3px;
}
.item { display: grid; align-content: start; gap: 10px; min-width: 0; }
.track.fresh .item > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) backwards; }
.track.fresh .item:nth-child(2) > * { animation-delay: .05s; }
.track.fresh .item:nth-child(3) > * { animation-delay: .1s; }
.track.fresh .item:nth-child(4) > * { animation-delay: .15s; }
.track.fresh .item:nth-child(5) > * { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(14px); opacity: .25; } }

/* Small action buttons: share, recommend */
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; cursor: pointer;
  font: 700 12px/1 var(--body); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
}
.act:hover { border-color: var(--muted); }
.act:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.act svg { width: 14px; height: 14px; flex: none; }
.act.wa svg { color: var(--wa); }
.act.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.act.primary { background: var(--wa-deep); border-color: var(--wa-deep); color: #fff; }
.act.primary svg { color: #fff; }
.now .acts { margin-top: 12px; }

.empty { padding-block: 30px 40px; color: var(--muted); max-width: 60ch; }
.empty h2 { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--fg); margin: 0 0 8px; }

/* Watch group */
.group { border-top: 1px solid var(--line); padding-block: 30px 40px; }
.g-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.g-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1; margin: 8px 0 0; }
.crew { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.face {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px;
  font: 700 12.5px/1 var(--body);
}
.face img { width: 28px; height: 28px; border-radius: 50%; display: block; }
.face[aria-pressed="true"] { border-color: var(--fg); }
.face:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.g-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.g-col { min-width: 0; }
.g-col h3 { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.feed { display: grid; gap: 10px; }
.post {
  display: grid; grid-template-columns: 34px 46px minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.post > img { width: 34px; height: 34px; border-radius: 50%; }
.post .sw { width: 46px; height: 69px; border-radius: 4px; }
.post .txt { min-width: 0; display: grid; gap: 4px; }
.post .line { font-size: 14px; line-height: 1.4; }
.post .line b { font-weight: 800; }
.post .sub { color: var(--muted); font-size: 12.5px; }
.post .acts { margin-top: 4px; }
.post .act { padding: 6px 10px; font-size: 11.5px; }
.prof { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 14px; }
.prof-top { display: flex; align-items: center; gap: 12px; }
.prof-top img { width: 46px; height: 46px; border-radius: 50%; }
.prof-top .n { font-family: var(--display); font-size: 28px; line-height: 1; }
.prof-top .s { color: var(--muted); font-size: 12.5px; }
.minis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mini {
  aspect-ratio: 2 / 3; max-width: 100%; border-radius: 4px; border: 0; cursor: pointer; padding: 5px;
  display: flex; align-items: flex-end; text-align: left; color: #fff;
  font: 400 13px/1 var(--display); letter-spacing: .02em; overflow: hidden; overflow-wrap: anywhere;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.mini:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.prof .lbl { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.g-empty { color: var(--muted); font-size: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }
.g-empty b { color: var(--fg); }

/* Group Score */
.gs {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 5px;
  font: 800 13px/1 var(--body); color: #0f0d0d; font-variant-numeric: tabular-nums;
}
.gs.hi { background: var(--gs-hi); } .gs.mid { background: var(--gs-mid); } .gs.lo { background: var(--gs-lo); }
.gs.big { min-width: 58px; height: 58px; font-size: 26px; border-radius: 8px; }
.scorebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.scorebox:empty { display: none; }
.gsum { display: flex; align-items: center; gap: 10px; }
.gsum .l { font: 700 11px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gsum .l b { display: block; color: var(--fg); letter-spacing: 0; text-transform: none; font-size: 13px; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rate .l { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.rate button {
  width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: 800 12.5px/1 var(--body); cursor: pointer; font-variant-numeric: tabular-nums;
}
.rate button:hover { border-color: var(--muted); }
.rate button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rate button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.under .top .gs { height: 20px; min-width: 26px; font-size: 11.5px; margin-left: auto; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 2px 12px; margin-right: 18px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--red); }
.tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.board { display: grid; gap: 8px; }
.brow {
  display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.brow .rk { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--muted); text-align: center; }
.brow .sw { width: 40px; height: 60px; border-radius: 4px; }
.brow .t { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.brow .m { color: var(--muted); font-size: 12.5px; }
.raters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rater { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px/1 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.rater img { width: 18px; height: 18px; border-radius: 50%; }
.g-head .tag { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.mini { position: relative; }
.mini .mr { position: absolute; top: 4px; right: 4px; min-width: 0; height: auto; font: 800 10px/1 var(--body); padding: 3px 4px; border-radius: 3px; color: #0f0d0d; text-shadow: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--fg); color: var(--bg); font: 700 13px/1.3 var(--body); padding: 11px 16px; border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 20; max-width: calc(100% - 32px);
}

footer { border-top: 1px solid var(--line); padding-block: 18px 34px; color: #6f6765; font-size: 12.5px; }

@media (max-width: 960px) {
  .g-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .carousel { --cw: 60vw; }
  .car-nav { display: none; }
  .bar { flex-wrap: wrap; }
  .search { padding-block: 22px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .track.fresh .item > * { animation: none; }
  .track .item { transition: none; }
  .poster, #q { transition: none; }
}

/* ---- Site chrome ---- */
.site-head { padding-block: 18px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.site-head .logo { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a, .linkbtn {
  font: 600 13px/1 var(--body); color: var(--muted); text-decoration: none; padding: 9px 11px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .linkbtn:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.nav a:focus-visible, .linkbtn:focus-visible, .btn:focus-visible, a.card:focus-visible, .field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav form { display: contents; }
.nav .join-free { color: #fff; background: var(--red); }
.nav .join-free:hover { color: #fff; background: #c81f28; }
.tagline { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tagline b { color: var(--fg); font-weight: 700; }
.flash {
  margin-top: 14px; background: color-mix(in srgb, var(--match) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--match) 40%, var(--line));
  color: var(--fg); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 14px;
}
.site-foot { border-top: 1px solid var(--line); padding-block: 18px 34px; color: #6f6765; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 30px; }
.site-foot a { color: var(--muted); }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 800 14px/1 var(--body); letter-spacing: .02em; color: #fff; background: var(--red);
  border: 1px solid var(--red); border-radius: 8px; padding: 13px 18px;
}
.btn:hover { background: #c81f28; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 9px 12px; font-size: 12.5px; }
.btn.danger { background: none; border-color: color-mix(in srgb, var(--gs-lo) 50%, var(--line)); color: var(--gs-lo); }
.field { display: grid; gap: 7px; }
.field > span { font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input {
  font: 600 15px/1.2 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 13px; width: 100%;
}
.field input:focus { border-color: var(--muted); outline: none; }
.field .error { color: var(--gs-lo); font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form .field { flex: 1 1 220px; }

/* Cards and panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h2, .panel h3 { margin-top: 0; }
.page-head { padding-block: 34px 18px; }
.page-head h1, .auth h1, .invite-card h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: .95; margin: 10px 0 10px; text-wrap: balance;
}
.page-head p { color: #cfc8c5; max-width: 60ch; margin: 0; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 14px; }

/* Sign-in */
.auth { max-width: 440px; margin: 30px auto 0; }
.auth .panel { display: grid; gap: 16px; }
.auth p.muted { color: var(--muted); margin: 0 0 18px; }
.auth .foot { color: var(--muted); font-size: 14px; text-align: center; margin: 4px 0 0; }

/* Groups index */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
a.card {
  display: grid; gap: 6px; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; transition: border-color .15s;
}
a.card:hover { border-color: var(--muted); }
a.card .name { font-family: var(--display); font-size: 30px; line-height: 1; }
a.card .m { color: var(--muted); font-size: 13px; }
.groups-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.groups-side { display: grid; gap: 16px; }

/* Group page */
.g-top { padding-block: 30px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: end; }
.g-top h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: .9; margin: 8px 0 8px; overflow-wrap: anywhere; }
.g-top .m { color: var(--muted); font-size: 14px; }
.switcher { position: relative; display: inline-block; }
.switcher summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary::after { content: "▾"; letter-spacing: 0; }
.switcher[open] .menu { display: grid; }
.switcher .menu {
  display: none; position: absolute; z-index: 6; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.switcher .menu a { color: var(--fg); text-decoration: none; padding: 9px 10px; border-radius: 6px; font-weight: 700; font-size: 14px; }
.switcher .menu a:hover, .switcher .menu a[aria-current="page"] { background: #252020; }
.switcher .menu .new { color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
.invite { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.invite .lbl { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.invite .code { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.invite .acts form { display: contents; }
.g-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; align-items: start; }
.tabs a {
  font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; padding: 10px 2px 12px; margin-right: 18px;
}
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }
.av {
  display: inline-grid; place-items: center; border-radius: 50%; color: #fff; flex: none;
  font: 800 11px/1 var(--body); width: 30px; height: 30px; letter-spacing: .02em;
}
.av.lg { width: 46px; height: 46px; font-size: 15px; }
.av.sm { width: 18px; height: 18px; font-size: 8px; }
.post .av { width: 34px; height: 34px; }
.post .sw { display: block; }
.post form { display: contents; }
.members { display: grid; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.mrow:hover { background: var(--surface); }
.mrow[aria-current="true"] { background: var(--surface); border-color: var(--line); }
.mrow .n { font-weight: 700; font-size: 14px; }
.mrow .s { color: var(--muted); font-size: 12px; margin-left: auto; }
a.mini { text-decoration: none; }
.settings summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; }
.settings[open] summary { margin-bottom: 12px; }
.settings .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.settings .row + .row { margin-top: 12px; }

/* Join */
.invite-card { max-width: 520px; margin: 40px auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.invite-card .m { color: var(--muted); }
.invite-card .stack { display: grid; gap: 10px; width: 100%; max-width: 320px; }

/* Recommend-to-groups dialog */
dialog.picker {
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  width: min(420px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
dialog.picker::backdrop { background: rgba(0,0,0,.6); }
dialog.picker h2 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0 0 4px; }
dialog.picker p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
dialog.picker .opts { display: grid; gap: 8px; margin-bottom: 16px; max-height: 50vh; overflow: auto; }
dialog.picker label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; }
dialog.picker input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
dialog.picker .row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.gchip b { color: var(--fg); }
.signin-note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.signin-note a { color: var(--fg); font-weight: 700; }

@media (max-width: 860px) {
  .groups-grid, .g-layout, .g-top { grid-template-columns: minmax(0, 1fr); }
}

/* Landing intro and the friends log on the home page */
.landing { padding-block: 34px 6px; max-width: 820px; }
.landing h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 76px); line-height: .95;
  letter-spacing: .01em; margin: 10px 0 14px; text-wrap: balance;
}
.landing h1 em { font-style: normal; color: var(--gold); }
.landing p { color: #d6cfcc; font-size: 16.5px; max-width: 62ch; margin: 0; }
.landing-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.landing + .search { padding-top: 26px; }
.friends { border-top: 1px solid var(--line); padding-block: 30px 10px; scroll-margin-top: 20px; }
.friends .g-head { margin-bottom: 16px; }
.friends-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.post .sub a { color: var(--fg); }
.pager { margin-top: 18px; }

/* Share link page (/r/…) */
.share { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; padding-block: 34px 10px; align-items: start; }
.share-poster {
  position: relative; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 10px; overflow: hidden; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.share-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.share-poster .kind, .share-poster .ptitle { position: relative; z-index: 1; }
.share-body { min-width: 0; display: grid; gap: 14px; align-content: start; }
.share-body h1 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 84px); line-height: .92; margin: 0; color: var(--gold); text-wrap: balance; overflow-wrap: anywhere; }
.share-body .meta b { color: var(--fg); }
.share-panel { display: grid; gap: 12px; max-width: 520px; }
.share-panel h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; margin: 0; }
.share-panel .m { color: var(--muted); margin: 0; font-size: 14.5px; }
.reactions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reaction {
  font: 800 14px/1.2 var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 8px; cursor: pointer;
}
.reaction:hover { border-color: var(--muted); }
.reaction:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.reaction.in { border-color: color-mix(in srgb, var(--match) 50%, var(--line)); }
.reaction[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.reaction.in[aria-pressed="true"] { background: var(--match); border-color: var(--match); color: #0f0d0d; }
.share-more .lbl { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.share-more .minis { max-width: 520px; }
.share-cta { border-top: 1px solid var(--line); padding-top: 14px; max-width: 520px; }
.share-cta p { color: #cfc8c5; font-size: 14.5px; margin: 0 0 10px; }
@media (max-width: 700px) {
  .share { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .share-poster { width: 58%; margin-inline: auto; }
}

/* What to watch tab */
.tonight-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tonight-sum div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.tonight-sum b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--fg); }
.tonight-pick { display: grid; gap: 2px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.tonight-pick .lbl { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tonight-pick b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.tonight-pick .m { color: var(--muted); font-size: 13px; }
.wrow { align-items: start; }
.wrow .acts { margin-top: 8px; }
.wrow form { display: contents; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-s { font: 700 11.5px/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.chip-s.in { color: #0f0d0d; background: var(--match); border-color: var(--match); }
.chip-s.fresh { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.votes { font-family: var(--display); font-size: 34px; line-height: 1; text-align: center; color: var(--gold); }
.votes small { display: block; font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.reacts { color: var(--muted); font-size: 12.5px; }
@media (max-width: 520px) { .tonight-sum b { font-size: 26px; } }
.share-poster .ptitle { font-size: min(var(--fs), 10.5vw); overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Real posters from TMDB: the artwork carries the title, so hide the drawn one */
.mini.has-img, .poster.has-img .ptitle, .share-poster.has-img .ptitle { color: transparent; text-shadow: none; }
.poster.has-img .kind, .share-poster.has-img .kind { opacity: 0; }
.mini.has-img .mr { color: #0f0d0d; }
.list .opt .sw { background-size: cover; background-position: center; }
.site-foot .tmdb { display: block; margin-top: 4px; color: #6f6765; font-size: 11.5px; max-width: 60ch; }
.pick-src { color: var(--muted); font-size: 12.5px; }

/* Who in the group has watched a title: a tick on each member's avatar */
.watchers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.watchers form { display: contents; }
.watcher {
  position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 800 10px/1 var(--body); color: var(--muted); background: transparent; border: 1.5px dashed var(--line); padding: 0;
}
.watcher.on { background: var(--c); color: #fff; border: 1.5px solid var(--c); }
.watcher .tick {
  position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%;
  display: none; place-items: center; font: 900 9px/1 var(--body); color: #0f0d0d; background: var(--match);
  border: 2px solid var(--surface);
}
.watcher.on .tick { display: grid; }
button.watcher { cursor: pointer; }
button.watcher:not(.on) { border-color: var(--muted); color: var(--fg); }
button.watcher:hover { transform: scale(1.08); }
button.watcher:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.watch-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The searched title's own poster tile, beside its details */
.now.has-poster {
  --hp: clamp(140px, 17vw, 210px);
  display: grid; grid-template-columns: var(--hp) minmax(0, 1fr); gap: 18px 30px; align-items: start; padding-top: 30px;
}
.hero-poster { width: 100%; padding: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.65); border-radius: 8px; }
.hero-poster .ptitle { font-size: min(44px, calc(var(--hp) * 1.05 / var(--lw))); overflow-wrap: normal; word-break: normal; }
.now-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.now-body .meta { margin-bottom: 10px; }
.now-body h2 { margin-top: 6px; }
@media (max-width: 520px) {
  .now.has-poster { --hp: 108px; gap: 14px 16px; padding-top: 18px; }
}
