:root {
  color-scheme: dark;
  --bg: #040204;
  --panel: #0c0b0f;
  --panel-strong: #141218;
  --text: #fff8ef;
  --muted: #aaa1b8;
  --line: rgba(255, 248, 239, 0.14);
  --pink: #c13d62;
  --orange: #b76531;
  --yellow: #d5c84b;
  --green: #27965b;
  --cyan: #168296;
  --blue: #315690;
  --violet: #66268b;
  --button-spectrum: linear-gradient(90deg, #4b176c 0%, #203f7f 21%, #065a70 38%, #0b633f 54%, #7f842f 69%, #995525 84%, #873029 100%);
  --danger: #ff6d6d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(91, 18, 54, 0.28) 0%, transparent 36rem),
    linear-gradient(245deg, rgba(8, 88, 105, 0.22) 0%, transparent 34rem),
    linear-gradient(180deg, #160007 0%, #050405 38%, #08070b 100%),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a.ghost-button {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  text-decoration: none;
}

button {
  border: 0;
  border-radius: var(--radius);
  background: var(--button-spectrum);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 1rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.36);
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

button:not(.ghost-button):not(.chip) {
  box-shadow: 0 0 18px rgba(75, 23, 108, 0.22), 0 0 28px rgba(6, 90, 112, 0.14);
}

button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.56;
  transform: none;
}

a {
  color: var(--cyan);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  align-content: center;
  gap: 3rem;
  padding: 24px 0;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.logo {
  width: clamp(96px, 18vw, 190px);
  height: auto;
  object-fit: contain;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.88;
  margin-bottom: 0;
}

/* The FilmGays wordmark — mirrors the in-app `contourWordmark` (logo-derived
   warm→cool gradient with a green tail landing on the final "s"). Source of
   truth: mobile/flutter/lib/theme/film_moody_rainbow.dart. */
.wordmark {
  background-image: linear-gradient(
    90deg,
    #fcb257 0%, #f97744 8.23%, #f13f36 16.45%, #d31a3a 24.68%,
    #c50257 32.91%, #d603a6 41.14%, #c203cb 49.36%, #8702c6 57.59%,
    #4a14d4 65.82%, #0b2fe9 74.05%, #0066f4 82.27%, #01a4fc 90.5%,
    #65f467 96.5%, #65f467 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__content {
  max-width: 820px;
}

.welcome-copy {
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.context-copy {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.auth-card {
  background:
    linear-gradient(135deg, rgba(102, 38, 139, 0.16), transparent 36%),
    linear-gradient(245deg, rgba(22, 130, 150, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.92), rgba(6, 5, 8, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.28);
  margin-bottom: 0.85rem;
  overflow: hidden;
  position: relative;
}

.auth-card::before {
  background: var(--button-spectrum);
  content: "";
  height: 2px;
  inset: 0 0 auto;
  opacity: 0.74;
  position: absolute;
}

.auth-panel {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.auth-heading {
  max-width: 620px;
}

.auth-panel h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.auth-copy {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.oauth-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
}

.provider-button {
  align-items: center;
  background: rgba(255, 248, 239, 0.045);
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 1rem;
  gap: 0.8rem;
  justify-content: center;
  min-height: 54px;
  min-width: 0;
  position: relative;
  text-shadow: none;
}

.provider-button:hover {
  background: rgba(255, 248, 239, 0.075);
  border-color: rgba(255, 248, 239, 0.42);
}

.provider-button .provider-icon {
  left: 1.1rem;
  position: absolute;
}

.provider-icon {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  width: 1.35rem;
}

.provider-icon--apple {
  color: #050505;
}

.provider-icon svg {
  display: block;
  height: 1.35rem;
  width: 1.35rem;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 0.85rem;
  max-width: 680px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.auth-divider span {
  color: var(--muted);
}

.magic-link-form {
  background: rgba(255, 248, 239, 0.035);
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 0.75rem;
  max-width: 680px;
  padding: 1rem;
}

.magic-link-form label {
  color: var(--text);
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.magic-link-form .auth-copy {
  font-size: 0.92rem;
}

.magic-link-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.name-status[data-tone="success"] {
  color: #83e6a4;
}

.name-status[data-tone="info"] {
  color: var(--muted);
}

.name-card {
  background: linear-gradient(180deg, rgba(18, 16, 22, 0.9), rgba(6, 5, 8, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.vote-gate {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.vote-gate__copy {
  min-width: 0;
}

.vote-gate h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.name-card label,
.filters label {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.name-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.name-status {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0.7rem 0 0;
  min-height: 1.25rem;
}

input {
  background: #050406;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  min-height: 44px;
  outline: none;
  padding: 0 0.9rem;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63, 205, 224, 0.18);
}

input[type="checkbox"] {
  accent-color: var(--pink);
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 1.1rem;
  outline: none;
  padding: 0;
  width: 1.1rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.ghost-button,
.chip {
  background: rgba(255, 248, 239, 0.055);
  border: 1px solid var(--line);
  color: var(--text);
  text-shadow: none;
}

.ghost-button:hover,
.chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.source-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.app-view {
  padding-bottom: 3rem;
}

.toolbar {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.8rem;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.status-strip,
.poll-note {
  align-items: center;
  background: #0b0b0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
}

.status-strip strong {
  color: var(--yellow);
}

.poll-note {
  display: block;
}

.poll-note p {
  margin: 0;
}

.filters {
  align-items: end;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chip {
  color: var(--muted);
  min-height: 38px;
}

.chip.active {
  border-color: var(--yellow);
  color: var(--text);
}

.film-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.film-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.035), rgba(255, 248, 239, 0.012)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.85rem;
  min-height: 252px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.film-card::before {
  background: var(--button-spectrum);
  content: "";
  height: 2px;
  left: 0;
  opacity: 0.46;
  position: absolute;
  right: 0;
  top: 0;
}

.film-card.is-selected {
  border-color: rgba(213, 200, 75, 0.74);
  box-shadow: inset 0 0 0 1px rgba(213, 200, 75, 0.3), 0 0 26px rgba(8, 88, 105, 0.18);
}

.film-card.is-selected::before {
  height: 3px;
  opacity: 1;
}

.film-card.is-unavailable {
  border-color: rgba(255, 109, 109, 0.34);
  opacity: 0.72;
}

.film-card.is-unavailable .poster-thumb,
.film-card.is-unavailable .ratings {
  filter: grayscale(0.45);
}

.screened-label {
  align-self: start;
  background: rgba(255, 109, 109, 0.12);
  border: 1px solid rgba(255, 109, 109, 0.42);
  border-radius: 999px;
  color: #ff9c9c;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-self: start;
  line-height: 1;
  padding: 0.38rem 0.58rem;
  text-transform: uppercase;
}

.selected-label {
  align-self: start;
  background: rgba(213, 200, 75, 0.12);
  border: 1px solid rgba(213, 200, 75, 0.48);
  border-radius: 999px;
  color: #f0e58c;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-self: start;
  line-height: 1;
  padding: 0.38rem 0.58rem;
  text-transform: uppercase;
}

.screened-label--inline {
  margin-top: 0.5rem;
}

.film-card__top {
  align-items: start;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 62px minmax(0, 1fr) auto;
}

.poster-thumb {
  aspect-ratio: 2 / 3;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  display: block;
  object-fit: cover;
  width: 62px;
}

.film-card__copy {
  min-width: 0;
}

.rank {
  align-items: center;
  background: #070708;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--yellow);
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  min-width: 48px;
  padding: 0 0.5rem;
}

.film-title {
  font-size: 1.16rem;
  line-height: 1.14;
  margin: 0 0 0.35rem;
}

.film-meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.film-meta span {
  display: block;
}

.ratings {
  align-items: flex-start;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rating {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.38rem;
  flex: 0 0 auto;
  height: 32px;
  justify-content: flex-start;
  padding: 0.22rem 0.5rem 0.22rem 0.28rem;
  text-decoration: none;
  width: 5.8rem;
}

.rating__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  position: relative;
  width: 22px;
}

.rating__icon--rt {
  background: #f23a24;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50% 50% 46% 46%;
  box-shadow: inset -3px -4px 0 rgba(103, 0, 0, 0.18);
}

.rating__icon--rt-fresh::before,
.rating__icon--rt-certified::before {
  background: #42d06f;
  clip-path: polygon(50% 0, 63% 35%, 100% 28%, 72% 52%, 90% 88%, 50% 62%, 10% 88%, 28% 52%, 0 28%, 37% 35%);
  content: "";
  height: 12px;
  left: 4px;
  position: absolute;
  top: -7px;
  width: 14px;
}

.rating__icon--rt-certified {
  border-color: #f1d455;
  box-shadow: 0 0 0 2px rgba(241, 212, 85, 0.38), inset -3px -4px 0 rgba(103, 0, 0, 0.18);
}

.rating__icon--rt-certified::after {
  background: #f1d455;
  border-radius: 999px;
  color: #291802;
  content: "✓";
  font-size: 0.46rem;
  font-weight: 1000;
  height: 0.68rem;
  line-height: 0.68rem;
  position: absolute;
  right: -0.28rem;
  text-align: center;
  top: -0.24rem;
  width: 0.68rem;
}

.rating__icon--rt-rotten {
  background: #7fa33b;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 44% 56% 50% 42%;
  box-shadow: inset -4px -4px 0 rgba(29, 50, 12, 0.28);
}

.rating__icon--rt-rotten::before {
  background: #314a19;
  content: "";
  height: 0.28rem;
  left: 0.45rem;
  position: absolute;
  top: -0.24rem;
  transform: rotate(20deg);
  width: 0.7rem;
}

.rating__icon--mc {
  background: #08ce78;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  color: #06120c;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
}

.rating__icon--mc-positive {
  background: #08ce78;
  color: #06120c;
}

.rating__icon--mc-mixed {
  background: #f3c549;
  color: #261700;
}

.rating__icon--mc-negative {
  background: #d94c40;
  color: #1d0302;
}

.rating__text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.rating--empty {
  color: var(--muted);
}

.rating--empty .rating__icon {
  filter: grayscale(0.85);
  opacity: 0.72;
}


.film-card__actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-top: auto;
}

.select-button {
  flex: 1;
}

.details-button {
  min-width: 96px;
}

dialog {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  max-width: min(920px, calc(100% - 24px));
  padding: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

body.dialog-fallback-open::before {
  background: rgba(0, 0, 0, 0.72);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 19;
}

dialog.dialog-fallback[open] {
  display: block;
  left: 50%;
  max-height: calc(100vh - 24px);
  overflow: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.dialog-close {
  align-items: center;
  background: #08080a;
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  font-size: 1.4rem;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  z-index: 1;
}

.dialog-body,
.results-body {
  padding: 1rem;
}

.dialog-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.dialog-title-row {
  align-items: start;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 72px minmax(0, 1fr);
  padding-right: 3rem;
}

.dialog-poster {
  aspect-ratio: 2 / 3;
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  display: block;
  object-fit: cover;
  width: 72px;
}

.dialog-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.dialog-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #030303;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.details-ratings {
  margin: 1rem 0;
}

.results-body {
  min-width: min(760px, calc(100vw - 24px));
}

.results-list {
  display: grid;
  gap: 0.55rem;
  max-height: 68vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.result-row {
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.035), rgba(255, 248, 239, 0.012)),
    #09090c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
}

.result-row__top {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.result-row h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0 0 0.12rem;
}

.result-row p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
}

.result-row strong {
  white-space: nowrap;
}

.bar {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.bar span {
  background: var(--button-spectrum);
  box-shadow: 0 0 12px rgba(12, 138, 162, 0.18);
  display: block;
  height: 100%;
  min-width: 2px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 1rem;
}

.admin-shell {
  max-width: 1120px;
}

.admin-shell h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.94;
  margin-bottom: 1rem;
}

.admin-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.admin-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 0.85rem;
  text-decoration: none;
}

.admin-brand strong {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  line-height: 1.05;
}

.logo--small {
  width: clamp(64px, 13vw, 96px);
}

.admin-panel {
  background: rgba(16, 16, 19, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-panel--compact {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem 0;
}

.admin-copy,
.admin-inline-status,
.record-meta {
  color: var(--muted);
  line-height: 1.45;
}

.admin-login {
  margin-top: 1rem;
}

.admin-login label {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.admin-login__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-dashboard__top {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-dialog {
  width: min(1040px, calc(100% - 24px));
}

.admin-modal-body {
  padding: 1rem;
}

.admin-modal-body h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.7rem;
}

.admin-tool-panel {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.admin-tool-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-tool-heading h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.screened-admin-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  max-height: 280px;
  overflow: auto;
}

.screened-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 0.65rem 0.75rem;
}

.screened-row:last-child {
  border-bottom: 0;
}

.screened-row__rank {
  color: var(--yellow);
  font-weight: 900;
  min-width: 2.7rem;
}

.screened-row strong,
.screened-row span span {
  display: block;
}

.screened-row span span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.1rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.results-share-preview {
  background: #070708;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.results-share-preview img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  width: min(100%, 336px);
}

.admin-actions,
.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.danger-button {
  background: linear-gradient(90deg, #721622, #b3263b);
  color: var(--text);
}

.danger-button:disabled {
  opacity: 0.45;
}

.select-all-row {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
}

.records-list {
  display: grid;
  gap: 0.7rem;
}

.record-row {
  align-items: start;
  background: #0c0c0f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.85rem;
}

.record-check {
  padding-top: 0.25rem;
}

.record-main {
  min-width: 0;
}

.record-heading {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.record-heading h2,
.record-heading h3 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.record-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.record-meta {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.record-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.vote-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.34rem 0.58rem;
}

.vote-pill--inactive {
  border-color: rgba(255, 109, 109, 0.42);
  color: #ff9c9c;
}

.vote-pill--empty {
  color: var(--muted);
}

.confirm-dialog {
  max-width: min(420px, calc(100% - 24px));
}

.confirm-dialog__body {
  padding: 1rem;
}

.confirm-dialog__body h2 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.confirm-dialog__body p {
  color: var(--muted);
  line-height: 1.45;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.legal-page {
  margin: 0 auto;
  max-width: 860px;
  padding: 28px 16px 56px;
}

.legal-panel {
  background:
    linear-gradient(135deg, rgba(102, 38, 139, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(16, 16, 19, 0.9), rgba(6, 5, 8, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1.2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.legal-panel h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 0.92;
  margin-bottom: 1rem;
}

.legal-panel h2 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.4rem;
}

.legal-panel p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero__brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .name-row,
  .vote-gate,
  .magic-link-row,
  .filters,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .vote-gate {
    align-items: stretch;
    display: grid;
  }

  .oauth-grid {
    grid-template-columns: 1fr;
  }

  .member-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar__actions,
  .admin-actions,
  .share-actions,
  .admin-login__row,
  .admin-panel--compact,
  .admin-dashboard__top,
  .admin-tool-heading,
  .filter-buttons,
  .film-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel--compact,
  .admin-dashboard__top,
  .admin-tool-heading {
    align-items: stretch;
  }

  .admin-login__row,
  .admin-dashboard__top,
  .admin-tool-heading {
    grid-template-columns: 1fr;
  }

  .record-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .record-heading span {
    white-space: normal;
  }

  #submitVotes {
    grid-column: 1 / -1;
  }
}
