/* watchskip — Pico dark + cinematic overrides */

:root,
[data-theme="dark"],
[data-theme="light"] {
  /* Cursor/Electron-adjacent UI stack (Inter + system); not Styrene/Copernicus (commercial) */
  --ws-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  --ws-font-serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --pico-font-family: var(--ws-font-sans);
  --pico-font-family-sans-serif: var(--ws-font-sans);
}

:root,
[data-theme="dark"] {
  --ws-bg: #13131c;
  --ws-accent: #e24b4a;
  --ws-watch: #1d9e75;
  --ws-watch-bg: rgba(29, 158, 117, 0.15);
  --ws-skip-bg: rgba(226, 75, 74, 0.12);
  --ws-border: rgba(255, 255, 255, 0.1);
  --ws-glow: rgba(200, 165, 90, 0.18);
  --ws-toolbar-muted: rgba(255, 255, 255, 0.55);
  --ws-tip-bg: #2c2c38;
  --ws-tip-fg: #f4f4f8;
  --ws-tip-border: rgba(255, 255, 255, 0.14);
  --ws-tip-shadow: rgba(0, 0, 0, 0.35);
  /* Logo wordmark: softer mist vs brighter white */
  --ws-logo-w: #9b9dad;
  --ws-logo-s: #e8e9ee;
  --ws-link: #b4b6c4;
  --ws-link-hover: #f4f5f8;
  /* Swipe card: trailer pill (hero overlay) */
  --ws-swipe-trailer-pill-fg: #fafafa;
  --ws-swipe-trailer-pill-fg-soft: color-mix(in srgb, #fafafa 92%, var(--ws-accent) 8%);
  --ws-swipe-trailer-pill-bg: color-mix(in srgb, var(--ws-accent) 70%, #12121c 30%);
  --ws-swipe-trailer-pill-border: color-mix(in srgb, var(--ws-accent) 82%, rgba(255, 255, 255, 0.22));
  --ws-swipe-trailer-pill-hover-bg: color-mix(in srgb, var(--ws-accent) 82%, #0c0c12 18%);
  --ws-swipe-trailer-pill-hover-fg: #ffffff;
  --ws-swipe-trailer-pill-hover-border: color-mix(in srgb, var(--ws-accent) 58%, #fff 42%);
  --ws-swipe-trailer-pill-shadow: 0 1px 0 color-mix(in srgb, #fff 14%, transparent), 0 4px 14px rgba(0, 0, 0, 0.38);
  --ws-swipe-trailer-pill-hover-shadow: 0 2px 0 color-mix(in srgb, #fff 16%, transparent), 0 10px 28px rgba(0, 0, 0, 0.52),
    0 0 28px color-mix(in srgb, var(--ws-accent) 32%, transparent);
}

[data-theme="light"] {
  /* Slightly deeper than off-white so projector dust reads clearly */
  --ws-bg: #e8eaf1;
  --ws-accent: #c43d3c;
  --ws-watch: #0f7a5a;
  --ws-watch-bg: rgba(15, 122, 90, 0.1);
  --ws-skip-bg: rgba(196, 61, 60, 0.08);
  --ws-border: rgba(0, 0, 0, 0.1);
  --ws-glow: rgba(95, 70, 38, 0.14);
  --ws-toolbar-muted: rgba(0, 0, 0, 0.5);
  --ws-tip-bg: #ffffff;
  --ws-tip-fg: #14141c;
  --ws-tip-border: rgba(0, 0, 0, 0.14);
  --ws-tip-shadow: rgba(0, 0, 0, 0.12);
  /* Logo wordmark: mid grey vs deeper charcoal */
  --ws-logo-w: #6a6d76;
  --ws-logo-s: #2c2f38;
  --ws-link: #6a6d78;
  --ws-link-hover: #12131a;
  /* Light pill: neutral rim (no red bleed); accent is text + hover ring only */
  --ws-swipe-trailer-pill-fg: color-mix(in srgb, var(--ws-accent) 90%, #1a0808 10%);
  --ws-swipe-trailer-pill-fg-soft: #4a4d55;
  --ws-swipe-trailer-pill-bg: #ffffff;
  --ws-swipe-trailer-pill-border: rgba(15, 18, 28, 0.18);
  --ws-swipe-trailer-pill-hover-bg: #f0f2f5;
  --ws-swipe-trailer-pill-hover-fg: color-mix(in srgb, var(--ws-accent) 96%, #0a0202 4%);
  --ws-swipe-trailer-pill-hover-border: color-mix(in srgb, var(--ws-accent) 88%, #3a0a0a 12%);
  --ws-swipe-trailer-pill-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --ws-swipe-trailer-pill-hover-shadow: 0 6px 22px rgba(0, 0, 0, 0.2), 0 0 0 2px color-mix(in srgb, var(--ws-accent) 58%, transparent),
    0 0 22px color-mix(in srgb, var(--ws-accent) 22%, transparent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 100%;
  scroll-padding-top: 5.35rem;
  /* Prevent horizontal rubber-band / scroll from abs. children (e.g. wide tooltips) */
  overflow-x: clip;
}

body {
  background: var(--ws-bg);
  color: var(--pico-color);
  font-family: var(--ws-font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
body > main.container {
  flex: 1 0 auto;
}

/* Site-wide link colors: dark theme = gray → brighter; light theme = gray → darker (see --ws-link-hover per theme). No hover background. */
a[href]:where(
    :not(.ws-brand):not(.ws-filter-pill):not(.ws-landing-genre-tile):not(.ws-swipe-trailer-link)
  ) {
  color: var(--ws-link);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, opacity 0.15s ease;
}
a[href]:where(
    :not(.ws-brand):not(.ws-filter-pill):not(.ws-landing-genre-tile):not(.ws-swipe-trailer-link)
  ):hover {
  color: var(--ws-link-hover);
  background-color: transparent;
}

/* Inline links: hairline underline (nav / icon chrome excluded) */
:is(main, footer)
  a[href]:where(
    :not(.ws-nav-icon):not(.ws-icon-btn):not(.ws-brand):not(.ws-filter-pill):not(.ws-footer-tmdb-link):not(.ws-landing-genre-tile):not(.ws-swipe-trailer-link)
  ) {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: max(1px, 0.055em);
  text-decoration-color: color-mix(in srgb, currentColor 24%, transparent);
}
:is(main, footer)
  a[href]:where(
    :not(.ws-nav-icon):not(.ws-icon-btn):not(.ws-brand):not(.ws-filter-pill):not(.ws-footer-tmdb-link):not(.ws-landing-genre-tile):not(.ws-swipe-trailer-link)
  ):hover {
  text-decoration-color: color-mix(in srgb, currentColor 48%, transparent);
}

/* Pico .contrast links: same fg as global; accent in underline only */
:is(main, footer) a.contrast[href] {
  font-weight: 400;
  text-underline-offset: 0.2em;
  text-decoration-thickness: max(1px, 0.055em);
  text-decoration-color: color-mix(in srgb, var(--ws-accent) 30%, transparent);
}
:is(main, footer) a.contrast[href]:hover {
  text-decoration-color: color-mix(in srgb, var(--ws-accent) 44%, transparent);
}

/* Logo: Inter + bolt glow */
.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  font-family: var(--ws-font-sans);
  font-size: clamp(0.88rem, 2.8vw + 0.55rem, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: lowercase;
  line-height: 1;
}
.ws-brand-w {
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--ws-logo-w);
}
.ws-brand-s {
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--ws-logo-s);
}
.ws-brand-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.02em;
  color: var(--ws-accent);
  transform: translateY(0.06em);
}
.ws-bolt-svg {
  display: block;
  animation: ws-bolt-glow-dark 6s ease-in-out infinite;
}
[data-theme="light"] .ws-bolt-svg {
  animation-name: ws-bolt-glow-light;
}
@keyframes ws-bolt-glow-dark {
  0%,
  100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 3px rgba(226, 75, 74, 0.25));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(226, 75, 74, 0.52));
  }
}
@keyframes ws-bolt-glow-light {
  0%,
  100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 3px rgba(196, 61, 60, 0.22));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(196, 61, 60, 0.48));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws-bolt-svg {
    animation: none;
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(226, 75, 74, 0.32));
  }
  [data-theme="light"] .ws-bolt-svg {
    filter: drop-shadow(0 0 4px rgba(196, 61, 60, 0.3));
  }
}

.ws-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 1.35rem;
  background: var(--ws-bg);
  box-sizing: border-box;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Tighter than Pico’s body>header padding-block; still clear of the top / notch. */
  padding-top: max(0.4rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.5rem;
  /* Single symmetric gutter (Pico .container uses max-width + margin:auto and kills horizontal padding ≥576px). */
  padding-left: max(
    clamp(0.875rem, 4vw, var(--pico-spacing, 1rem)),
    env(safe-area-inset-left, 0px)
  );
  padding-right: max(
    clamp(0.875rem, 4vw, var(--pico-spacing, 1rem)),
    env(safe-area-inset-right, 0px)
  );
}

/* Header rows fill the padded header; do not use Pico’s centered narrow .container strip. */
header.ws-header > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Slim utility row: start (queue) · centered tagline · icons */
.ws-toolbar {
  --ws-toolbar-icon-hit: 1.88rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0;
}
.ws-toolbar-start {
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
}
.ws-toolbar-center {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(70vw, 18rem);
}
/* Landing only: gamified kicker */
.ws-toolbar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  margin: 0;
  font-family: var(--ws-font-sans);
  font-size: clamp(0.68rem, 2.85vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.ws-toolbar-kicker-text {
  background: linear-gradient(
    105deg,
    #fef08a 0%,
    #fdba74 22%,
    #fb7185 48%,
    #c084fc 72%,
    #7dd3fc 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ws-accent) 35%, transparent))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
[data-theme="light"] .ws-toolbar-kicker-text {
  background: linear-gradient(105deg, #ca8a04, #ea580c, #db2777, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 color-mix(in srgb, #fff 40%, transparent));
}
.ws-toolbar-kicker-spark {
  font-size: 0.58em;
  line-height: 1;
  color: color-mix(in srgb, var(--ws-accent) 92%, #fff 8%);
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .ws-toolbar-kicker-spark {
    animation: ws-toolbar-kicker-pulse 2.4s ease-in-out infinite;
  }
  .ws-toolbar-kicker-spark:last-of-type {
    animation-delay: 1.2s;
  }
}
@keyframes ws-toolbar-kicker-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ws-toolbar-kicker-spark {
    animation: none;
  }
}
/* DaisyUI-adjacent badges (primary = --ws-accent); no Daisy dependency */
.ws-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--ws-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* badge-soft + badge-primary */
.ws-badge--soft-primary {
  border: none;
  background: color-mix(in srgb, var(--ws-accent) 24%, transparent);
  color: var(--ws-accent);
  box-shadow: none;
}
[data-theme="light"] .ws-badge--soft-primary {
  background: color-mix(in srgb, var(--ws-accent) 16%, transparent);
  color: var(--ws-accent);
}
/* badge-dash + badge-primary */
.ws-badge--dash-primary {
  border: 1px dashed color-mix(in srgb, var(--ws-accent) 72%, var(--ws-border));
  background: transparent;
  color: var(--ws-accent);
  box-shadow: none;
}
[data-theme="light"] .ws-badge--dash-primary {
  border-color: color-mix(in srgb, var(--ws-accent) 55%, var(--ws-border));
  color: color-mix(in srgb, var(--pico-color) 22%, var(--ws-accent) 78%);
}
.ws-toolbar-icons {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}
/* Top row: logo | center slot | actions/icons (all pages) */
.ws-toolbar--app-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem 0.5rem;
}
.ws-toolbar-logo {
  justify-self: start;
  min-width: 0;
}
.ws-toolbar-logo .ws-brand {
  font-size: clamp(0.76rem, 3.2vw, 0.92rem);
}
.ws-toolbar-genre-slot {
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(46vw, 15rem);
}
.ws-toolbar-swipe-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 0;
}
body.ws-swipe-page .ws-toolbar--swipe-primary .ws-toolbar-icons {
  grid-column: auto;
  justify-self: end;
}
/* Swipe queue: same vertical track as toolbar icons (inherits --ws-toolbar-icon-hit); line-height:0 kills <p> strut */
body.ws-swipe-page .ws-queue-remaining {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ws-toolbar-icon-hit);
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
}
body.ws-swipe-page .ws-toolbar-swipe-actions .ws-toolbar-icons {
  flex-shrink: 0;
}
body.ws-swipe-page .ws-queue-remaining__line {
  position: relative;
  gap: 0.28em;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
}
body.ws-swipe-page .ws-queue-remaining__num {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
}
body.ws-swipe-page .ws-queue-remaining__suffix {
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  body.ws-swipe-page .ws-queue-remaining__line {
    font-size: clamp(0.56rem, 1.9vw, 0.64rem);
    letter-spacing: 0.03em;
    padding: 0.18rem 0.48rem;
    gap: 0.14em;
  }
}

/* Narrow phones: shorten queue label to “94L” so the logo column keeps room (full phrase stays in #ws-queue-aria). */
@media (max-width: 520px) {
  body.ws-swipe-page .ws-queue-remaining__line:has(#ws-queue-suffix:not([hidden])) #ws-queue-suffix {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.ws-swipe-page .ws-queue-remaining__line:has(#ws-queue-suffix:not([hidden]))::after {
    content: "L";
    letter-spacing: 0.04em;
  }
}
.ws-header-inner--swipe-sub {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}
.ws-header-inner--app-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}
.ws-swipe-filter-slot {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
}
.ws-nav--deck {
  justify-content: flex-end;
  flex: 0 1 auto;
}
.ws-nav--deck .ws-nav-mode {
  gap: 0.22rem 0.38rem;
}
.ws-nav--deck .ws-nav-deck-link {
  min-height: 2rem;
  height: auto;
  padding: 0.3rem 0.48rem 0.3rem 0.4rem;
  border-radius: 999px;
  gap: 0.32rem;
}
.ws-nav--deck .ws-nav-label {
  font-family: var(--ws-font-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: inherit;
  text-transform: inherit;
}
.ws-nav-deck-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.ws-nav--deck .ws-nav-deck-link.ws-nav-active .ws-nav-deck-icon {
  opacity: 1;
  color: inherit;
}
/* Swipe: refine popover (second row) */
.ws-refine {
  position: relative;
  color: inherit;
}
/* Outline + glass: override Pico primary button. Pico sets buttons’ --pico-color to primary-inverse (white); use inherit so label/icon match body text in both themes. */
button.ws-refine-dropdown-btn[type="button"] {
  --pico-background-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.1rem;
  padding: 0 0.62rem 0 0.52rem;
  margin: 0;
  margin-bottom: 0;
  border-radius: 10px;
  border: 1.5px solid var(--ws-accent);
  background: transparent;
  box-shadow: none;
  color: var(--ws-accent);
  cursor: pointer;
  font-family: var(--ws-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, opacity 0.15s ease;
}
[data-theme="light"] button.ws-refine-dropdown-btn[type="button"] {
  border-color: var(--ws-accent);
  background: transparent;
  color: var(--ws-accent);
}
button.ws-refine-dropdown-btn[type="button"]:hover {
  background: color-mix(in srgb, var(--ws-accent) 12%, transparent);
}
[data-theme="light"] button.ws-refine-dropdown-btn[type="button"]:hover {
  background: color-mix(in srgb, var(--ws-accent) 10%, transparent);
}
button.ws-refine-dropdown-btn[type="button"].is-open {
  background: color-mix(in srgb, var(--ws-accent) 14%, transparent);
}
[data-theme="light"] button.ws-refine-dropdown-btn[type="button"].is-open {
  background: color-mix(in srgb, var(--ws-accent) 12%, transparent);
}
.ws-refine-dropdown-icon {
  flex-shrink: 0;
  color: inherit;
}
.ws-refine-dropdown-label {
  white-space: nowrap;
  color: inherit;
}
button.ws-refine-dropdown-btn[type="button"]:focus {
  outline: none;
  box-shadow: none;
}
button.ws-refine-dropdown-btn[type="button"]:focus-visible {
  outline: none;
  box-shadow: none;
}
@media (max-width: 420px) {
  .ws-refine-dropdown-label {
    font-size: 0.62rem;
  }
  button.ws-refine-dropdown-btn[type="button"] {
    padding: 0 0.44rem 0 0.38rem;
    gap: 0.24rem;
    font-size: 0.64rem;
  }
}
.ws-swipe-filter-slot .ws-refine-panel {
  left: 0;
  right: auto;
  transform: none;
}
.ws-refine-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100vw - 2rem), 17.5rem);
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--ws-border);
  background: var(--ws-tip-bg);
  color: var(--ws-tip-fg);
  box-shadow: 0 12px 36px var(--ws-tip-shadow);
  z-index: 90;
  text-align: left;
  /* Panel-local fg/bg so pills always contrast (Pico vars can disagree inside popovers). */
  --ws-refine-fg: var(--ws-tip-fg);
  --ws-refine-bg: var(--ws-tip-bg);
}
.ws-refine-title {
  margin: 0 0 0.65rem;
  font-family: var(--ws-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ws-refine-fg);
}
.ws-refine-block {
  margin-bottom: 0.75rem;
}
.ws-refine-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--ws-refine-fg) 72%, var(--ws-accent) 28%);
}
.ws-refine-label--plain {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 1;
  color: var(--ws-refine-fg);
}
.ws-refine-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ws-refine-pill {
  margin: 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ws-accent) 45%, var(--ws-border));
  background: color-mix(in srgb, var(--ws-accent) 10%, var(--ws-refine-bg));
  color: var(--ws-refine-fg);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.ws-refine-pill:hover {
  color: var(--ws-refine-fg);
  border-color: var(--ws-accent);
  background: color-mix(in srgb, var(--ws-accent) 18%, var(--ws-refine-bg));
}
.ws-refine-pill.is-active {
  color: #fff;
  border-color: var(--ws-accent);
  background: var(--ws-accent);
}
[data-theme="light"] .ws-refine-pill {
  border-color: color-mix(in srgb, var(--ws-accent) 50%, var(--ws-refine-fg));
  background: color-mix(in srgb, var(--ws-accent) 14%, var(--ws-refine-bg));
  color: var(--ws-refine-fg);
}
[data-theme="light"] .ws-refine-pill:hover {
  background: color-mix(in srgb, var(--ws-accent) 24%, var(--ws-refine-bg));
  border-color: var(--ws-accent);
}
[data-theme="light"] .ws-refine-pill.is-active {
  color: #fff;
  background: var(--ws-accent);
  border-color: var(--ws-accent);
}
.ws-refine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.ws-refine-actions button {
  margin: 0;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
}
[data-theme="light"] .ws-refine-panel {
  background: var(--ws-tip-bg);
}
.ws-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ws-link);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, filter 0.15s ease;
}
/* No focus ring on toolbar icon controls (theme button, email + help links) */
.ws-toolbar .ws-icon-btn:focus,
.ws-toolbar .ws-icon-btn:focus-visible {
  outline: none;
  box-shadow: none;
}
.ws-toolbar button.ws-icon-btn::-moz-focus-inner {
  border: 0;
}
/* Top row only: smaller, lighter footprint */
.ws-toolbar .ws-icon-btn:not(.ws-refine-trigger) {
  width: var(--ws-toolbar-icon-hit);
  height: var(--ws-toolbar-icon-hit);
  border-radius: 7px;
}
.ws-toolbar .ws-icon-btn:not(.ws-refine-trigger) svg {
  width: 16px;
  height: 16px;
}
.ws-icon-btn:hover:not(.ws-refine-trigger) {
  color: var(--ws-link-hover);
  background-color: transparent;
}
/* Toolbar icon “active”: same bright fg as link hover */
.ws-icon-btn-active {
  background: transparent;
  color: var(--ws-link-hover);
  filter: none;
}
.ws-icon-btn.ws-icon-btn-active:hover {
  background-color: transparent;
  color: var(--ws-link-hover);
  filter: none;
}
.ws-icon-btn-active svg * {
  stroke-width: 1.65;
}

/* Swipe help: same neutral treatment as other toolbar icons (link or button) */
.ws-icon-btn--how {
  color: var(--ws-link);
  background: transparent;
  cursor: help;
}
a.ws-icon-btn--how {
  cursor: pointer;
  text-decoration: none;
}
.ws-icon-btn--how:hover {
  color: var(--ws-link-hover);
  background-color: transparent;
}
.ws-how-q {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  font-family: var(--ws-font-sans);
}
.ws-toolbar .ws-icon-btn--how .ws-how-q {
  font-size: 0.94rem;
}
@media (max-width: 640px) {
  .ws-toolbar .ws-icon-btn--how .ws-how-q {
    font-size: 0.82rem;
  }
}

/* Hover / keyboard tooltip — explicit fg/bg per theme (fixes light-mode contrast) */
.ws-tip {
  position: relative;
  z-index: 1;
}
.ws-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--ws-tip-fg);
  background: var(--ws-tip-bg);
  border: 1px solid var(--ws-tip-border);
  border-radius: 6px;
  box-shadow: 0 4px 14px var(--ws-tip-shadow);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 300;
}
.ws-tip[data-tip]:hover::after,
.ws-tip[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .ws-tip[data-tip]::after {
    transition: none;
  }
}

/* Multi-line / wide tip: stay in viewport when anchor is on the right (toolbar icons) */
.ws-tip--help[data-tip]::after {
  left: auto;
  right: 0;
  transform: none;
  width: min(19.5rem, calc(100vw - 1.25rem));
  max-width: min(19.5rem, calc(100vw - 1.25rem));
  white-space: pre-line;
  text-align: left;
  letter-spacing: 0.02em;
  line-height: 1.55;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem 0.65rem;
  border-radius: 10px;
  border-left: 3px solid color-mix(in srgb, var(--ws-accent) 55%, var(--ws-border));
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (max-width: 400px) {
  .ws-tip--help[data-tip]::after {
    width: min(19.5rem, calc(100vw - 1rem));
    max-width: min(19.5rem, calc(100vw - 1rem));
    right: 0;
    font-size: 0.68rem;
  }
}

/* flex-end so deck nav stays right; swipe row uses .ws-swipe-filter-slot { margin-right: auto } */
.ws-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.48rem 0;
}
.ws-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.ws-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s ease, filter 0.15s ease;
}
.ws-nav .contrast {
  font-weight: 400;
}
.ws-nav a.ws-nav-active {
  color: var(--ws-link-hover);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.06em);
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
}
.ws-nav a.ws-nav-active:hover {
  color: var(--ws-link-hover);
}
.ws-nav a.ws-nav-icon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 0.65rem 0 0.48rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s ease, filter 0.15s ease;
}
.ws-nav-label {
  font-family: var(--ws-font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
}
.ws-nav a.ws-nav-icon:hover {
  background-color: transparent;
}
.ws-nav a.ws-nav-icon.ws-nav-active {
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  font-weight: 400;
  color: var(--ws-link-hover);
  filter: none;
}
.ws-nav a.ws-nav-icon.ws-nav-active:hover {
  background-color: transparent;
  color: var(--ws-link-hover);
  filter: none;
}
.ws-nav a.ws-nav-icon.ws-nav-active svg * {
  stroke-width: 1.65;
}
.ws-nav .ws-nav-cta.ws-nav-active {
  box-shadow: none;
}

@media (max-width: 640px) {
  .ws-header {
    padding-left: max(clamp(1.125rem, 5.5vw, 1.4rem), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(1.125rem, 5.5vw, 1.4rem), env(safe-area-inset-right, 0px));
  }
  /* Second header row: filter + primary nav — slightly tighter, smaller type/icons */
  .ws-header-inner--swipe-sub,
  .ws-header-inner--app-sub {
    gap: 0.42rem 0.55rem;
  }
  .ws-toolbar-genre-slot {
    max-width: min(32vw, 7.5rem);
  }
  .ws-toolbar-icons {
    gap: 0.1rem;
  }
  .ws-toolbar-swipe-actions {
    gap: 0.28rem;
  }
  .ws-nav-mode {
    gap: 0.28rem 0.36rem;
  }
  .ws-nav--deck .ws-nav-mode {
    gap: 0.08rem 0.16rem;
  }
  .ws-nav--deck .ws-nav-deck-link {
    padding: 0.22rem 0.3rem 0.22rem 0.26rem;
    gap: 0.18rem;
  }
  .ws-toolbar-logo .ws-brand {
    font-size: clamp(0.64rem, 2.65vw, 0.74rem);
  }
  .ws-toolbar {
    --ws-toolbar-icon-hit: 1.72rem;
    padding: 0.18rem 0;
  }
  .ws-brand {
    font-size: clamp(0.8rem, 4.2vw, 0.95rem);
    gap: 0.06em;
  }
  .ws-nav {
    gap: 0.4rem 0.55rem;
  }
  .ws-nav a:not(.ws-nav-icon) {
    font-size: 0.74rem;
  }
  .ws-nav a.ws-nav-icon {
    min-height: 1.95rem;
    height: 1.95rem;
    padding: 0 0.42rem 0 0.34rem;
    gap: 0.26rem;
  }
  .ws-nav--deck .ws-nav-label {
    font-size: 0.62rem;
  }
  .ws-nav-label {
    font-size: 0.66rem;
  }
  .ws-nav a.ws-nav-icon svg {
    width: 16px;
    height: 16px;
  }
  .ws-toolbar .ws-icon-btn svg {
    width: 14px;
    height: 14px;
  }
  .ws-header-inner {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }
  button.ws-refine-dropdown-btn[type="button"] {
    min-height: 1.95rem;
    padding: 0 0.5rem 0 0.42rem;
    gap: 0.3rem;
    font-size: 0.68rem;
  }
  .ws-refine-dropdown-icon {
    width: 15px;
    height: 15px;
  }
  .ws-header-inner--app-sub .ws-nav--deck {
    justify-content: flex-end;
  }
}

/* Home: full-viewport projector (beam + dust) — navbar → footer */
.ws-projector-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  pointer-events: none;
  z-index: 0;
}
body.ws-home-body > main.container,
body.ws-home-body > footer.ws-footer {
  position: relative;
  z-index: 1;
}
/* At top: transparent so dust reads through; after scroll: solid bar so content doesn’t merge. */
body.ws-home-body .ws-header {
  background: transparent;
  border-bottom: none;
  transition: background-color 0.22s ease;
}
body.ws-home-body.ws-scrolled .ws-header {
  background: var(--ws-bg);
}
@media (prefers-reduced-transparency: reduce) {
  body.ws-home-body:not(.ws-scrolled) .ws-header {
    background: color-mix(in srgb, var(--ws-bg) 88%, transparent);
  }
}

/* Swipe: single-screen layout (no page scroll); reserve bottom for future ads via --ws-swipe-ad-reserve */
html:has(body.ws-swipe-page) {
  height: 100%;
}
html:has(body.ws-swipe-page) body.ws-swipe-page {
  height: 100%;
  max-height: 100%;
}
body.ws-swipe-page {
  /* Direct-sold banner (~52px); trim per creative */
  --ws-swipe-ad-reserve: 3.25rem;
  /* Room for header, card chrome, vote row, footer, sponsor strip, safe areas */
  --ws-swipe-hero-vmax: calc(
    100dvh - 12.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--ws-swipe-ad-reserve)
  );
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.ws-swipe-page > main.container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0.3rem;
  padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
  /* Allow sponsor strip to extend to viewport edges (body still overflow:hidden) */
  overflow: visible;
}
body.ws-swipe-page > footer.ws-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.15rem 0 0.3rem;
  padding-inline: clamp(0.875rem, 4vw, var(--pico-spacing, 1rem));
  text-align: left;
}
body.ws-swipe-page .ws-footer-tmdb {
  font-size: 0.56rem;
  line-height: 1.25;
  opacity: 0.9;
}
@media (max-width: 520px) {
  body.ws-swipe-page > footer.ws-footer {
    padding-inline: clamp(1rem, 5vw, 1.25rem);
  }
  body.ws-swipe-page .ws-footer-tmdb {
    font-size: 0.52rem;
  }
}
body.ws-swipe-page .ws-swipe-page-inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
body.ws-swipe-page #swipe-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.1rem;
}
body.ws-swipe-page .ws-swipe-stack {
  flex: 0 1 auto;
  min-height: 0;
  margin-bottom: 0.45rem;
}
body.ws-swipe-page .ws-swipe-framing {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}
body.ws-swipe-page .ws-swipe-actions-row {
  margin: 0 auto 0.15rem;
}
body.ws-swipe-page .ws-swipe-ad-placeholder {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: var(--ws-swipe-ad-reserve);
  height: var(--ws-swipe-ad-reserve);
  padding-inline: clamp(0.75rem, 3.5vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--pico-muted-color) 40%, var(--ws-border));
  background: color-mix(in srgb, var(--pico-muted-color) 14%, transparent);
}
body.ws-swipe-page .ws-swipe-ad-demo {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
  opacity: 0.8;
}
body.ws-swipe-page .ws-header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
@media (max-width: 520px) {
  body.ws-swipe-page .ws-toolbar {
    padding: 0.12rem 0;
  }
}
body.ws-swipe-page .ws-swipe-root-loading {
  margin: 0.5rem auto !important;
  text-align: center;
}

/* Hero — two lines: kicker + date, then tagline */
.ws-home-hero {
  position: relative;
  padding: 0.35rem 0 0.1rem;
  margin: 0 0 0.35rem;
}
.ws-home-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  width: min(100%, 42rem);
  height: 140%;
  background: radial-gradient(ellipse at 50% 0%, var(--ws-glow), transparent 62%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}
.ws-hero-row1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.3rem;
  font-size: inherit;
  line-height: 1.2;
  font-weight: 400;
}
.ws-hero-kicker {
  font-size: clamp(0.6rem, 0.48rem + 0.55vw, 0.72rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pico-muted-color);
}
.ws-hero-date {
  font-size: clamp(0.86rem, 0.72rem + 0.75vw, 1.1rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--pico-color);
}
.ws-hero-tagline {
  margin: 0 0 1.35rem;
  font-size: clamp(0.82rem, 0.74rem + 0.45vw, 0.96rem);
  line-height: 1.45;
  color: var(--pico-muted-color);
}
.ws-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pico-muted-color);
  margin: 0 0 0.35rem;
}
.ws-tagline {
  margin: 0 0 2rem;
  color: var(--pico-muted-color);
  font-size: 0.95rem;
}

/* Verdict grid: stack on narrow, two columns on md+ */
.ws-verdict-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .ws-verdict-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.ws-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ws-border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (prefers-reduced-motion: reduce) {
  .ws-card {
    transition: none;
  }
}
.ws-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .ws-card:hover {
    transform: none;
  }
}
.ws-card--watch {
  border-color: rgba(29, 158, 117, 0.35);
  background: var(--ws-watch-bg);
}
.ws-card--skip {
  border-color: rgba(226, 75, 74, 0.35);
  background: var(--ws-skip-bg);
}

/* Poster + copy: stacked on mobile; 50/50 row on desktop */
.ws-card-media {
  width: 100%;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 2 / 3;
  max-height: clamp(200px, 58vw, 300px);
}
.ws-poster--hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}
.ws-poster--placeholder {
  min-height: 100%;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.ws-card-main {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
@media (min-width: 768px) {
  .ws-card {
    flex-direction: row;
    align-items: stretch;
  }
  .ws-card-media {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    aspect-ratio: unset;
    max-height: none;
    min-height: 260px;
    align-self: stretch;
  }
  .ws-poster--hero {
    min-height: 100%;
  }
  .ws-card-main {
    flex: 1 1 50%;
    min-width: 0;
    padding: 1rem 1.2rem 1.15rem 1.25rem;
  }
}
.ws-card-main--only {
  padding: 1.25rem 1.3rem;
}
.ws-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.62rem;
  margin-bottom: 0.4rem;
}
.ws-card-main .ws-film-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.22rem);
}
.ws-card-main .ws-meta {
  margin: 0 0 0.6rem;
}
.ws-body--card {
  font-size: 0.8rem;
  line-height: 1.48;
  margin: 0 0 0.75rem;
}
.ws-ratings-block {
  margin: 0;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ws-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--pico-muted-color);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.ws-rating-chip {
  white-space: nowrap;
}
.ws-rating-chip abbr {
  text-decoration: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.92;
}
.ws-rating-chip strong {
  color: var(--pico-color);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ws-rating-sub {
  opacity: 0.88;
  font-weight: 400;
}
.ws-rating-chip--rt {
  color: var(--pico-color);
  font-weight: 500;
}
.ws-platforms--card {
  margin-top: 0.65rem;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.ws-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ws-pill--watch::before {
  background: var(--ws-watch);
}
.ws-pill--watch {
  color: var(--ws-watch);
  border: 1px solid rgba(29, 158, 117, 0.5);
  background: rgba(29, 158, 117, 0.12);
}
.ws-pill--skip::before {
  background: var(--ws-accent);
}
.ws-pill--skip {
  color: var(--ws-accent);
  border: 1px solid rgba(226, 75, 74, 0.45);
  background: rgba(226, 75, 74, 0.1);
}

.ws-film-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.2;
}
.ws-meta {
  font-size: 0.8rem;
  color: var(--pico-muted-color);
  margin: 0 0 0.75rem;
}

/* About — v2 panels, readable on swipe/vault-style pages */
.ws-about {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ws-about-hero {
  margin: 0 0 1.5rem;
  padding: 0 0 0.35rem;
  border: none;
  border-radius: 0;
  background: transparent;
}

.ws-about-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
}

.ws-about header h1,
.ws-about-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--ws-font-sans);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.ws-about-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--pico-muted-color);
}

.ws-about-panels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ws-about-panel {
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--ws-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--pico-background-color) 70%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .ws-about-panel {
  background: color-mix(in srgb, var(--pico-background-color) 88%, #fff);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ws-about-panel:hover {
  border-color: color-mix(in srgb, var(--ws-watch) 35%, var(--ws-border));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .ws-about-panel:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .ws-about-panel {
    transition: none;
  }
}

.ws-about-panel--tmdb {
  border-left: 3px solid color-mix(in srgb, var(--ws-accent) 55%, var(--ws-border));
}

.ws-about-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ws-about-panel-ico {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

[data-theme="light"] .ws-about-panel-ico {
  filter: none;
}

.ws-about-panel p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--pico-muted-color);
}

.ws-about-panel p strong {
  color: var(--pico-color);
  font-weight: 600;
}

.ws-about-panel a {
  color: var(--ws-watch);
  font-weight: 500;
}

.ws-not-found {
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.ws-not-found h1 {
  margin: 0 0 0.6rem;
  font-family: var(--ws-font-sans);
  font-size: 1.35rem;
  font-weight: 700;
}
.ws-not-found-links {
  margin-top: 1.25rem;
}
.ws-not-found-links a {
  font-weight: 400;
  text-decoration: none;
}
.ws-not-found-links a:hover {
  text-decoration: underline;
}

.ws-body {
  margin: 0;
  font-family: var(--ws-font-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
}

.ws-platforms {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ws-platforms span {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--ws-border);
  color: var(--pico-muted-color);
}

.ws-empty {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
  margin: 0;
}

/* Subscribe */
#subscribe {
  border-top: 1px solid var(--ws-border);
  padding-top: 2rem;
  margin-top: 1rem;
}
.ws-subscribe-box {
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}
.ws-subscribe-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  justify-content: space-between;
}
.ws-subscribe-inner form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ws-subscribe-inner input[type="email"] {
  min-width: 12rem;
}

/* Archive */
.ws-archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ws-archive-row {
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}
.ws-archive-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}
.ws-archive-date {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pico-muted-color);
  min-width: 6.5rem;
}
.ws-archive-title {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 600;
}
.ws-archive-teaser {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--pico-muted-color);
}
.ws-archive-sentinel {
  padding: 1rem 0 2rem;
  text-align: center;
  min-height: 3rem;
}

footer.ws-footer {
  margin-top: 2rem;
  padding: 1rem 0;
  padding-inline: clamp(0.875rem, 4vw, var(--pico-spacing, 1rem));
  font-size: 0.72rem;
  color: var(--pico-muted-color);
  text-align: left;
}
.ws-footer-tmdb {
  margin: 0;
}
.ws-footer-tmdb-link {
  text-decoration: none;
  opacity: 1;
}
.ws-footer-tmdb-link:hover {
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.055em);
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
@media (max-width: 520px) {
  footer.ws-footer {
    font-size: 0.58rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

/* Admin */
.ws-admin-hint {
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  max-width: 42rem;
}
.ws-admin-form label {
  margin-bottom: 0.85rem;
}
.ws-admin-form label small {
  font-weight: 400;
  color: var(--pico-muted-color);
}
.ws-flash {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.ws-flash--ok {
  background: rgba(29, 158, 117, 0.2);
  border: 1px solid rgba(29, 158, 117, 0.45);
}
.ws-flash--err {
  background: rgba(226, 75, 74, 0.15);
  border: 1px solid rgba(226, 75, 74, 0.4);
}
.ws-admin-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ws-border);
}
.ws-admin-section:last-child {
  border-bottom: none;
}
.ws-admin-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}
.ws-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ws-subscribers-scroll {
  max-height: min(45vh, 16rem);
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  padding: 0.15rem 0.35rem 0.35rem;
}
.ws-count {
  font-weight: 600;
  color: var(--pico-muted-color);
}
.ws-admin-details {
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
}
.ws-admin-details summary {
  cursor: pointer;
  font-weight: 600;
}
.ws-summary-muted {
  font-weight: 400;
  color: var(--pico-muted-color);
  font-size: 0.9em;
}
.ws-admin-details[open] summary {
  margin-bottom: 0.65rem;
}
.ws-admin-preview-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--ws-border);
}
.ws-admin-subh {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.ws-preview-scroll {
  max-height: min(50vh, 22rem);
  overflow: auto;
  margin-top: 1rem;
  border: 1px solid var(--ws-border);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.ws-preview-verdict {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pico-muted-color);
}
.ws-preview-film {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.ws-preview-poster {
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}
.ws-preview-title {
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.3;
}
.ws-preview-blurb {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--pico-muted-color);
}
.ws-admin-table td {
  overflow-wrap: anywhere;
}
.ws-preview-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.ws-htmx-hint.htmx-indicator.htmx-request {
  opacity: 1;
}
.ws-htmx-hint.htmx-indicator {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  opacity: 0;
  transition: opacity 0.15s ease;
}
table.ws-admin-table {
  width: 100%;
  font-size: 0.88rem;
}
.ws-admin-table th,
.ws-admin-table td {
  vertical-align: top;
}
code.ws-mono {
  font-size: 0.82em;
  word-break: break-all;
}

/* —— Swipe + Vault (v2) —— */
.ws-nav--main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
}
.ws-nav-mode {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
/* Swipe queue: lives in top toolbar — no extra row above the card */
.ws-queue-inline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: 11rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--pico-muted-color);
}
.ws-queue-inline-label {
  flex-shrink: 0;
  opacity: 0.88;
}
.ws-queue-left {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.ws-queue-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--ws-border);
  min-width: 1.75rem;
  overflow: hidden;
}
.ws-queue-track--inline {
  height: 2px;
  min-width: 2.5rem;
  max-width: 5.5rem;
}
.ws-queue-fill {
  height: 100%;
  width: 0%;
  background: color-mix(in srgb, var(--ws-watch) 70%, transparent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
@media (max-width: 380px) {
  .ws-queue-inline-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.ws-swipe-stack {
  perspective: 1200px;
  margin: 0 auto 1rem;
  width: 100%;
  max-width: min(100%, 42rem);
}
.ws-swipe-card {
  border-radius: 1rem;
  border: 1px solid var(--pico-card-border-color, var(--ws-border));
  overflow: hidden;
  background: var(--pico-card-background-color, var(--pico-background-color));
  color: var(--pico-color);
  box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--pico-color) 9%, transparent);
}
[data-theme="light"] .ws-swipe-card {
  box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--pico-color) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--pico-color) 4%, transparent);
}
.ws-swipe-card-inner {
  display: block;
}
.ws-swipe-stage {
  position: relative;
}
/* 16∶9 hero; on narrow screens the rail overlays the media; on desktop see split layout below. */
.ws-swipe-hero {
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  background: color-mix(in srgb, var(--pico-muted-color) 14%, transparent);
}
.ws-swipe-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(58vh, 30rem);
  overflow: hidden;
  background: color-mix(in srgb, var(--pico-muted-color) 18%, transparent);
}
body.ws-swipe-page .ws-swipe-hero-media {
  max-height: min(58vh, 30rem, var(--ws-swipe-hero-vmax));
}
.ws-swipe-hero-media .ws-swipe-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.ws-swipe-hero-img--fallback-poster {
  object-position: center 22%;
}
.ws-swipe-hero-media .ws-swipe-hero-ph {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--pico-muted-color) 22%, transparent);
}
.ws-swipe-hero-media .ws-swipe-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    transparent 18%,
    transparent 32%,
    rgba(0, 0, 0, 0.5) 62%,
    rgba(0, 0, 0, 0.82) 82%,
    rgba(0, 0, 0, 0.92) 100%
  );
}
[data-theme="light"] .ws-swipe-hero-media .ws-swipe-hero-scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 22%,
    transparent 36%,
    rgba(0, 0, 0, 0.42) 66%,
    rgba(0, 0, 0, 0.74) 86%,
    rgba(0, 0, 0, 0.88) 100%
  );
}
.ws-swipe-card-body {
  position: static;
  z-index: auto;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background: none;
  pointer-events: none;
}
.ws-swipe-rail-cta {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
/* Narrow: rail sits over hero; body flexes so title block stays bottom-aligned over the still. */
@media (max-width: 1023px) {
  /* Fill the main column height so the hero uses remaining viewport (no page scroll). */
  body.ws-swipe-page {
    --ws-swipe-hero-vmax: calc(
      100dvh - 8.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--ws-swipe-ad-reserve)
    );
  }
  body.ws-swipe-page > main.container {
    padding-top: 0.15rem;
    padding-bottom: calc(0.15rem + env(safe-area-inset-bottom, 0px));
  }
  body.ws-swipe-page #swipe-root {
    padding-top: 0;
  }
  body.ws-swipe-page .ws-swipe-stack {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0.12rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: stretch;
  }
  body.ws-swipe-page #swipe-root > .ws-swipe-empty {
    flex: 1 1 auto;
    min-height: 0;
    align-self: center;
    width: 100%;
    max-width: 26rem;
    margin-bottom: 0.35rem;
  }
  .ws-swipe-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .ws-swipe-card-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .ws-swipe-stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
  }
  .ws-swipe-hero {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  /* Absolute-positioned img needs a non-zero box; flex+min-height:0 collapsed the media on phones. */
  .ws-swipe-hero-media {
    flex: 1 1 auto;
    min-height: min(58dvh, var(--ws-swipe-hero-vmax));
    aspect-ratio: unset;
    max-height: none;
    width: 100%;
  }
  body.ws-swipe-page .ws-swipe-hero-media {
    max-height: none;
  }
  .ws-swipe-rail {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0.55rem;
    box-sizing: border-box;
    /* none breaks tap targets on WebKit/Android for descendants; overlay is the sole hit layer here */
    pointer-events: auto;
    gap: 0.22rem;
  }
  .ws-swipe-rail .ws-swipe-card-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  .ws-swipe-rail .ws-swipe-picked-lane {
    margin: 0 0 0.3rem;
  }
  .ws-swipe-rail .ws-swipe-genres {
    gap: 0.22rem;
    margin-bottom: 0.05rem;
  }
  .ws-swipe-rail .ws-swipe-lower {
    gap: 0.35rem 0.55rem;
    margin-top: auto;
  }
  .ws-swipe-rail .ws-swipe-title {
    font-size: clamp(1rem, 4.2vw, 1.28rem);
    margin: 0 0 0.28rem;
    line-height: 1.15;
  }
  .ws-swipe-rail .ws-swipe-tagline {
    margin: 0 0 0.28rem;
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    line-height: 1.32;
  }
  .ws-swipe-rail .ws-swipe-meta {
    margin: 0 0 0.25rem;
    font-size: 0.74rem;
  }
  .ws-swipe-rail .ws-swipe-crowd {
    margin: 0 0 0.2rem;
    font-size: 0.65rem;
  }
  .ws-swipe-rail .ws-swipe-rail-cta {
    gap: 0.28rem;
    flex-shrink: 0;
  }
  .ws-swipe-rail .ws-swipe-rail-cta .ws-swipe-trailer {
    margin: 0 0 0.08rem;
    width: 100%;
  }
  .ws-swipe-rail .ws-swipe-rail-cta .ws-swipe-trailer-link {
    padding: 0.26rem 0.5rem 0.28rem;
    font-size: 0.62rem;
  }
  .ws-swipe-rail .ws-swipe-framing {
    margin: 0;
    padding: 0 0.2rem;
    max-width: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    font-size: 0.76rem;
    line-height: 1.3;
  }
  .ws-swipe-rail .ws-swipe-actions-row {
    margin: 0;
    max-width: none;
    width: 100%;
    gap: 0.38rem;
  }
  .ws-swipe-rail .ws-swipe-action {
    padding: 0.5rem 0.65rem;
    font-size: clamp(0.74rem, 3.4vw, 0.86rem);
  }
}
/* Picked lane: one chip — dim “Picked”, bold genre; glass + shadow for any still */
.ws-swipe-card-body .ws-swipe-picked-lane {
  margin: 0 0 0.55rem;
  max-width: 100%;
  line-height: 1.2;
}
.ws-swipe-card-body .ws-swipe-picked-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem 0.24rem;
  border-radius: 9999px;
  border: 1px dashed color-mix(in srgb, var(--ws-accent) 72%, rgba(255, 255, 255, 0.35));
  background: color-mix(in srgb, rgba(10, 10, 16, 0.68) 88%, transparent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ws-swipe-card-body .ws-swipe-picked-chip__prefix {
  font-family: var(--ws-font-sans);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.ws-swipe-card-body .ws-swipe-picked-chip__genre {
  font-family: var(--ws-font-sans);
  font-size: clamp(0.62rem, 2vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ws-accent) 92%, #fff 8%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
[data-theme="light"] .ws-swipe-card-body .ws-swipe-picked-chip {
  background: color-mix(in srgb, rgba(10, 10, 16, 0.58) 90%, transparent);
  border-color: color-mix(in srgb, var(--ws-accent) 58%, rgba(255, 255, 255, 0.4));
}
.ws-swipe-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  align-self: flex-start;
  max-width: 100%;
}
.ws-genre-pill {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  color: var(--pico-muted-color);
}
/* Swipe badges: muted tints (cycle by position — classy, not rainbow) */
.ws-swipe-card-body .ws-genre-pill {
  font-weight: 500;
  border-color: color-mix(in srgb, #94a3b8 50%, rgba(255, 255, 255, 0.28));
  color: rgba(248, 250, 252, 0.94);
  background: color-mix(in srgb, rgba(15, 23, 42, 0.5), rgba(0, 0, 0, 0.2));
}
.ws-swipe-card-body .ws-genre-pill:nth-child(5n + 1) {
  border-color: color-mix(in srgb, #f59e0b 42%, rgba(255, 255, 255, 0.22));
  background: color-mix(in srgb, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.28));
  color: rgba(255, 247, 230, 0.95);
}
.ws-swipe-card-body .ws-genre-pill:nth-child(5n + 2) {
  border-color: color-mix(in srgb, #38bdf8 45%, rgba(255, 255, 255, 0.22));
  background: color-mix(in srgb, rgba(56, 189, 248, 0.14), rgba(0, 0, 0, 0.28));
  color: rgba(236, 254, 255, 0.94);
}
.ws-swipe-card-body .ws-genre-pill:nth-child(5n + 3) {
  border-color: color-mix(in srgb, #f472b6 40%, rgba(255, 255, 255, 0.22));
  background: color-mix(in srgb, rgba(244, 114, 182, 0.12), rgba(0, 0, 0, 0.28));
  color: rgba(253, 242, 248, 0.94);
}
.ws-swipe-card-body .ws-genre-pill:nth-child(5n + 4) {
  border-color: color-mix(in srgb, #a78bfa 42%, rgba(255, 255, 255, 0.22));
  background: color-mix(in srgb, rgba(167, 139, 250, 0.14), rgba(0, 0, 0, 0.28));
  color: rgba(245, 243, 255, 0.94);
}
.ws-swipe-card-body .ws-genre-pill:nth-child(5n) {
  border-color: color-mix(in srgb, #34d399 40%, rgba(255, 255, 255, 0.22));
  background: color-mix(in srgb, rgba(52, 211, 153, 0.12), rgba(0, 0, 0, 0.28));
  color: rgba(236, 253, 245, 0.94);
}
.ws-swipe-lower {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  width: 100%;
  min-width: 0;
  margin-top: auto;
}
.ws-swipe-copy {
  flex: 1;
  min-width: 0;
}
.ws-swipe-copy > :last-child {
  margin-bottom: 0;
}
.ws-swipe-ratings-aside {
  flex-shrink: 0;
  max-width: min(11.5rem, 40%);
}
.ws-swipe-title {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.55rem;
  line-height: 1.18;
  color: var(--pico-color);
}
.ws-swipe-card-body .ws-swipe-title {
  color: color-mix(in srgb, #fff 88%, #fde68a 12%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 18px rgba(0, 0, 0, 0.28);
}
.ws-swipe-tagline {
  margin: 0 0 0.5rem;
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
  color: rgba(233, 213, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ws-swipe-meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--pico-muted-color);
}
.ws-swipe-card-body .ws-swipe-meta {
  color: rgba(207, 226, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ws-swipe-crowd {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: rgba(254, 243, 199, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ws-swipe-trailer {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.75rem;
}
.ws-swipe-trailer-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem 0.34rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ws-swipe-trailer-pill-fg);
  background: var(--ws-swipe-trailer-pill-bg);
  border: 1px solid var(--ws-swipe-trailer-pill-border);
  box-shadow: var(--ws-swipe-trailer-pill-shadow);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}
.ws-swipe-trailer-link:hover {
  color: var(--ws-swipe-trailer-pill-hover-fg, var(--ws-swipe-trailer-pill-fg));
  background: var(--ws-swipe-trailer-pill-hover-bg);
  border-color: var(--ws-swipe-trailer-pill-hover-border);
  box-shadow: var(--ws-swipe-trailer-pill-hover-shadow);
  transform: translateY(-1px);
}
.ws-swipe-trailer-link:hover .ws-swipe-trailer-ext {
  color: var(--ws-swipe-trailer-pill-fg-soft);
}
.ws-swipe-trailer-play {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.32em 0 0.32em 0.52em;
  border-color: transparent transparent transparent currentColor;
  flex-shrink: 0;
  translate: 0 0.04em;
}
.ws-swipe-trailer-amp {
  font-weight: 700;
}
.ws-swipe-trailer-ext {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.62rem;
  color: var(--ws-swipe-trailer-pill-fg-soft);
  margin-left: 0.1rem;
}
.ws-ratings-block--swipe {
  margin-top: 0;
}
.ws-swipe-card-body .ws-ratings-block--swipe {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  gap: 0.28rem;
  color: rgba(255, 255, 255, 0.74);
}
.ws-swipe-ratings-aside .ws-ratings-block--swipe {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
}
.ws-swipe-card-body .ws-rating-chip strong {
  color: rgba(255, 253, 245, 0.94);
}
@media (min-width: 1024px) and (min-height: 520px) {
  /* Card shell lets projector dust show through — subtle outline only */
  .ws-swipe-stack {
    max-width: min(100%, 60rem);
  }
  .ws-swipe-card {
    background: transparent;
    box-shadow: none;
    border: 1px solid color-mix(in srgb, var(--pico-muted-color) 45%, transparent);
  }
  [data-theme="light"] .ws-swipe-card {
    box-shadow: none;
    border-color: color-mix(in srgb, var(--pico-color) 14%, transparent);
  }
  .ws-swipe-stage {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .ws-swipe-hero {
    flex: 3 1 0;
    min-width: min(58%, calc(100% - 16.5rem));
    display: flex;
    flex-direction: column;
    border-radius: 1rem 0.875rem 0.875rem 1rem;
    overflow: hidden;
    background: var(--pico-background-color);
  }
  .ws-swipe-hero-media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    width: 100%;
    min-height: min(28rem, var(--ws-swipe-hero-vmax));
    max-height: none;
    background: transparent;
    border-radius: 0;
  }
  .ws-swipe-hero-media .ws-swipe-hero-scrim {
    border-radius: 0;
  }
  body.ws-swipe-page .ws-swipe-hero-media {
    max-height: var(--ws-swipe-hero-vmax);
    min-height: min(28rem, var(--ws-swipe-hero-vmax));
  }
  .ws-swipe-hero-media .ws-swipe-hero-img--fallback-poster {
    object-fit: contain;
    object-position: center center;
  }
  .ws-swipe-rail {
    position: static;
    flex: 0 0 16.75rem;
    width: 16.75rem;
    max-width: 34%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem 0.45rem 0.65rem;
    pointer-events: auto;
    box-sizing: border-box;
  }
  .ws-swipe-rail .ws-swipe-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    color: var(--pico-color);
    pointer-events: auto;
  }
  .ws-swipe-rail-cta {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--pico-muted-color) 22%, transparent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .ws-swipe-rail .ws-swipe-title {
    margin-bottom: 0.35rem;
    color: var(--pico-color);
    text-shadow: none;
  }
  .ws-swipe-rail .ws-swipe-tagline {
    margin-bottom: 0.35rem;
    color: var(--pico-muted-color);
    text-shadow: none;
  }
  .ws-swipe-rail .ws-swipe-meta {
    margin-bottom: 0.3rem;
    color: var(--pico-muted-color);
    text-shadow: none;
  }
  .ws-swipe-rail .ws-swipe-crowd {
    margin-bottom: 0.25rem;
    color: color-mix(in srgb, var(--pico-muted-color) 82%, var(--ws-accent) 18%);
    text-shadow: none;
  }
  .ws-swipe-rail-cta .ws-swipe-trailer {
    margin: 0 0 0.15rem;
    width: 100%;
  }
  .ws-swipe-rail-cta .ws-swipe-trailer-link {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.38rem 0.55rem;
    border-radius: 0.55rem;
    color: var(--ws-swipe-trailer-pill-fg);
    background: var(--ws-swipe-trailer-pill-bg);
    border: 1px solid var(--ws-swipe-trailer-pill-border);
    box-shadow: var(--ws-swipe-trailer-pill-shadow);
  }
  .ws-swipe-rail-cta .ws-swipe-trailer-link:hover {
    color: var(--ws-swipe-trailer-pill-hover-fg, var(--ws-swipe-trailer-pill-fg));
    background: var(--ws-swipe-trailer-pill-hover-bg);
    border-color: var(--ws-swipe-trailer-pill-hover-border);
    box-shadow: var(--ws-swipe-trailer-pill-hover-shadow);
    transform: translateY(-1px);
    filter: none;
  }
  .ws-swipe-rail .ws-swipe-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem 0.65rem;
    width: 100%;
  }
  .ws-swipe-rail .ws-swipe-ratings-aside {
    max-width: 100%;
    align-self: flex-start;
  }
  .ws-swipe-rail .ws-swipe-ratings-aside .ws-ratings-block--swipe {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    color: var(--pico-muted-color);
  }
  .ws-swipe-rail .ws-rating-chip strong {
    color: var(--pico-color);
  }
  .ws-swipe-rail .ws-genre-pill,
  .ws-swipe-rail .ws-genre-pill:nth-child(5n + 1),
  .ws-swipe-rail .ws-genre-pill:nth-child(5n + 2),
  .ws-swipe-rail .ws-genre-pill:nth-child(5n + 3),
  .ws-swipe-rail .ws-genre-pill:nth-child(5n + 4),
  .ws-swipe-rail .ws-genre-pill:nth-child(5n) {
    border-color: var(--ws-border);
    color: var(--pico-muted-color);
    background: color-mix(in srgb, var(--pico-muted-color) 7%, transparent);
  }
  .ws-swipe-rail .ws-swipe-picked-chip {
    background: color-mix(in srgb, var(--pico-muted-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--ws-accent) 48%, var(--ws-border));
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  [data-theme="light"] .ws-swipe-rail .ws-swipe-picked-chip {
    background: color-mix(in srgb, var(--pico-muted-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--ws-accent) 48%, var(--ws-border));
  }
  .ws-swipe-rail .ws-swipe-picked-chip__prefix {
    color: var(--pico-muted-color);
    text-shadow: none;
  }
  .ws-swipe-rail .ws-swipe-picked-chip__genre {
    color: var(--ws-accent);
    text-shadow: none;
  }
  body.ws-swipe-page .ws-swipe-rail .ws-swipe-rail-cta .ws-swipe-framing {
    margin: 0;
    padding: 0;
    max-width: none;
    text-align: left;
    color: var(--pico-muted-color);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  body.ws-swipe-page .ws-swipe-rail .ws-swipe-rail-cta .ws-swipe-actions-row {
    flex-direction: column;
    max-width: none;
    width: 100%;
    margin: 0 0 0.2rem;
    gap: 0.5rem;
  }
}

.ws-swipe-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 0 auto 1.5rem;
}
@media (min-width: 1024px) and (min-height: 520px) {
  .ws-swipe-actions-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
  }
}
.ws-swipe-actf {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.ws-swipe-action {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.75rem;
  font-size: clamp(0.78rem, 2.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.ws-swipe-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .ws-swipe-action:hover {
    transform: none;
  }
}
.ws-swipe-action--skip {
  border: 2px solid var(--ws-accent);
  color: var(--ws-accent);
  background: var(--ws-skip-bg);
}
.ws-swipe-action--watch {
  border: 2px solid var(--ws-watch);
  color: var(--ws-watch);
  background: var(--ws-watch-bg);
}

/* Vote burst only (no resting button styles); swipe-vote-fx.js */
.ws-vote-burst-layer {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2147483646;
  contain: layout style;
}
.ws-vote-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 1;
  left: 0;
  top: 0;
  margin: -4px 0 0 -4px;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent);
  animation: ws-vote-particle 0.92s cubic-bezier(0.22, 0.88, 0.32, 1) forwards;
}
@keyframes ws-vote-particle {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--ws-burst-dx), var(--ws-burst-dy), 0) scale(0.12);
    opacity: 0;
  }
}
@keyframes ws-vote-flash {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}
.ws-vote-flash {
  animation: ws-vote-flash 0.22s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ws-vote-particle {
    animation: none;
    opacity: 0;
  }
}

.ws-swipe-hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--pico-comment-color, var(--pico-muted-color));
  opacity: 0.75;
  align-self: center;
}
.ws-vault-cta {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.ws-vault-cta a {
  color: var(--pico-color);
  font-weight: 500;
}

.ws-vote-result {
  max-width: 24rem;
  margin: 0 auto 1.5rem;
  padding: 1rem;
  border: 1px solid var(--pico-card-border-color, var(--ws-border));
  border-radius: 14px;
  background: color-mix(
    in srgb,
    var(--pico-muted-color) 10%,
    var(--pico-card-background-color, var(--pico-background-color))
  );
}
.ws-vote-result-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pico-muted-color);
  margin: 0 0 0.75rem;
}
.ws-result-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ws-result-bar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ws-result-label {
  font-size: 0.78rem;
  font-weight: 600;
}
.ws-result-label--watch {
  color: var(--ws-watch);
}
.ws-result-label--skip {
  color: var(--ws-accent);
}
.ws-result-track {
  height: 8px;
  border-radius: 4px;
  background: var(--ws-border);
  overflow: hidden;
}
.ws-result-fill {
  height: 100%;
  border-radius: 4px;
}
.ws-result-fill--watch {
  background: var(--ws-watch);
}
.ws-result-fill--skip {
  background: var(--ws-accent);
}
.ws-vote-count {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--pico-muted-color);
}
.ws-next-movie-btn {
  width: 100%;
  margin-top: 1rem;
  border-radius: 999px !important;
}

.ws-vault-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}
.ws-vault-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw + 0.8rem, 2rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.ws-vault-stat {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pico-muted-color);
}
.ws-vault-stat-n {
  color: #a78bfa;
  font-weight: 600;
}
.ws-vault-filters {
  margin-bottom: 1.25rem;
}
.ws-vault-filter-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pico-muted-color);
  margin: 0.65rem 0 0.35rem;
}
.ws-vault-filter-label:first-child {
  margin-top: 0;
}
.ws-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ws-filter-pill {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: lowercase;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  color: var(--pico-muted-color);
  text-decoration: none;
}
.ws-filter-pill:hover {
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--pico-color);
}
.ws-filter-pill--active {
  border-color: rgba(167, 139, 250, 0.75);
  color: #c4b5fd;
}
[data-theme="light"] .ws-filter-pill--active {
  color: #6d28d9;
}

.ws-vault-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.ws-vault-card {
  display: grid;
  grid-template-columns: auto 52px 1fr auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ws-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 640px) {
  .ws-vault-card {
    grid-template-columns: 40px 48px 1fr;
    grid-template-rows: auto auto;
  }
  .ws-vault-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.ws-vault-card--top {
  border-color: color-mix(in srgb, var(--ws-watch) 35%, var(--ws-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ws-watch) 25%, transparent);
}
.ws-vault-card--skip-lean {
  border-color: color-mix(in srgb, var(--ws-accent) 35%, var(--ws-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ws-accent) 22%, transparent);
}
.ws-vault-rank {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pico-muted-color);
}
.ws-vault-card--top .ws-vault-rank {
  color: #d4a84b;
}
.ws-vault-thumb {
  width: 46px;
  height: 69px;
  object-fit: cover;
  border-radius: 6px;
}
.ws-vault-thumb--ph {
  width: 46px;
  height: 69px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.ws-vault-body {
  min-width: 0;
}
.ws-vault-film-title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}
.ws-vault-meta {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: var(--pico-muted-color);
  line-height: 1.35;
}
.ws-vault-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.ws-vault-bar {
  display: flex;
  flex: 1 1 8rem;
  min-width: 5rem;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ws-border);
}
.ws-vault-bar-seg--watch {
  height: 100%;
  background: var(--ws-watch);
}
.ws-vault-bar-seg--skip {
  height: 100%;
  background: var(--ws-accent);
}
.ws-vault-pcts {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ws-vault-pct-watch {
  color: var(--ws-watch);
}
.ws-vault-pct-skip {
  color: var(--ws-accent);
}
.ws-vault-votes {
  font-size: 0.7rem;
  color: var(--pico-muted-color);
}
.ws-vault-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-self: start;
}
.ws-you-rated {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: lowercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  color: #c4b5fd;
}

.ws-swipe-framing {
  margin: 0 auto 0.65rem;
  padding: 0 0.25rem;
  max-width: min(100%, 42rem);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--pico-muted-color);
}

.ws-pass-form {
  margin: 0 0 1.5rem;
  text-align: center;
}
.ws-pass-btn {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  display: block;
  font-size: 0.82rem !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px !important;
  opacity: 0.92;
}

.ws-swipe-empty {
  text-align: center;
  padding: 2rem 1rem 2.25rem;
  border: 1px solid var(--pico-card-border-color, var(--ws-border));
  border-radius: 16px;
  margin: 0 auto 1.5rem;
  max-width: 26rem;
  background: var(--pico-card-background-color, var(--pico-background-color));
  color: var(--pico-color);
  box-shadow: 0 0.75rem 2rem color-mix(in srgb, var(--pico-color) 6%, transparent);
}
.ws-swipe-empty--nomovies {
  border-style: dashed;
}
.ws-empty-visual {
  margin: 0 auto 1.25rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-empty-stack {
  position: relative;
  width: 8.5rem;
  height: 5rem;
}
.ws-empty-card {
  position: absolute;
  border-radius: 10px;
  border: 1px solid var(--ws-border);
  background: rgba(255, 255, 255, 0.03);
}
.ws-empty-card--back {
  width: 76%;
  height: 88%;
  left: 12%;
  top: 8%;
  transform: rotate(-6deg);
  opacity: 0.45;
}
.ws-empty-card--mid {
  width: 80%;
  height: 92%;
  left: 10%;
  top: 4%;
  transform: rotate(-2deg);
  opacity: 0.65;
}
.ws-empty-card--front {
  width: 84%;
  height: 100%;
  left: 8%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(100, 90, 160, 0.2), rgba(25, 25, 35, 0.95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.ws-empty-clapper {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
}
.ws-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ws-empty-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--pico-muted-color);
  text-align: left;
}
.ws-empty-dev {
  font-size: 0.8rem;
  margin: 0 0 1rem;
  text-align: left;
}
.ws-empty-dev code {
  font-size: 0.78em;
  word-break: break-all;
}
.ws-empty-dev-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--pico-muted-color);
}
.ws-empty-links {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}
.ws-empty-links + .ws-empty-links {
  margin-top: 0.85rem;
  font-size: 0.8rem;
}
.ws-empty-muted {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.88;
}

/* Landing — genre “arcade” picker (GET /) */
body.ws-landing-page .ws-projector-canvas {
  opacity: 0.78;
}
@media (prefers-reduced-transparency: reduce) {
  body.ws-landing-page .ws-projector-canvas {
    opacity: 0.55;
  }
}
.ws-landing-body main.container {
  max-width: min(100%, 28rem);
}
@media (min-width: 640px) {
  .ws-landing-body main.container {
    max-width: min(100%, 42rem);
  }
}
@media (min-width: 960px) {
  .ws-landing-body main.container {
    max-width: min(100%, 54rem);
  }
}
.ws-landing {
  padding: 1rem 0 2.75rem;
  text-align: center;
}
.ws-landing-headline {
  font-family: var(--ws-font-sans);
  font-size: clamp(1.35rem, 5.4vw, 1.88rem);
  font-weight: 700;
  line-height: 1.14;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: var(--pico-color);
}
@media (min-width: 640px) {
  .ws-landing-headline {
    font-size: clamp(1.55rem, 2.4vw + 0.85rem, 2.05rem);
    line-height: 1.1;
  }
}
.ws-landing-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--pico-muted-color);
  line-height: 1.45;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .ws-landing-lead {
    max-width: min(100%, 36rem);
    font-size: 0.95rem;
  }
}
.ws-landing-genre-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 420px) {
  .ws-landing-genre-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 640px) {
  .ws-landing-genre-grid {
    gap: 0.85rem;
  }
}
@media (min-width: 960px) {
  .ws-landing-genre-grid {
    gap: 1.05rem;
  }
}
.ws-landing-genre-item {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-landing-genre-item::marker {
  content: none;
}
@keyframes ws-landing-tile-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.ws-landing-genre-item:nth-child(1) .ws-landing-genre-tile {
  animation-delay: 0s;
}
.ws-landing-genre-item:nth-child(2) .ws-landing-genre-tile {
  animation-delay: -1.1s;
}
.ws-landing-genre-item:nth-child(3) .ws-landing-genre-tile {
  animation-delay: -2.2s;
}
.ws-landing-genre-item:nth-child(4) .ws-landing-genre-tile {
  animation-delay: -3.3s;
}
.ws-landing-genre-item:nth-child(5) .ws-landing-genre-tile {
  animation-delay: -0.6s;
}
.ws-landing-genre-item:nth-child(6) .ws-landing-genre-tile {
  animation-delay: -1.8s;
}
.ws-landing-genre-item:nth-child(7) .ws-landing-genre-tile {
  animation-delay: -2.9s;
}
.ws-landing-genre-item:nth-child(8) .ws-landing-genre-tile {
  animation-delay: -4s;
}
.ws-landing-genre-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 5.4rem;
  padding: 0.55rem 0.4rem;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid var(--tile-edge, var(--ws-border));
  background: var(--tile-bg);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--tile-shadow, #000) 22%, transparent);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: ws-landing-tile-idle 7.5s ease-in-out infinite;
  transition: transform 0.2s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.2s ease, filter 0.2s ease;
}
.ws-landing-genre-tile:hover {
  animation: none;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--tile-shadow, #000) 32%, transparent);
  filter: brightness(1.06);
}
.ws-landing-genre-tile:focus-visible {
  outline: 2px solid var(--ws-accent, #c43d3c);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ws-landing-genre-tile {
    animation: none;
    transition: none;
  }
  .ws-landing-genre-tile:hover {
    transform: none;
  }
}
.ws-landing-genre-emoji {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.ws-landing-genre-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tile-text, var(--pico-color));
  line-height: 1.2;
  text-align: center;
}
.ws-landing-genre-cta {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--tile-muted, var(--pico-muted-color));
}
.ws-landing-genre-arrow {
  display: inline-block;
  vertical-align: -0.12em;
  width: 0.62em;
  height: 0.62em;
  flex-shrink: 0;
  margin-inline-start: 0.12em;
  transition: transform 0.2s ease;
}
.ws-landing-genre-tile:hover .ws-landing-genre-arrow {
  transform: translateX(3px);
}
@media (min-width: 640px) {
  .ws-landing-genre-tile {
    min-height: 6.35rem;
    padding: 0.68rem 0.5rem;
    border-radius: 19px;
  }
  .ws-landing-genre-emoji {
    font-size: 1.62rem;
  }
  .ws-landing-genre-name {
    font-size: 0.72rem;
  }
  .ws-landing-genre-cta {
    font-size: 0.62rem;
  }
}
@media (min-width: 960px) {
  .ws-landing-genre-tile {
    min-height: 7.25rem;
    padding: 0.8rem 0.55rem;
    border-radius: 20px;
  }
  .ws-landing-genre-emoji {
    font-size: 1.78rem;
  }
  .ws-landing-genre-name {
    font-size: 0.78rem;
  }
  .ws-landing-genre-cta {
    font-size: 0.64rem;
  }
}
/* Per-lane accents (dark-first; light tweaks below) */
.ws-landing-genre-tile--action {
  --tile-bg: linear-gradient(155deg, rgba(220, 38, 38, 0.35), rgba(24, 18, 22, 0.94));
  --tile-edge: rgba(252, 165, 165, 0.4);
  --tile-shadow: #450a0a;
  --tile-text: #fff5f5;
  --tile-muted: rgba(254, 226, 226, 0.75);
}
.ws-landing-genre-tile--comedy {
  --tile-bg: linear-gradient(155deg, rgba(234, 179, 8, 0.38), rgba(28, 24, 14, 0.94));
  --tile-edge: rgba(253, 224, 71, 0.45);
  --tile-shadow: #422006;
  --tile-text: #fffbeb;
  --tile-muted: rgba(254, 243, 199, 0.75);
}
.ws-landing-genre-tile--drama {
  --tile-bg: linear-gradient(155deg, rgba(139, 92, 246, 0.35), rgba(22, 18, 32, 0.94));
  --tile-edge: rgba(196, 181, 253, 0.4);
  --tile-shadow: #2e1065;
  --tile-text: #f5f3ff;
  --tile-muted: rgba(221, 214, 254, 0.78);
}
.ws-landing-genre-tile--horror {
  --tile-bg: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(67, 20, 28, 0.9));
  --tile-edge: rgba(248, 113, 113, 0.35);
  --tile-shadow: #1c1917;
  --tile-text: #ffe4e6;
  --tile-muted: rgba(251, 207, 214, 0.72);
}
.ws-landing-genre-tile--thriller {
  --tile-bg: linear-gradient(155deg, rgba(6, 182, 212, 0.28), rgba(14, 22, 32, 0.95));
  --tile-edge: rgba(103, 232, 249, 0.38);
  --tile-shadow: #164e63;
  --tile-text: #ecfeff;
  --tile-muted: rgba(207, 250, 254, 0.75);
}
.ws-landing-genre-tile--romance {
  --tile-bg: linear-gradient(155deg, rgba(236, 72, 153, 0.35), rgba(30, 18, 28, 0.94));
  --tile-edge: rgba(251, 182, 206, 0.45);
  --tile-shadow: #831843;
  --tile-text: #fdf2f8;
  --tile-muted: rgba(252, 231, 243, 0.78);
}
.ws-landing-genre-tile--sci-fi {
  --tile-bg: linear-gradient(155deg, rgba(59, 130, 246, 0.4), rgba(16, 20, 36, 0.94));
  --tile-edge: rgba(147, 197, 253, 0.45);
  --tile-shadow: #1e3a8a;
  --tile-text: #eff6ff;
  --tile-muted: rgba(191, 219, 254, 0.78);
}
.ws-landing-genre-tile--animation {
  --tile-bg: linear-gradient(155deg, rgba(52, 211, 153, 0.32), rgba(20, 28, 26, 0.94));
  --tile-edge: rgba(110, 231, 183, 0.42);
  --tile-shadow: #14532d;
  --tile-text: #ecfdf5;
  --tile-muted: rgba(167, 243, 208, 0.78);
}
[data-theme="light"] .ws-landing-genre-tile--action {
  --tile-bg: linear-gradient(155deg, rgba(254, 226, 226, 0.95), rgba(252, 165, 165, 0.55));
  --tile-edge: rgba(185, 28, 28, 0.25);
  --tile-shadow: rgba(127, 29, 29, 0.25);
  --tile-text: #450a0a;
  --tile-muted: rgba(69, 10, 10, 0.65);
}
[data-theme="light"] .ws-landing-genre-tile--comedy {
  --tile-bg: linear-gradient(155deg, rgba(254, 249, 195, 0.98), rgba(253, 224, 71, 0.5));
  --tile-edge: rgba(161, 98, 7, 0.28);
  --tile-shadow: rgba(113, 63, 18, 0.2);
  --tile-text: #422006;
  --tile-muted: rgba(66, 32, 6, 0.65);
}
[data-theme="light"] .ws-landing-genre-tile--drama {
  --tile-bg: linear-gradient(155deg, rgba(237, 233, 254, 0.98), rgba(196, 181, 253, 0.5));
  --tile-edge: rgba(91, 33, 182, 0.22);
  --tile-shadow: rgba(76, 29, 149, 0.18);
  --tile-text: #2e1065;
  --tile-muted: rgba(46, 16, 101, 0.62);
}
[data-theme="light"] .ws-landing-genre-tile--horror {
  --tile-bg: linear-gradient(155deg, rgba(244, 244, 245, 0.98), rgba(228, 228, 231, 0.85));
  --tile-edge: rgba(127, 29, 29, 0.35);
  --tile-shadow: rgba(24, 24, 27, 0.12);
  --tile-text: #3f3f46;
  --tile-muted: rgba(63, 63, 70, 0.65);
}
[data-theme="light"] .ws-landing-genre-tile--thriller {
  --tile-bg: linear-gradient(155deg, rgba(207, 250, 254, 0.95), rgba(103, 232, 249, 0.4));
  --tile-edge: rgba(14, 116, 144, 0.3);
  --tile-shadow: rgba(22, 78, 99, 0.18);
  --tile-text: #164e63;
  --tile-muted: rgba(22, 78, 99, 0.65);
}
[data-theme="light"] .ws-landing-genre-tile--romance {
  --tile-bg: linear-gradient(155deg, rgba(252, 231, 243, 0.98), rgba(251, 182, 206, 0.5));
  --tile-edge: rgba(157, 23, 77, 0.22);
  --tile-shadow: rgba(131, 24, 67, 0.16);
  --tile-text: #831843;
  --tile-muted: rgba(131, 24, 67, 0.62);
}
[data-theme="light"] .ws-landing-genre-tile--sci-fi {
  --tile-bg: linear-gradient(155deg, rgba(219, 234, 254, 0.98), rgba(147, 197, 253, 0.55));
  --tile-edge: rgba(29, 78, 216, 0.25);
  --tile-shadow: rgba(30, 64, 175, 0.18);
  --tile-text: #1e3a8a;
  --tile-muted: rgba(30, 58, 138, 0.62);
}
[data-theme="light"] .ws-landing-genre-tile--animation {
  --tile-bg: linear-gradient(155deg, rgba(209, 250, 229, 0.98), rgba(110, 231, 183, 0.45));
  --tile-edge: rgba(4, 120, 87, 0.26);
  --tile-shadow: rgba(20, 83, 45, 0.16);
  --tile-text: #14532d;
  --tile-muted: rgba(20, 83, 45, 0.62);
}
.ws-landing-foot {
  margin: 0;
  font-size: 0.72rem;
  color: var(--pico-muted-color);
  opacity: 0.92;
}
.ws-landing-foot a {
  color: var(--pico-color);
  font-weight: 500;
}
/* My picks — local list hydrated from ws_my_picks_v1 + /my-picks/data */
.ws-mypicks {
  padding: 0.75rem 0 2rem;
  max-width: min(100%, 40rem);
  margin: 0 auto;
}
.ws-mypicks-hero {
  margin-bottom: 1.25rem;
  text-align: center;
}
.ws-mypicks-hero h1 {
  font-family: var(--ws-font-sans);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}
.ws-mypicks-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pico-muted-color);
  line-height: 1.45;
  max-width: 36rem;
  margin-inline: auto;
}
.ws-mypicks-root {
  min-height: 4rem;
}
.ws-mypicks-loading,
.ws-mypicks-empty {
  text-align: center;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
  line-height: 1.5;
}
.ws-mypicks-empty a {
  color: var(--pico-color);
  font-weight: 500;
}
.ws-mypicks-tools {
  margin-top: 1.5rem;
  text-align: center;
}
.ws-mypicks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ws-mypicks-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  border: 1px solid var(--ws-border);
  background: color-mix(in srgb, var(--pico-background-color) 88%, transparent);
}
.ws-mypicks-thumb {
  width: 5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.ws-mypicks-thumb--ph {
  width: 5rem;
  height: 7.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--pico-muted-color) 22%, transparent);
}
.ws-mypicks-body {
  min-width: 0;
}
.ws-mypicks-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.ws-mypicks-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--pico-muted-color);
}
.ws-mypicks-bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 14rem;
  margin-bottom: 0.25rem;
}
.ws-mypicks-bar-w {
  background: var(--ws-watch, #1d9e75);
}
.ws-mypicks-bar-s {
  background: color-mix(in srgb, var(--pico-muted-color) 45%, transparent);
}
.ws-mypicks-pct {
  font-size: 0.68rem;
  color: var(--pico-muted-color);
}
.ws-mypicks-remove {
  font-size: 0.72rem;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  align-self: center;
}
@media (max-width: 520px) {
  .ws-mypicks-row {
    grid-template-columns: 4rem 1fr;
    grid-template-rows: auto auto;
  }
  .ws-mypicks-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .ws-mypicks-thumb,
  .ws-mypicks-thumb--ph {
    width: 4rem;
    height: 6rem;
  }
}
