/* ── Fishstank.live — Fishtank-adjacent, chunky, playful ── */
html { scrollbar-gutter: stable; }

:root {
  --bg: #1a9fbb;
  --bg-deep: #127d96;
  --card-bg: #faf6ee;
  --card-border: #e8dcc8;
  --card-shadow: rgba(0,0,0,0.18);
  --text-dark: #1e1e1e;
  --text-mid: #555;
  --text-light: #888;
  --accent: #ff6b2b;
  --accent-glow: #ff8f5a;
  --positive: #22c55e;
  --negative: #ef4444;
  --neutral: #f59e0b;
  --header-bg: #0e6b82;
  --overlay-bg: rgb(30, 30, 30);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  color: var(--text-dark);
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  position: relative;
  z-index: 10;
  padding: 12px 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* ── Window dropdown ── */
.window-dropdown {
  position: relative;
  display: inline-block;
}

.window-btn {
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.window-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.window-arrow {
  font-size: 1rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.window-menu.open ~ .window-btn .window-arrow,
.window-dropdown:has(.window-menu.open) .window-arrow {
  transform: rotate(180deg);
}

.window-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  min-width: 200px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.window-menu.open {
  opacity: 1;
  visibility: visible;
}

.window-option {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.window-option:hover {
  background: rgba(26, 159, 187, 0.1);
}

.window-option.active {
  background: rgba(26, 159, 187, 0.15);
  color: var(--header-bg);
}

.window-option + .window-option {
  border-top: 1px solid var(--card-border);
}

.site-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}

.title-accent {
  color: var(--accent);
}

.site-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}
.day-pill {
  display: inline-block;
  margin: 8px auto 6px;
  padding: 3px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff5a1f;
  border: 1.5px solid #ff5a1f;
  border-radius: 20px;
  text-transform: uppercase;
  text-align: center;
}

.update-badge {
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

/* ── Live panels (Production mode) ── */
.live-panel {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px 12px 12px;
}

.live-panel-title {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 0 4px 6px;
  text-transform: uppercase;
}

.live-panel-feed {
  max-height: 220px;
  overflow-y: auto;
  background: #0d1117;
  border-radius: 6px;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.live-panel-feed::-webkit-scrollbar { width: 4px; }
.live-panel-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.live-panel-msg {
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 3px;
  /* Clamp long messages to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-panel-msg:last-child { margin-bottom: 0; }

.notif-msg {
  color: #fde68a;
  font-weight: 600;
  background: rgba(253, 230, 138, 0.08);
}

.tts-msg {
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.04);
}

.tts-msg:nth-child(odd) {
  background: rgba(255,255,255,0.06);
}

.live-panel-empty {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  padding: 16px 0;
  text-align: center;
}

/* ── TTS panel — site-native styling ── */
.tts-upgraded {
  background: #0f1923;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 16px 18px 18px;
}
.tts-upgraded .live-panel-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding-bottom: 10px;
}
.tts-feed-upgraded {
  max-height: 270px;
  overflow-y: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.tts-feed-upgraded::-webkit-scrollbar { width: 4px; }
.tts-feed-upgraded::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Filter chips — site-native pill style */
.tts-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 12px;
}
/* TTS filter collapse wrapper inside live-panel */
.live-panel .recap-filters-wrapper {
  margin: 0 0 10px;
  width: auto;
  max-width: none;
}
.live-panel .recap-filters-body {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.tts-filter-btn {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  line-height: 1;
}
.tts-filter-btn:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}
.tts-filter-btn.active {
  background: #1a9fbb;
  color: #fff;
  border-color: #1a9fbb;
  box-shadow: 0 2px 8px rgba(26,159,187,0.25);
}

/* TTS item — mini-card matching site cards */
.tts-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tts-item:last-child { margin-bottom: 0; }
.tts-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

/* Message text */
.tts-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Expand affordance — subtle in-family cue */
.tts-expand-hint {
  font-size: 0.5rem;
  color: rgba(26,159,187,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-top: 4px;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.tts-item:hover .tts-expand-hint {
  opacity: 1;
}

/* Meta row */
.tts-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.55rem;
  line-height: 1;
}
.tts-sender {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}
.tts-room {
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tts-time {
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

/* Entity tags — site-accent colored */
.tts-entity-tag {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  line-height: 1;
}
.tts-role-contestant,
.tts-role-fish {
  background: rgba(26,159,187,0.15);
  color: #3cc0d8;
}
.tts-role-production {
  background: rgba(255,90,31,0.12);
  color: #e8764a;
}
.tts-role-robot {
  background: rgba(120,80,200,0.12);
  color: #9b78e0;
}
.tts-role-freeloader {
  background: rgba(253,121,168,0.12);
  color: #f06bab;
}
.tts-role-host {
  background: rgba(231,76,60,0.12);
  color: #e05a4d;
}

/* Expanded state */
.tts-item.tts-expanded .tts-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.tts-item.tts-expanded .tts-expand-hint {
  display: none;
}
.tts-item.tts-expanded {
  background: rgba(26,159,187,0.08);
  border-color: rgba(26,159,187,0.5);
  border-left-width: 3px;
  box-shadow: 0 3px 0 rgba(26,159,187,0.12), 0 6px 16px rgba(26,159,187,0.06);
}

/* ── Onboarding hint ── */
.onboarding-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hint-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.hint-dismiss:hover {
  color: rgba(255,255,255,0.7);
}

/* ── Evidence source labels ── */
.ev-source-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent);
  padding: 8px 4px 4px;
  text-transform: uppercase;
}

.ev-source-label:first-child {
  padding-top: 2px;
}

.ev-source-x {
  color: #1d9bf0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

/* ── X evidence feed rows ── */
.ev-x-scroll {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ev-x-scroll .ev-msg {
  background: rgba(29, 155, 240, 0.08);
  border-radius: 4px;
  padding: 5px 8px 5px 10px;
  font-size: 0.65rem;
  line-height: 1.45;
  color: #e2e8f0;
  border-left: 2px solid rgba(29, 155, 240, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-x-scroll .ev-stance {
  border-left-color: rgba(29, 155, 240, 0.6);
  background: rgba(29, 155, 240, 0.12);
  color: #f1f5f9;
}

.ev-x-scroll .ev-context {
  border-left-color: rgba(148, 163, 184, 0.25);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
}

/* ── Card tap hint ── */
.card-tap-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* ── ALL TIME sub-view selector ── */
.alltime-selector {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
  margin: 10px auto 0;
  max-width: 1400px;
}

.alltime-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}

.alltime-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.alltime-btn.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ── Board grid ── */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Card ── */
.card {
  background: var(--card-tint, var(--card-bg));
  border-radius: 20px;
  border: 3px solid var(--card-border-tint, var(--card-border));
  box-shadow: 0 6px 0 var(--card-shadow), 0 12px 32px rgba(0,0,0,0.12);
  padding: 14px 24px 24px;
  position: relative;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Dead / eliminated cards */
.dead-card {
  opacity: 0.5;
  filter: grayscale(100%);
  background: #e3e3e3;
  border-color: #c4c4c4;
  box-shadow: 0 4px 0 rgba(80,80,80,0.4), 0 8px 20px rgba(0,0,0,0.15);
  cursor: default;
}

.dead-label {
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--card-shadow), 0 20px 40px rgba(0,0,0,0.18);
}

/* Size tiers based on mention share */
.card.tier-1 {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
}

.card.tier-2 {
  grid-column: span 1;
  grid-row: span 2;
}

.card.tier-3 {
  grid-column: span 1;
  grid-row: span 1;
}

/* ── Rank badge ── */
.badge-area {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.rank-badge {
  position: relative;
  top: auto;
  left: auto;
  background: linear-gradient(145deg, #ffb347, #ff6b2b);
  color: #fff;
  font-weight: 900;
  min-width: 52px;
  height: auto;
  padding: 8px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 0 rgba(180, 70, 10, 0.5), 0 6px 16px rgba(255, 107, 43, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 2;
  line-height: 1;
}

.rank-num {
  font-size: 1.15rem;
  font-weight: 900;
}

.rank-label {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.85;
}

.rank-badge.rank-1 {
  background: linear-gradient(145deg, #ffd700, #f0a500);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 0 rgba(180, 130, 0, 0.5), 0 8px 20px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-1 .rank-num { font-size: 1.3rem; }

.rank-badge.rank-2 {
  background: linear-gradient(145deg, #e0e0e0, #a8a8a8);
  box-shadow: 0 4px 0 rgba(120, 120, 120, 0.5), 0 7px 16px rgba(160, 160, 160, 0.35);
}

.rank-badge.rank-2 .rank-num { font-size: 1.2rem; }

.rank-badge.rank-3 {
  background: linear-gradient(145deg, #e8a060, #c47028);
  box-shadow: 0 4px 0 rgba(140, 80, 20, 0.5), 0 7px 16px rgba(200, 120, 40, 0.35);
}

.rank-badge.rank-3 .rank-num { font-size: 1.15rem; }

/* ── Avatar (initials placeholder) ── */
.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 3px rgba(0,0,0,0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.tier-1 .avatar {
  width: 170px;
  height: 170px;
  font-size: 3.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2), 0 0 0 4px rgba(0,0,0,0.08);
}

.card.tier-2 .avatar {
  width: 145px;
  height: 145px;
  font-size: 2.8rem;
}

/* Avatar colors per contestant (fallback when no image) */
.avatar-victoria   { background: #e84393; }
.avatar-emma       { background: #6c5ce7; }
.avatar-twins      { background: #00b894; }
.avatar-bashir     { background: #fdcb6e; color: #5a4e2c; }
.avatar-jd         { background: #0984e3; }
.avatar-james_drake { background: #d63031; }
.avatar-head       { background: #e17055; }
.avatar-anissa     { background: #a29bfe; }
.avatar-landon     { background: #00cec9; }
.avatar-bezo       { background: #888888; }
.avatar-charity    { background: #9e9e9e; }

/* ── Name ── */
.card-name {
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 2px;
  padding-top: 0;
  order: -1;
  width: 100%;
  text-align: center;
  line-height: 1.1;
}

.card.tier-1 .card-name {
  font-size: 2.2rem;
}

.card.tier-2 .card-name {
  font-size: 1.8rem;
}

.card-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.3);
  margin-top: 0;
  margin-bottom: 6px;
  order: -1;
  width: 100%;
  text-align: center;
}

/* ── Freeloader tag ── */
.freeloader-tag {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
}

/* ── Net sentiment badge (top-left, under rank) ── */
.net-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.8px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  margin-top: 2px;
}

.net-badge.net-positive {
  color: #fff;
  background: var(--positive);
}

.net-badge.net-negative {
  color: #fff;
  background: var(--negative);
}

.net-badge.net-neutral {
  color: var(--text-mid);
  background: rgba(0, 0, 0, 0.08);
}

/* ── Mention count pill ── */
.mention-pill {
  background: rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
}

.mention-pill strong {
  color: var(--text-dark);
  font-size: 1rem;
}

/* ── Evidence overlay ── */
.evidence-overlay {
  background: var(--card-bg) !important;
  border-radius: 17px;
  border: 2px solid var(--card-border);
}

.evidence-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.evidence-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  padding: 10px 12px 6px;
  text-align: center;
  flex-shrink: 0;
}

.evidence-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-content: flex-start;
}
/* DAY-view: taller scroll area for full 24h evidence */
.evidence-scroll-day {
  max-height: 260px;
  flex: none;
}

.ev-msg {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-dark);
  max-width: 100%;
  word-break: break-word;
}

.ev-pos {
  background: rgba(34, 197, 94, 0.08);
  border-left: 2px solid rgba(34, 197, 94, 0.4);
}

.ev-neg {
  background: rgba(239, 68, 68, 0.08);
  border-left: 2px solid rgba(239, 68, 68, 0.4);
}

.ev-empty {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  width: 100%;
}

/* ── Card sentiment (LAST HOUR inline display) ── */
.card-sentiment {
  margin-top: 8px;
  width: 100%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sentiment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sentiment-pos {
  background: rgba(34, 197, 94, 0.1);
}

.sentiment-neg {
  background: rgba(239, 68, 68, 0.1);
}

.sentiment-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  font-size: 0.7rem;
}

.sentiment-pos .sentiment-label { color: var(--positive); }
.sentiment-neg .sentiment-label { color: var(--negative); }

.sentiment-value {
  font-weight: 900;
  font-size: 0.85rem;
}

.sentiment-pos .sentiment-value { color: var(--positive); }
.sentiment-neg .sentiment-value { color: var(--negative); }

/* ── Hover overlay ── */
.card-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

/* Chart overlay — Fishtank console style */
.chart-overlay {
  padding: 0;
}

.chart-panel {
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 17px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-panel-title {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  padding: 10px 14px 6px;
  text-align: center;
}

.chart-canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
  padding: 0 8px;
  box-sizing: border-box;
}

.chart-range-btns {
  display: flex;
  gap: 6px;
  padding: 8px 12px 10px;
  justify-content: center;
}

.chart-range-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  background: #f0ece2;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-range-btn:hover {
  background: #e8dcc8;
}

.chart-range-btn.active {
  background: var(--header-bg);
  color: #fff;
  border-color: var(--header-bg);
  box-shadow: 0 2px 6px rgba(14, 107, 130, 0.3);
}

/* ── Ranked comparison (LAST HOUR overlay) ── */
.ranked-container {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rank-row {
  display: grid;
  grid-template-columns: 28px 72px 1fr 40px 70px;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rank-row-selected {
  background: rgba(14, 107, 130, 0.15);
  border: 2px solid var(--header-bg);
  box-shadow: 0 2px 8px rgba(14, 107, 130, 0.2);
}

.rank-row-muted {
  opacity: 0.55;
  border: 2px solid transparent;
}

.rank-row-pos {
  font-weight: 900;
  color: var(--text-mid);
  font-size: 0.75rem;
}

.rank-row-name {
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row-selected .rank-row-name {
  color: var(--header-bg);
}

.rank-row-bar-track {
  height: 14px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 7px;
  overflow: hidden;
}

.rank-row-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--header-bg), #1a9fbb);
  border-radius: 7px;
  transition: width 0.4s ease;
  min-width: 3px;
}

.rank-row-muted .rank-row-bar {
  background: linear-gradient(90deg, #b0b0b0, #d0d0d0);
}

.rank-row-mentions {
  font-weight: 900;
  color: var(--text-dark);
  text-align: right;
  font-size: 0.8rem;
}

.rank-row-pn {
  text-align: right;
  white-space: nowrap;
}

.rr-pos { color: var(--positive); font-weight: 800; }
.rr-neg { color: var(--negative); font-weight: 800; margin-left: 2px; }

/* Desktop: hover opens overlay (only on fine pointer / non-touch) */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Touch / mobile: tap opens overlay via .tapped class */
.card.tapped .card-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Subtle ring on tapped card so it feels intentional */
.card.tapped {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.overlay-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.overlay-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 220px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.overlay-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.overlay-value {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
}

.overlay-value.delta-positive {
  color: var(--positive);
}

.overlay-value.delta-negative {
  color: var(--negative);
}

.overlay-value.delta-zero {
  color: rgba(255,255,255,0.4);
}

/* ── GRAPH mode ── */
.graph-mode-panel {
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--card-shadow), 0 12px 32px rgba(0,0,0,0.12);
  padding: 20px;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 500px;
}

.graph-mode-header {
  display: flex;
  justify-content: center;
}

.graph-controls {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.graph-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-control-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-mid);
}

.graph-control-btns {
  display: flex;
  gap: 4px;
}

.graph-ctrl-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--card-border);
  border-radius: 10px;
  background: #f0ece2;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}

.graph-ctrl-btn:hover {
  background: #e8dcc8;
}

.graph-ctrl-btn.active {
  background: var(--header-bg);
  color: #fff;
  border-color: var(--header-bg);
  box-shadow: 0 2px 6px rgba(14, 107, 130, 0.3);
}

.graph-mode-canvas {
  flex: 1;
  width: 100%;
  min-height: 300px;
  display: block;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 4px 0;
}

.graph-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.graph-legend-item:hover {
  background: rgba(0,0,0,0.06);
}

.graph-legend-item.legend-active {
  background: rgba(14, 107, 130, 0.15);
  color: var(--text-dark);
  font-weight: 800;
}

.graph-legend-item.legend-dimmed {
  opacity: 0.3;
}

.graph-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dead {
  opacity: 0.5;
  font-style: italic;
}

@media (max-width: 720px) {
  .graph-mode-panel {
    padding: 14px;
    min-height: 400px;
  }
  .graph-controls {
    gap: 12px;
  }
  .graph-ctrl-btn {
    padding: 5px 10px;
    font-size: 0.65rem;
  }
}

/* ── Production mode ── */
/* (Removed: production-card, production-gauge, fans-block, fans-chart — viewer + sentiment panels removed) */

/* ── Footer ── */
/* ── Empty state ── */
.board-empty {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.board-empty-text {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer {
  text-align: center;
  padding: 20px 24px;
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.7;
}

.footer-promo {
  margin-bottom: 6px;
}

.footer-promo p {
  margin: 0;
}

.footer-note {
  margin: 0 0 8px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.promo-link {
  color: rgba(255,255,255,0.7);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.promo-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 107, 43, 0.5);
}

.footer-credit {
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
}

.credit-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  text-shadow:
    0 0 6px rgba(255, 107, 43, 0.3),
    0 2px 12px rgba(255, 255, 255, 0.30),
    0 0 24px rgba(255, 255, 255, 0.16);
  transition: color 0.2s, text-shadow 0.2s;
}

.credit-link:hover {
  color: var(--accent-glow);
  text-shadow:
    0 0 10px rgba(255, 107, 43, 0.5),
    0 2px 14px rgba(255, 255, 255, 0.50),
    0 0 28px rgba(255, 255, 255, 0.24);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .board {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
  }

  .card.tier-1 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .card.tier-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 16px 8px;
    gap: 2px;
  }
  .site-title { font-size: 1.1rem; }
  .site-subtitle { font-size: 0.5rem; letter-spacing: 2px; }
  .window-btn { font-size: 0.85rem; padding: 6px 14px; letter-spacing: 2px; }
  .avatar { width: 96px; height: 96px; font-size: 2rem; }
  .card.tier-1 .avatar { width: 115px; height: 115px; font-size: 2.4rem; }
  .badge-area { top: 6px; left: 6px; gap: 3px; }
  .rank-badge { min-width: 38px; padding: 4px 8px; }
  .rank-num { font-size: 0.9rem; }
  .rank-label { font-size: 0.4rem; }
  .net-badge { font-size: 0.6rem; padding: 1px 6px; min-width: 30px; }
  .rank-badge.rank-1 .rank-num { font-size: 1.05rem; }
  .rank-badge.rank-2 .rank-num { font-size: 0.95rem; }
  .rank-badge.rank-3 .rank-num { font-size: 0.95rem; }
  .card-name { font-size: 1.25rem; }
  .card.tier-1 .card-name { font-size: 1.5rem; }
  .card-role { font-size: 0.6rem; }
  .net-rating { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card.tier-1,
  .card.tier-2 {
    grid-column: span 1;
  }

  .site-header { padding: 14px 16px 12px; }
  .site-title { font-size: 1.2rem; }
}

/* Dead card stats */
.dead-stats {
  font-size: 0.72rem;
  color: var(--text-mid);
  margin-top: 4px;
  opacity: 0.8;
}
.dead-stats .pos { color: #4caf50; }
.dead-stats .neg { color: #e57373; }

/* ── Site Nav ── */
.site-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 600px;
  margin: 10px auto 0;
  padding: 0 12px;
  box-sizing: border-box;
}
.nav-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 4px;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-btn:hover {
  background: #e8e4dc;
}
.nav-btn.active {
  background: var(--text-dark);
  color: var(--card-bg);
  border-color: var(--text-dark);
}

/* Mobile nav sizing — keep 5 buttons on one line */
@media (max-width: 480px) {
  .site-nav {
    gap: 4px;
    padding: 0 8px;
  }
  .nav-btn {
    font-size: 0.58rem;
    padding: 8px 2px;
    border-width: 1.5px;
    border-radius: 6px;
    letter-spacing: 0;
  }
}

/* ── Heat sub-controls ── */
.heat-controls {
  display: flex;
  justify-content: center;
  margin: 8px auto 4px;
}

/* ── Section Placeholders ── */
.section-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px 20px;
}
.section-placeholder:has(.recap-timeline) {
  /* Override flex centering for recap — use column layout so timeline centers via margin */
  display: block;
  text-align: left;
}
.placeholder-content {
  text-align: center;
}
.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}
.placeholder-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.placeholder-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.ev-context {
  opacity: 0.75;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 8px;
}
.ev-context-label {
  color: rgba(255,255,255,0.45) !important;
  font-style: italic;
}

/* ── Recap Filters Collapse Wrapper ── */
.recap-filters-wrapper {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 20px;
}
.recap-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s;
}
.recap-filters-toggle:hover {
  background: rgba(0,0,0,0.2);
}
.recap-filters-wrapper.open .recap-filters-toggle {
  border-radius: 14px 14px 0 0;
  border-bottom-color: transparent;
}
.recap-filters-toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recap-filters-toggle-arrow {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.recap-filter-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.recap-filters-body {
  overflow: hidden;
}
.recap-filters-wrapper.open .recap-filters {
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .recap-filters-wrapper {
    margin-left: 12px;
    margin-right: 12px;
    width: auto;
  }
  .recap-filters-toggle {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .recap-filters-wrapper.open .recap-filters-toggle {
    border-radius: 12px 12px 0 0;
  }
  .recap-filters-toggle-label {
    font-size: 0.75rem;
  }
}

/* ── Recap Filters — unified control panel ── */
.recap-filters {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 14px 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.recap-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.recap-filter-group:last-of-type {
  flex: 1;
  min-width: 0;
}
.recap-filter-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 2px;
}
.recap-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.recap-filter-chip {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.recap-filter-chip:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}
.recap-filter-chip.active {
  background: rgba(255,255,255,0.85);
  color: #0f1923;
  border-color: transparent;
  font-weight: 700;
}
.recap-filter-chip.active.type-challenge { background: rgba(184,148,42,0.25); color: #d4a830; border-color: transparent; }
.recap-filter-chip.active.type-entrance { background: rgba(42,170,100,0.25); color: #3cb870; border-color: transparent; }
.recap-filter-chip.active.type-exit { background: rgba(180,60,60,0.25); color: #d06060; border-color: transparent; }
.recap-filter-chip.active.type-conflict { background: rgba(200,80,40,0.25); color: #d06030; border-color: transparent; }
.recap-filter-chip.active.type-wholesome { background: rgba(60,160,100,0.25); color: #50b878; border-color: transparent; }
.recap-filter-chip.active.type-funny { background: rgba(200,170,50,0.25); color: #d0b030; border-color: transparent; }
.recap-filter-chip.active.type-boxing { background: rgba(196,48,48,0.25); color: #d06060; border-color: transparent; }
.recap-filter-chip.active.type-production { background: rgba(74,144,208,0.25); color: #74b9ff; border-color: transparent; }
.recap-entity-chips {
  max-width: none;
}
.recap-filter-chip.entity-group-start {
  margin-left: 6px;
}
.recap-filter-chip.entity-group-start:first-child {
  margin-left: 0;
}
.recap-filter-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
}
.recap-filter-sep {
  width: auto;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 2px 0;
  flex-shrink: 0;
}
/* Desktop: stacked layout with horizontal type row */
@media (min-width: 601px) {
  .recap-filters {
    flex-direction: column;
  }
  .recap-filter-group:first-child .recap-filter-chips {
    gap: 4px;
  }
}
@media (max-width: 600px) {
  .recap-filters {
    gap: 12px;
    padding: 12px 14px 14px;
    border-radius: 0 0 12px 12px;
    margin: 0;
    width: auto;
  }
  .recap-filter-group {
    width: 100%;
  }
  .recap-filter-group:last-of-type {
    flex: none;
  }
  .recap-filter-chip {
    padding: 7px 13px;
    font-size: 0.72rem;
  }
}
/* Empty state */
.recap-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid);
}
.recap-empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.recap-empty-text { font-size: 0.85rem; margin-bottom: 12px; }
.recap-empty-clear {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #1a9fbb);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: underline;
}
/* ── Day jump navigation ── */
.recap-day-jump {
  position: relative;
  z-index: 50;
  max-width: 680px;
  margin: 0 auto 16px;
  padding: 0 16px;
}
.recap-day-jump-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: rgba(15,25,35,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.15s;
}
.recap-day-jump-btn:hover {
  border-color: rgba(255,255,255,0.2);
}
.recap-day-jump-arrow {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.recap-day-jump-menu {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 100%;
  margin-top: 4px;
  background: rgba(15,25,35,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.recap-day-jump-menu.open {
  display: block;
}
.recap-day-jump-option {
  padding: 10px 16px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.recap-day-jump-option:last-child {
  border-bottom: none;
}
.recap-day-jump-option:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.recap-day-jump-option:first-child {
  color: #3cc0d8;
  font-weight: 700;
}
/* Day header flash on jump */
.recap-day-header.recap-day-flash {
  animation: dayFlash 1.2s ease;
}
@keyframes dayFlash {
  0% { color: #3cc0d8; }
  100% { color: inherit; }
}
@media (max-width: 600px) {
  .recap-day-jump {
    position: sticky;
    top: 52px;
    padding: 0 12px;
  }
  .recap-day-jump-btn {
    padding: 9px 14px;
    font-size: 0.6rem;
  }
}

/* Jump to top */
.recap-jump-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 25, 40, 0.85);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.recap-jump-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.recap-jump-top:active {
  transform: scale(0.92);
  background: rgba(15, 25, 40, 0.95);
}
@media (min-width: 769px) {
  .recap-jump-top {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
    font-size: 0;
    opacity: 0;
    bottom: 20px;
    right: 20px;
  }
  .recap-jump-top.visible { display: flex; opacity: 0.35; }
  .recap-jump-top:hover { opacity: 0.85; }
}

/* ── Recap Timeline ── */
.recap-timeline {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: left;
}
.recap-day-group {
  margin-bottom: 12px;
}
.recap-day-group:first-child {
  margin-top: 0;
}
.recap-day-header {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  padding: 20px 0 10px;
  margin-bottom: 14px;
  border-bottom: 3px solid var(--text-dark);
  text-transform: uppercase;
}
.recap-day-group:first-child .recap-day-header {
  padding-top: 8px;
}
.recap-event-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
/* Media slot — hidden until populated, reserves layout position */
.recap-event-media {
  display: none;
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
  position: relative;
}
.recap-event-media.has-media {
  display: block;
}
.recap-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recap-event-media .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1.4rem;
  pointer-events: none;
}
.media-count-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  pointer-events: none;
}
.recap-event-card.has-media-card {
  cursor: pointer;
}
.recap-event-card.has-media-card:hover .recap-event-media {
  opacity: 0.85;
}

/* ── Media Overlay Player ── */
.media-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-overlay-inner {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 80vh;
}
.media-overlay-inner video {
  width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  background: #000;
}
.media-overlay-close {
  position: absolute;
  top: -36px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.media-overlay-close:hover {
  background: rgba(255,255,255,0.3);
}
.media-overlay-unmute {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}
@media (max-width: 600px) {
  .media-overlay-inner {
    width: 96vw;
  }
  .media-overlay-close {
    top: -32px;
    right: 4px;
  }
}
.recap-event-content {
  flex: 1;
  min-width: 0;
}
.recap-event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.recap-event-time {
  font-size: 0.65rem;
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
  white-space: nowrap;
}
.recap-event-portraits {
  display: flex;
}
.recap-portrait {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  margin-left: -5px;
  object-fit: cover;
}
.recap-portrait:first-child {
  margin-left: 0;
}
.recap-portrait-overflow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-border);
  color: var(--text-mid);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
  border: 2px solid var(--card-bg);
}
.recap-event-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.recap-event-winner {
  font-size: 0.78rem;
  color: #f0d060;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.recap-event-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-mid);
  opacity: 0.85;
}
.recap-event-body p {
  margin-bottom: 6px;
}
.recap-event-body p:last-child {
  margin-bottom: 0;
}
.recap-event-body strong {
  color: var(--text-dark);
}
.recap-body-clamped {
  max-height: 4.2em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.recap-badges {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
  align-items: flex-end;
  flex-shrink: 0;
}
.recap-type-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.recap-type-badge.type-challenge { background: rgba(184,148,42,0.15); color: #d4a830; }
.recap-type-badge.type-entrance { background: rgba(42,170,100,0.15); color: #3cb870; }
.recap-type-badge.type-exit { background: rgba(180,60,60,0.15); color: #d06060; }
.recap-event-card.typed-challenge { border-left: 3px solid rgba(184,148,42,0.4); }
.recap-event-card.typed-entrance { border-left: 3px solid rgba(42,170,100,0.4); }
.recap-event-card.typed-exit { border-left: 3px solid rgba(180,60,60,0.4); }
.recap-type-badge.type-conflict { background: rgba(200,80,40,0.15); color: #d06030; }
.recap-type-badge.type-wholesome { background: rgba(60,160,100,0.15); color: #50b878; }
.recap-type-badge.type-funny { background: rgba(200,170,50,0.15); color: #d0b030; }
.recap-event-card.typed-conflict { border-left: 3px solid rgba(200,80,40,0.4); }
.recap-event-card.typed-wholesome { border-left: 3px solid rgba(60,160,100,0.4); }
.recap-event-card.typed-funny { border-left: 3px solid rgba(200,170,50,0.4); }
.recap-type-badge.type-production { background: rgba(74,144,208,0.15); color: #74b9ff; }
.recap-event-card.typed-production { border-left: 3px solid rgba(74,144,208,0.4); }
.recap-expand-hint {
  font-size: 0.6rem;
  color: var(--accent, #1a9fbb);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-align: left;
}

/* ── Recap Card Creator Credit ── */
.recap-card-credit {
  font-size: 0.65rem;
  color: var(--text-mid);
  margin-top: 6px;
  opacity: 0.75;
}
.recap-card-credit a {
  color: var(--accent, #1a9fbb);
  text-decoration: none;
}
.recap-card-credit a:hover {
  text-decoration: underline;
}

/* ── Overlay Creator Credit Block ── */
.media-overlay-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}
.media-overlay-credit-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.media-overlay-credit-info {
  flex: 1;
  min-width: 0;
}
.media-overlay-credit-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.media-overlay-credit-handle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.media-overlay-credit-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #1a9fbb);
  text-decoration: none;
  white-space: nowrap;
}
.media-overlay-credit-link:hover {
  text-decoration: underline;
}
/* Fallback state — no video, link-first */
.media-overlay-fallback {
  text-align: center;
  padding: 40px 20px;
}
.media-overlay-fallback-thumb {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 10px;
  margin-bottom: 16px;
}
.media-overlay-fallback-action {
  display: inline-block;
  padding: 10px 24px;
  background: #1a9fbb;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}
.media-overlay-fallback-action:hover {
  background: #15889f;
}

/* ── X-Backed Overlay Card ── */
.media-overlay-x-card {
  text-align: center;
  padding: 20px;
}
.media-overlay-x-thumb {
  max-width: 100%;
  max-height: 55vh;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.media-overlay-x-brand {
  margin-bottom: 16px;
}
.media-overlay-x-source {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.media-overlay-x-handle {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.media-overlay-x-action {
  display: inline-block;
  padding: 12px 32px;
  background: #1a9fbb;
  color: #fff;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.media-overlay-x-action:hover {
  background: #15889f;
}

/* ── Daily Trophies ── */
/* Trophy styles removed — Slice F */
@media (max-width: 600px) {
}

/* Boxing event card accent */
.recap-event-card.typed-boxing {
  border-left: 3px solid rgba(196,48,48,0.6);
}
.recap-type-badge.type-boxing {
  background: rgba(196,48,48,0.2);
  color: #d06060;
}

/* ── Analytics Switcher ── */
.analytics-switcher {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 16px;
}
.analytics-tab {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 30px;
  cursor: pointer;
  transition: all 0.15s;
}
.analytics-tab:first-child {
  border-radius: 8px 0 0 8px;
  border-right: none;
}
.analytics-tab:last-child {
  border-radius: 0 8px 8px 0;
}
.analytics-tab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.analytics-tab.active {
  background: #fff;
  border-color: #fff;
  color: #0d1b2a;
  font-weight: 900;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

/* ── Players View ── */
/* ── Players sort controls ── */
.players-controls {
  display: flex;
  align-items: stretch;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 24px;
  padding: 0 16px;
  flex-wrap: wrap;
}
.players-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.players-control-group-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 2px;
}
.players-mode-btns {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}
.players-mode-btn {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.players-mode-btn:hover {
  color: rgba(255,255,255,0.7);
}
.players-mode-btn.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.players-controls-label { display: none; }
.players-sort-btns {
  display: flex;
  gap: 0;
  align-items: center;
  margin-left: auto;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.08);
}
.players-sort-btn {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.players-sort-btn:hover {
  color: rgba(255,255,255,0.7);
}
.players-sort-btn.active {
  background: #1a9fbb;
  color: #fff;
  box-shadow: 0 1px 4px rgba(26,159,187,0.3);
}
@media (max-width: 600px) {
  .players-controls {
    padding: 0 12px;
    gap: 10px;
  }
  .players-controls > .players-control-group {
    flex: 1;
    min-width: 0;
  }
  .players-mode-btns, .players-sort-btns {
    width: 100%;
  }
  .players-mode-btn {
    flex: 1;
    font-size: 0.62rem;
    padding: 7px 10px;
    text-align: center;
  }
  .players-sort-btn {
    flex: 1;
    font-size: 0.52rem;
    padding: 7px 8px;
    text-align: center;
  }
}

/* ── Players container + section headers ── */
.players-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.players-section {
  margin-bottom: 32px;
}
.players-section:last-child {
  margin-bottom: 0;
}
.players-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.players-section-header-archived {
  border-bottom-color: rgba(255,255,255,0.05);
}
.players-section-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.players-section-header-archived .players-section-label {
  color: rgba(255,255,255,0.35);
}
.players-section-count {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Players grid ── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ── Player card ── */
.player-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.player-card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.player-card-active {
  border-color: rgba(60,192,216,0.2);
}
.player-card-disabled {
  opacity: 0.65;
}
.player-card-disabled:hover {
  opacity: 0.8;
}

/* Header row — portrait left, info right */
.player-card-header {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.player-portrait {
  width: 88px;
  height: 88px;
  border-radius: 14px 0 0 0;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.player-card-active .player-portrait {
  /* no special border — the square fills the corner */
}
.player-portrait-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 14px 0 0 0;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.2);
  font-weight: 800;
  flex-shrink: 0;
}
.player-info {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.player-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
}
.player-meta {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

/* Category pills */
.player-cat {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(26,159,187,0.15);
  color: #3cc0d8;
}
.player-cat-freeloader, .player-cat-robot {
  background: rgba(243,156,18,0.15);
  color: #f0a830;
}

/* Status pills */
.player-status {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.player-status-active {
  background: rgba(60,184,112,0.12);
  color: #3cb870;
}
.player-status-tank-time {
  background: rgba(60,184,112,0.15);
  color: #3cb870;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  border: 1px solid rgba(60,184,112,0.25);
  font-size: 0.44rem;
  white-space: nowrap;
}
.player-status-out {
  background: rgba(208,96,96,0.1);
  color: rgba(208,96,96,0.7);
}

/* Stats grid */
.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.03);
  padding: 10px 14px;
}
.player-stat {
  text-align: center;
  padding: 4px 0;
}
.player-stat-label {
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.player-stat-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
}
.player-stat-sub {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
}
.player-stat-pos .player-stat-value { color: #3cb870; }
.player-stat-neg .player-stat-value { color: #d06060; }

.players-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .players-container {
    padding: 0 12px;
  }
  .players-grid {
    grid-template-columns: 1fr;
  }
  .players-section {
    margin-bottom: 24px;
  }
  .player-stats {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 2px;
    padding: 8px 10px;
  }
  .player-portrait, .player-portrait-placeholder {
    width: 72px;
    height: 72px;
  }
  .player-info {
    padding: 10px 12px;
  }
  .player-name {
    font-size: 0.92rem;
  }
}


/* ── Player Current Job ── */
.player-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.player-current-job {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.player-job-value {
  color: rgba(255,255,255,0.55);
}

/* ── Production section ── */
.players-section-production {
  margin-top: 12px;
}
.players-section-header-production {
  border-left-color: #74b9ff;
}
.players-section-header-production .players-section-label {
  color: #74b9ff;
}

/* ── Mentions bleed fix ── */
.player-stat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.player-stat-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-stat {
  overflow: hidden;
  min-width: 0;
}


/* ── Recap media strip (card level) ── */
.recap-media-primary {
  position: relative;
  width: 100%;
  height: 100%;
}
.recap-media-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recap-media-strip {
  display: flex;
  gap: 3px;
  padding: 3px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.recap-media-strip::-webkit-scrollbar { display: none; }
.recap-media-strip-item {
  position: relative;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: border-color 0.15s;
}
.recap-media-strip-item:hover { border-color: rgba(255,255,255,0.4); }
.recap-media-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.strip-item-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1px 3px;
  border-radius: 3px;
}
.strip-item-attr {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 0.38rem;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.recap-media-attr {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  padding: 2px 4px;
  text-align: right;
}

/* ── Gallery overlay ── */
.media-gallery .gallery-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.gallery-counter {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.gallery-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 70vh;
  width: 100%;
}
.gallery-content img,
.gallery-content video {
  max-width: 90vw;
  max-height: 65vh;
  border-radius: 8px;
  object-fit: contain;
}
.gallery-attr-bar {
  min-height: 1.2em;
}
.gallery-attr {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
}
.gallery-prev:hover, .gallery-next:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-strip {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip-item {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
  opacity: 0.6;
}
.gallery-strip-item.active {
  border-color: #fff;
  opacity: 1;
}
.gallery-strip-item:hover { opacity: 0.9; }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .gallery-prev, .gallery-next { font-size: 1.5rem; padding: 6px 10px; }
  .gallery-strip-item { flex: 0 0 42px; height: 42px; }
  .recap-media-strip-item { flex: 0 0 40px; height: 40px; }
}



/* Export selection panel */
.export-select-panel {
  background: rgba(10,18,30,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.export-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.export-select-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.export-select-actions {
  display: flex;
  gap: 6px;
}
.export-select-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.export-select-toggle:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.export-select-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.export-select-item:last-child {
  border-bottom: none;
}
.export-select-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #2a6;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.export-select-item-info {
  flex: 1;
  min-width: 0;
}
.export-select-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.export-select-item-meta {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.export-select-item-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}
.btn-export-selected {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: #2a6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-export-selected:hover {
  background: #1d8a4e;
}
.btn-export-selected:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

/* Recap day export button */
.recap-day-export {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin: 12px auto 0;
  padding: 7px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.recap-day-export:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.18);
}
.recap-day-export:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Recap export canvas (hidden, used for PNG generation) */
.recap-export-canvas {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0d1b2a;
  color: rgba(255,255,255,0.9);
  padding: 32px 28px;
  box-sizing: border-box;
}
.recap-export-header {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(26,159,187,0.3);
}
/* ── Export timeline layout ── */
.recap-export-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
}
/* Timeline spine */
.recap-export-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(26,159,187,0.15);
  border-radius: 1px;
}

/* ── Export row (one event) ── */
.recap-export-row {
  display: flex;
  gap: 0;
  padding: 10px 0;
  position: relative;
}
.recap-export-row + .recap-export-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Featured event lift */
.recap-export-row.export-featured {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 14px 10px 14px 0;
  margin: 4px 0;
}
.recap-export-row.export-featured + .recap-export-row,
.recap-export-row + .recap-export-row.export-featured {
  border-top: none;
}

/* ── Time column with marker ── */
.recap-export-time-col {
  width: 58px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}
.recap-export-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,159,187,0.5);
  border: 2px solid #0d1b2a;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.recap-export-marker.marker-featured {
  width: 10px;
  height: 10px;
  background: #1a9fbb;
  box-shadow: 0 0 6px rgba(26,159,187,0.4);
}
.recap-export-time {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Main content area ── */
.recap-export-main {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Media thumbnail */
.recap-export-media {
  flex-shrink: 0;
  width: 72px;
}
.recap-export-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}
.recap-export-row.export-featured .recap-export-thumb {
  width: 88px;
  height: 66px;
}
.recap-export-row.export-featured .recap-export-media {
  width: 88px;
}
.recap-export-attribution {
  font-size: 0.45rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content */
.recap-export-content {
  flex: 1;
  min-width: 0;
}
.recap-export-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.recap-export-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.3;
  flex: 1;
}
.recap-export-row.export-featured .recap-export-title {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}
.recap-export-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  flex-shrink: 0;
}
.recap-export-badges .recap-type-badge {
  font-size: 0.48rem;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
}
.recap-export-winner {
  font-size: 0.72rem;
  color: #f0d060;
  font-weight: 700;
  margin-top: 2px;
}
.recap-export-body {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.48);
  margin-top: 3px;
  line-height: 1.4;
}
.recap-export-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}

/* ── More section layout ── */
.more-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 400px;
  align-items: start;
}
.more-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.more-nav-btn {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.more-nav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}
.more-nav-btn.active {
  background: rgba(26,159,187,0.15);
  color: #fff;
  border-color: rgba(26,159,187,0.4);
  box-shadow: 0 1px 6px rgba(26,159,187,0.2);
}
.more-content {
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
/* Subsection panels get disciplined inner widths, page-centered */
.more-content > * {
  box-sizing: border-box;
  position: relative;
  left: -90px;
}
/* TTS: generous but not edge-to-edge */
.more-content > .tts-upgraded,
.more-content > .live-panel {
  width: 100%;
  max-width: 860px;
}
/* Production: readable column */
.more-content > .prod-msg-panel {
  width: 100%;
  max-width: 560px;
}
/* Trophies: centered column */

/* Mobile: horizontal subnav */
@media (max-width: 720px) {
  .more-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
    min-height: 0;
  }
  .more-nav {
    flex-direction: row;
    gap: 0;
    padding: 3px;
  }
  .more-nav-btn {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    font-size: 0.62rem;
    border-radius: 6px;
  }
  .more-content > * {
    left: 0;
  }
}

/* More section header */
.more-section-header {
  text-align: center;
  margin: 0 0 16px;
  padding: 0;
}
.more-section-title {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.more-section-subtitle {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Production Messages panel */
/* ── Production desktop layout ── */
.production-layout {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 860px) {
  .production-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
  }
  .production-layout .tts-upgraded {
    grid-column: 1;
  }
  .production-layout .prod-msg-panel {
    grid-column: 2;
    margin-top: 0;
  }
  .production-layout .tts-feed-upgraded {
    max-height: 520px;
  }
  .production-layout .prod-msg-feed {
    max-height: 520px;
  }
}

.prod-msg-panel {
  background: #0f1923;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 16px 18px 18px;
}
.prod-msg-feed {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.prod-msg-feed::-webkit-scrollbar { width: 4px; }
.prod-msg-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.prod-msg-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.prod-msg-item:last-child { border-bottom: none; }
.prod-msg-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  word-break: break-word;
}
.prod-msg-meta {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-top: 4px;
}

/* Poll display in Production Messages */
.prod-msg-poll-q {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 6px;
}
.prod-msg-poll-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.prod-msg-poll-opt {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
