*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --border:    #222;
  --text:      #f0ede6;
  --muted:     #666;
  --accent:    #e8c547;
  --yes:       #4ade80;
  --no:        #f87171;
  --maybe:     #60a5fa;
  --radius:    16px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── Layout ── */
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ── Screens ── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════
   VIBE PICKER SCREEN
══════════════════════════════ */
#screen-vibe {
  padding: 48px 24px 32px;
  overflow-y: auto;
  background: var(--bg);
}

.vibe-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.eyebrow-row .vibe-eyebrow { margin-bottom: 0; }

.vibe-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 14vw, 72px);
  line-height: .92;
  color: var(--text);
  margin-bottom: 8px;
}

.vibe-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.vibe-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.vibe-btn:active { transform: scale(.97); }
.vibe-btn.selected {
  border-color: var(--accent);
  background: #1a1800;
}
.vibe-btn .vibe-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.vibe-btn.selected .vibe-name { color: var(--accent); }

.vibe-any {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 16px;
  transition: border-color .2s, color .2s;
}
.vibe-any:hover, .vibe-any.selected { border-color: var(--text); color: var(--text); }

.start-btn {
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.start-btn:disabled { opacity: .35; cursor: default; }
.start-btn:not(:disabled):active { transform: scale(.98); }

/* ══════════════════════════════
   HOME SCREEN
══════════════════════════════ */
#screen-home {
  padding: 48px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.home-top { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.home-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 18vw, 88px);
  line-height: .88;
  color: var(--text);
  margin-bottom: 6px;
}
.home-logo span { color: var(--accent); }

.home-tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 300px;
}

.home-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.home-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.home-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.home-feature-text { font-size: 13px; color: rgba(240,237,230,.7); line-height: 1.55; }
.home-feature-text strong { color: var(--text); font-weight: 500; }

.home-bottom { flex-shrink: 0; }

.home-lb-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.home-cta {
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: 14px;
}
.home-cta:active { transform: scale(.98); }

.lb-divider {
  text-align: center;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 12px;
  position: relative;
}
.lb-divider::before, .lb-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border);
}
.lb-divider::before { left: 0; }
.lb-divider::after  { right: 0; }

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.lb-row:focus-within { border-color: #444; }
.lb-icon { font-size: 18px; flex-shrink: 0; }
.lb-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.lb-input::placeholder { color: var(--muted); }
.lb-import-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  white-space: nowrap;
}
.lb-import-btn:hover { border-color: #444; }
.lb-import-btn:disabled { opacity: .4; cursor: default; }

.lb-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
}
.lb-status.lb-loading {
  background: var(--surface);
  color: var(--muted);
}
.lb-status.lb-done {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
  color: #4ade80;
}
.lb-status.lb-error {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  color: #f87171;
}
.lb-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════
   SWIPE SCREEN
══════════════════════════════ */
#screen-swipe {
  background: var(--bg);
}

/* Header */
.swipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.header-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--text);
}
.header-logo span { color: var(--accent); }
.vibe-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #1a1800;
  color: var(--accent);
  border: 1px solid #3a3000;
  border-radius: 20px;
  padding: 5px 12px;
}

/* Card stack */
.card-stack {
  flex: 1;
  position: relative;
  margin: 16px 20px 0;
  min-height: 0;
}

.card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  will-change: transform;
  transition: box-shadow .2s;
}
.card:active { cursor: grabbing; }
.card.back-1 {
  transform: scale(.95) translateY(10px);
  z-index: 1;
}
.card.back-2 {
  transform: scale(.90) translateY(20px);
  z-index: 0;
  opacity: .6;
}
.card.top { z-index: 2; }
.card.flying { transition: transform .35s cubic-bezier(.4, 0, 1, 1), opacity .3s ease-in; }

/* Undo toast */
.undo-toast {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 50;
}
.undo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.undo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.undo-btn:active { opacity: .7; }

/* Poster */
.card-poster {
  position: absolute;
  inset: 0;
  background: var(--surface);
  background-size: cover;
  background-position: center top;
}
.card-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,.15) 55%,
    rgba(0,0,0,.75) 80%,
    rgba(0,0,0,.95) 100%
  );
}

/* Swipe hint overlays */
.hint-yes, .hint-no, .hint-maybe {
  position: absolute;
  top: 28px;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .06em;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity .1s;
}
.hint-yes  { left: 20px;  color: var(--yes);   border: 3px solid var(--yes); }
.hint-no   { right: 20px; color: var(--no);    border: 3px solid var(--no); }
.hint-maybe { left: 20px; color: var(--maybe); border: 3px solid var(--maybe); top: auto; bottom: 180px; }

/* Card info */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 24px;
  z-index: 5;
}
.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.card-meta {
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-meta .dot { opacity: .4; }
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-weight: 500;
}
.card-overview {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border-radius: 4px;
  padding: 3px 7px;
  backdrop-filter: blur(4px);
}
.tag.accent { background: rgba(232,197,71,.2); color: var(--accent); }

/* Eye / seen button */
.card-eye {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .15s;
  font-size: 17px;
  line-height: 1;
}
.card-eye:active { transform: scale(.88); }
.card-eye.rated  { background: rgba(232,197,71,.75); }

/* Star rating overlay (slides down from top when eye is tapped) */
.card-stars {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85) 70%, transparent);
  transform: translateY(-100%);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.card-stars.open {
  transform: translateY(0);
  pointer-events: all;
}
.card-star {
  font-size: 28px;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  transition: color .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  padding: 4px;
}
.card-star.lit     { color: var(--accent); }
.card-star:active  { transform: scale(.85); }

/* Watchlist heart button */
.card-heart {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .15s;
  font-size: 18px;
  line-height: 1;
}
.card-heart:active { transform: scale(.88); }
.card-heart.saved { background: rgba(220,50,80,.75); }

/* No-poster fallback */
.card-no-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.card-no-poster-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 8vw, 48px);
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.1;
  letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

/* Action bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px 28px;
  flex-shrink: 0;
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.action-btn:active { transform: scale(.9); }

.btn-no {
  width: 60px; height: 60px;
  background: #1a0a0a;
  border: 1.5px solid #3a1414;
  font-size: 22px;
}
.btn-no:active { box-shadow: 0 0 0 8px rgba(248,113,113,.15); }

.btn-yes {
  width: 72px; height: 72px;
  background: var(--accent);
  font-size: 26px;
  box-shadow: 0 4px 24px rgba(232,197,71,.3);
}
.btn-yes:active { box-shadow: 0 0 0 8px rgba(232,197,71,.2); }

.btn-maybe {
  width: 60px; height: 60px;
  background: #0a0f1a;
  border: 1.5px solid #1a2a3a;
  font-size: 22px;
}
.btn-maybe:active { box-shadow: 0 0 0 8px rgba(96,165,250,.15); }

.btn-back {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 16px;
}

/* Swipe count */
.swipe-count {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  pointer-events: none;
}

/* Matches button in header */
.btn-matches {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-matches:hover { color: var(--accent); border-color: var(--accent); }
.btn-matches.has-matches { color: var(--accent); border-color: #3a3000; background: #1a1800; }

/* Watchlist screen */
#screen-matches {
  background: var(--bg);
  overflow-y: auto;
}
.matches-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.matches-back {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.matches-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: .04em;
  flex: 1;
}
.matches-count {
  font-size: 12px;
  color: var(--muted);
}
.matches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 40px;
}
.match-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  aspect-ratio: 2/3;
}
.match-card-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.match-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}
.match-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  line-height: 1.1;
  color: #fff;
}
.match-card-year {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.match-card-no-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.match-card-no-poster-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.1;
}
.matches-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.matches-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* Empty state */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  gap: 12px;
}
.empty-icon { font-size: 48px; }
.empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--text);
}
.empty-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════
   MATCH SCREEN
══════════════════════════════ */
#screen-match {
  background: var(--bg);
  overflow-y: auto;
}

.match-hero {
  position: relative;
  height: 55vh;
  min-height: 280px;
  flex-shrink: 0;
}
.match-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.match-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 40%, var(--bg) 100%);
}
.match-back {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 10;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  color: #fff;
}

.match-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 10;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 6px;
}

.match-body {
  padding: 0 24px 40px;
}
.match-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 10vw, 52px);
  line-height: .95;
  margin-bottom: 10px;
}
.match-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.match-rating { color: var(--accent); font-weight: 500; }
.match-overview {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240,237,230,.75);
  margin-bottom: 20px;
}
.match-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 10px;
}
.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.match-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 10px;
}
.match-cast {
  font-size: 13px;
  color: rgba(240,237,230,.65);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Streaming */
.streaming-section { margin-bottom: 32px; }
.match-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.streaming-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.streaming-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.streaming-service {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s;
  text-decoration: none;
  color: var(--text);
}
.streaming-service:hover { border-color: #444; }
.service-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.service-name { font-size: 14px; font-weight: 500; flex: 1; }
.service-type { font-size: 11px; color: var(--muted); }
.service-arrow { color: var(--muted); font-size: 12px; }

.streaming-placeholder {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  line-height: 1.6;
}

.watch-btn {
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .2s;
  margin-bottom: 12px;
}
.keep-swiping {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.keep-swiping:hover { color: var(--text); border-color: #444; }


/* ══════════════════════════════
   STREAMING SETUP SCREEN
══════════════════════════════ */
#screen-streaming {
  padding: 48px 24px 32px;
  overflow-y: auto;
  background: var(--bg);
}
.streaming-setup-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 11vw, 58px);
  line-height: .92;
  margin-bottom: 8px;
}
.streaming-setup-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.streaming-section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 12px;
  margin-top: 24px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.provider-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.provider-btn.selected {
  border-color: var(--accent);
  background: #1a1800;
}
.provider-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
}
.provider-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  padding: 2px;
}
.provider-name {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}
.provider-btn.selected .provider-name { color: var(--accent); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.toggle-label { font-size: 14px; }
.toggle-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.toggle-switch {
  width: 44px; height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  border: none;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
}
.toggle-switch.on::after { transform: translateX(18px); }
.selected-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.selected-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}
.selected-logo-placeholder {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: #1a1800;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--accent);
}

.provider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.country-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  max-width: 140px;
}
.country-select:focus { border-color: #444; }

.provider-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .2s;
}
.provider-search:focus { border-color: #444; }
.provider-search::placeholder { color: var(--muted); }

.show-more-btn {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: color .2s, border-color .2s;
}
.show-more-btn:hover { color: var(--text); border-color: #444; }

.streaming-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.streaming-back:hover { color: var(--text); }

.streaming-skip {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: color .2s, border-color .2s;
}
.streaming-skip:hover { color: var(--text); border-color: #444; }
.streaming-continue {
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity .2s;
}

/* Real streaming badges on match screen */
.streaming-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.streaming-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
}
.streaming-badge img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.badge-info { display: flex; flex-direction: column; }
.badge-name { font-size: 13px; font-weight: 500; color: var(--text); }
.badge-type { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ══════════════════════════════
   TRAILER
══════════════════════════════ */
.trailer-section { margin-bottom: 24px; }
.trailer-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.trailer-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
}
.trailer-play-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  transition: transform .15s;
}
.trailer-thumb:hover .trailer-play-icon { transform: scale(1.1); }
.trailer-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
}

/* ══════════════════════════════
   LOADER
══════════════════════════════ */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
}
.loader span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: .2s; }
.loader span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: .2; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 999;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.screen-footer {
  text-align: center;
  font-size: 11px;
  color: #444;
  padding: 20px 16px 12px;
  margin-top: auto;
}
.screen-footer a {
  color: #555;
  text-decoration: none;
}
.screen-footer a:hover { color: #888; }
