:root {
  --bg-base: #07090e;
  --bg-card: rgba(15, 19, 29, 0.86);
  --bg-card-solid: #101521;
  --bg-elevated: #161d2d;
  --bg-hover: rgba(255, 255, 255, 0.045);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f3f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-twitch: #9146ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* Ambient Background Glows */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-glow-1 {
  width: 640px;
  height: 460px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 500px;
  top: 60px;
  right: -180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.accent-gradient {
  background: linear-gradient(135deg, #f87171 0%, #fb923c 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.brand-crest {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.28));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-crest-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand:hover .brand-crest {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.48));
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.46rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-word-main {
  font-weight: 800;
  color: #f8fafc;
}

.brand-word-elo {
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 52%, #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-word-tld {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fbbf24;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.34);
  transform: translateY(-2px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseGlow 2.2s infinite;
}

.pulse-dot.error {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

/* Donation / Support Button */
.btn-donate {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.14) 100%);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.btn-donate:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(239, 68, 68, 0.25) 100%);
  border-color: rgba(251, 191, 36, 0.85);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.32);
  transform: translateY(-1px);
}

.btn-donate .donate-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-donate:hover .donate-icon {
  transform: scale(1.18);
}

.spinning {
  display: inline-block;
  animation: spin360 0.9s linear infinite;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

/* Main Content */
.main-content {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(370px, 1.02fr) minmax(0, 1.98fr);
  gap: 16px;
  margin-bottom: 20px;
}

.leader-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 48%, rgba(15, 19, 29, 0.92) 100%);
  border-color: rgba(245, 158, 11, 0.32);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.leader-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.leader-info {
  flex: 1;
  min-width: 0;
}

.leader-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin-bottom: 6px;
}

.leader-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leader-name {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0;
}

.leader-elo-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.leader-elo {
  font-size: 2.05rem;
  font-weight: 800;
  color: #fff;
}

.leader-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.leader-skin-wrap {
  width: 82px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pixel-skin {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.leader-skin-wrap img {
  height: 126px;
  width: auto;
  transform: perspective(400px) rotateY(-14deg);
}

.hero-right-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.top-kills-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(15, 19, 29, 0.88) 100%);
}

.top-kills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.top-kills-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde68a;
}

.top-kills-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.top-kills-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.top-kills-empty {
  grid-column: 1 / -1;
  padding: 18px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.top-kill-vod {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 11, 19, 0.78);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}

.top-kill-vod:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(145, 70, 255, 0.14);
}

.top-kill-vod.tk-rank-1 {
  border-color: rgba(245, 158, 11, 0.45);
}

.top-kill-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #060911;
}

.top-kill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.top-kill-vod:hover .top-kill-thumb img {
  transform: scale(1.05);
}

.tk-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(10, 13, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  line-height: 1.25;
}

.tk-rank-1 .tk-rank {
  background: rgba(245, 158, 11, 0.92);
  border-color: #fde68a;
  color: #090c14;
}

.tk-rank-2 .tk-rank {
  background: rgba(203, 213, 225, 0.9);
  border-color: #f8fafc;
  color: #090c14;
}

.tk-rank-3 .tk-rank {
  background: rgba(217, 119, 6, 0.9);
  border-color: #fed7aa;
  color: #090c14;
}

.tk-swing {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(6, 78, 59, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #6ee7b7;
  line-height: 1.25;
}

.tk-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(12, 15, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.64rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.top-kill-vod:hover .tk-play {
  background: #9146ff;
  border-color: #e9d5ff;
  transform: translate(-50%, -50%) scale(1.12);
}

.tk-time {
  position: absolute;
  bottom: 3px;
  left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(8, 10, 18, 0.85);
  color: #cbd5e1;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
}

.tk-badge {
  position: absolute;
  bottom: 3px;
  right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(88, 28, 135, 0.88);
  color: #f3e8ff;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.35;
}

.top-kill-caption {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 2px 1px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.tk-killer {
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-vs {
  font-size: 0.64rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.tk-victim {
  color: var(--text-muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.kpi-grid.kpi-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.kpi-card.kpi-compact {
  padding: 11px 14px;
}

.kpi-card.kpi-compact .kpi-label {
  font-size: 0.71rem;
}

.kpi-card.kpi-compact .kpi-value {
  font-size: 1.18rem;
  margin-top: 3px;
}

.kpi-card.kpi-compact .kpi-sub {
  font-size: 0.72rem;
  margin-top: 2px;
}

.kpi-label {
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub {
  font-size: 0.79rem;
  color: var(--text-dim);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation Tabs */
.tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.2));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.42);
}

.tab-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent-orange);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.pill.active {
  background: rgba(249, 115, 22, 0.2);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.55);
}

/* Leaderboard Table */
.table-container {
  overflow-x: auto;
}

.elo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.elo-table thead th {
  padding: 13px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  user-select: none;
}

.elo-table th.num,
.elo-table td.num {
  text-align: right;
}

.elo-table th.center-col,
.elo-table td.center-col {
  text-align: center;
}

.elo-table th.sortable {
  cursor: pointer;
}

.elo-table th.sortable:hover {
  color: var(--text-main);
}

.elo-table th.active-sort {
  color: #fb923c;
}

.elo-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 0.14s ease;
}

.elo-table tbody tr:hover {
  background: var(--bg-hover);
}

.elo-table tbody tr.rank-1 {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.11) 0%, transparent 45%);
}

.elo-table tbody tr.rank-2 {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, transparent 45%);
}

.elo-table tbody tr.rank-3 {
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.11) 0%, transparent 45%);
}

.elo-table td {
  padding: 10px 14px;
  vertical-align: middle;
}

/* Rank Badge */
.elo-table th[data-sort="rank"],
.elo-table td.rank-cell {
  width: 74px;
  white-space: nowrap;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.elo-table td.rank-cell .rank-badge {
  width: 54px;
  padding: 0 6px;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  line-height: 1;
}

.rank-num {
  display: inline-block;
  line-height: 1;
}

.rank-1 .rank-badge {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.rank-2 .rank-badge {
  background: rgba(203, 213, 225, 0.18);
  color: #e2e8f0;
  border: 1px solid rgba(203, 213, 225, 0.35);
}

.rank-3 .rank-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fdba74;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

/* Player Cell */
.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skin-thumb-box {
  position: relative;
  width: 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skin-thumb-box img {
  height: 42px;
  width: auto;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--bg-card-solid);
}

.player-meta {
  min-width: 0;
}

.player-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.player-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.player-sub-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Small Badges */
.tag-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tag-chip.host {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tag-chip.neu {
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
}

.twitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(145, 70, 255, 0.22);
  border: 1px solid rgba(145, 70, 255, 0.45);
  color: #d8b4fe;
  font-size: 0.67rem;
  font-weight: 700;
  text-decoration: none;
}

.twitch-badge:hover {
  background: rgba(145, 70, 255, 0.38);
}

/* Elo & Delta Display */
.elo-cell-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.elo-number {
  font-size: 1.04rem;
  font-weight: 800;
}

.delta-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
}

.delta-pos {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.delta-neg {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.delta-zero {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

/* Tier Badges */
.tier-pill {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.tier-boss {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tier-warlord {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.36);
}

.tier-gladiator {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.36);
}

.tier-contender {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.tier-battered {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

.tier-prey {
  background: rgba(127, 29, 29, 0.32);
  color: #fca5a5;
}

.sparkline-svg {
  display: block;
  margin: 0 auto;
}

.streak-hot {
  color: #fb923c;
  font-weight: 700;
}

/* Timeline / Kill Feed */
.timeline-toolbar {
  justify-content: flex-start;
  gap: 18px;
}

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

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.select-ctrl {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #0b0f18;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.select-ctrl:focus {
  border-color: var(--accent-orange);
}

.select-lg {
  min-width: 240px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-summary {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kill-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease;
}

.timeline-day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 4px;
}

.timeline-day-divider:first-child {
  margin-top: 2px;
}

.timeline-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.42);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-day-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.35), rgba(255, 255, 255, 0.06));
}

.timeline-day-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.kill-card-top {
  display: grid;
  grid-template-columns: 188px 1fr auto;
  align-items: center;
  gap: 16px;
}

.kill-card:hover {
  border-color: var(--border-strong);
}

.kill-card.pve-card {
  background: rgba(15, 19, 29, 0.58);
  border-left: 3px solid #64748b;
}

.kill-card.pvp-card {
  border-left: 3px solid var(--accent-red);
}

.kill-meta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kill-meta-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.kill-ago {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.kill-num-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  white-space: nowrap;
}

.pve-num-badge {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

.kill-datetime-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.kill-clock {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.kill-uhr {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

.kill-date {
  font-size: 0.79rem;
  font-weight: 700;
  color: #fcd34d;
  line-height: 1.25;
  white-space: nowrap;
}

.kill-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.kill-matchup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fighter-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease;
}

.fighter-chip:hover {
  background: rgba(255, 255, 255, 0.09);
}

.fighter-chip img {
  height: 32px;
  width: auto;
}

.fighter-elo-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.kill-verb {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.kill-badges-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.damped-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Charts Panel */
.chart-section-card {
  padding: 22px;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.section-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chart-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 430px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 16px;
}

.chart-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  background: rgba(10, 13, 21, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.78rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  max-width: 280px;
}

.chart-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.player-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
}

.player-chip-toggle.selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
}

.chip-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Rivalries & 1v1 Simulator */
.simulator-card {
  padding: 22px;
  margin-bottom: 18px;
}

.matchup-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.vs-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.matchup-result-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.matchup-duel-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 18px;
}

.duelist-box {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.duelist-box.right {
  flex-direction: row-reverse;
  text-align: right;
}

.duelist-box img {
  height: 78px;
  width: auto;
}

.prob-bar-wrap {
  width: 100%;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.prob-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #1e293b;
}

.prob-fill-a {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.prob-fill-b {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.stakes-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.subpanel-card {
  padding: 20px;
}

.rivalry-list,
.upset-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rivalry-item,
.upset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.rivalry-item:hover,
.upset-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--border-strong);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#playerModalBackdrop {
  z-index: 100;
}

#rulesModalBackdrop {
  z-index: 110;
}

#reportModalBackdrop {
  z-index: 115;
}

#videoModalBackdrop {
  z-index: 200;
}

#legalModalBackdrop {
  z-index: 250;
}

.hidden {
  display: none !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  background: #0e131f;
  border: 1px solid var(--border-strong);
}

.modal-lg {
  max-width: 960px;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
}

.modal-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.modal-skin-stage {
  width: 84px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);
  border-radius: 12px;
}

.modal-skin-stage img {
  height: 120px;
  width: auto;
}

.modal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mini-stat-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
}

.mini-stat-label {
  font-size: 0.73rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mini-stat-val {
  font-size: 1.18rem;
  font-weight: 800;
  margin-top: 3px;
}

.modal-chart-box {
  height: 230px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 18px;
  position: relative;
}

.modal-chart-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.nemesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.nemesis-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Rules Modal */
.rules-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.rule-block {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.rule-block h4 {
  margin: 0 0 6px;
  color: #fb923c;
}

.rule-block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.formula-box {
  margin: 8px 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #fcd34d;
  font-size: 0.85rem;
}

.rules-list {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.83rem;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: #141c2e;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
}

.empty-cell {
  text-align: center;
  padding: 36px !important;
  color: var(--text-muted);
}

/* Dual-POV Video Thumbnail Strip on Kill Cards */
.pov-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.pov-strip.single-pov-strip {
  grid-template-columns: minmax(240px, 420px);
}

.pov-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(8, 11, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pov-card.pov-playable {
  cursor: pointer;
}

.pov-card.pov-playable:hover {
  border-color: rgba(145, 70, 255, 0.55);
  background: rgba(145, 70, 255, 0.09);
}

.pov-card.pov-unavailable {
  opacity: 0.62;
}

.pov-thumb-wrap {
  position: relative;
  width: 124px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pov-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.pov-card.pov-playable:hover .pov-thumb-wrap img {
  transform: scale(1.05);
}

.pov-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.58) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pov-play-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(145, 70, 255, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.pov-time-tag {
  position: absolute;
  bottom: 4px;
  right: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(5, 7, 12, 0.88);
  color: #f8fafc;
  font-size: 0.63rem;
  font-weight: 700;
}

.pov-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pov-role-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-killer {
  color: #34d399;
}

.role-victim {
  color: #f87171;
}

.pov-player-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pov-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pov-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(145, 70, 255, 0.2);
  border: 1px solid rgba(145, 70, 255, 0.42);
  color: #e9d5ff;
}

.pov-ext-link:hover {
  background: rgba(145, 70, 255, 0.36);
}

.pov-clip-link {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.pov-clip-link:hover {
  background: rgba(245, 158, 11, 0.32);
}

.dual-pov-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(145, 70, 255, 0.5);
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.26), rgba(239, 68, 68, 0.22));
  color: #f3e8ff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease;
}

.dual-pov-btn:hover {
  border-color: #c084fc;
  transform: translateY(-1px);
}

/* Dual-POV Cinema Modal */
.modal-xl {
  max-width: 1240px;
}

.cinema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cinema-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share-dual-pov {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.btn-share-dual-pov:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-share-dual-pov.is-copied {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.cinema-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cinema-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.cinema-pane {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cinema-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.iframe-16x9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070c;
}

.iframe-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cinema-empty-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
  aspect-ratio: 16 / 9;
  color: var(--text-muted);
}

/* Resilient Twitch Player Footer & Notice */
.cinema-player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.cinema-player-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  max-width: 580px;
}

.cinema-player-hint .hint-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.cinema-player-hint em {
  color: #f87171;
  font-style: normal;
  font-weight: 600;
}

.cinema-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-twitch-direct {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(145, 70, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-twitch-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(145, 70, 255, 0.55);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .cinema-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cinema-player-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .cinema-player-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1140px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1060px) {
  .two-col-grid,
  .matchup-duel-grid,
  .cinema-grid {
    grid-template-columns: 1fr;
  }
  .duelist-box.right {
    flex-direction: row;
    text-align: left;
  }
  .hide-lg {
    display: none;
  }
}

@media (max-width: 820px) {
  .top-kills-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .kpi-grid.kpi-grid-3 {
    grid-template-columns: 1fr;
  }
  .pov-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .kpi-grid,
  .modal-stat-grid,
  .nemesis-grid {
    grid-template-columns: 1fr;
  }
  .kill-card-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kill-badges-right {
    align-items: flex-start;
  }
  .hide-md {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-actions {
    gap: 8px;
  }
  .btn-donate {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
}

@media (max-width: 540px) {
  .hide-sm {
    display: none;
  }
}

/* Compact Inline Leaderboard Latest-Kill Thumbnail & Link (zero row inflation) */
.elo-table td.mini-kill-cell {
  padding-top: 6px;
  padding-bottom: 6px;
  white-space: nowrap;
}

.mini-kill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 2px 9px 2px 2px;
  border-radius: 7px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(15, 18, 30, 0.72);
  color: var(--text-main);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.mini-kill-btn:hover {
  border-color: rgba(192, 132, 252, 0.75);
  background: rgba(145, 70, 255, 0.16);
  transform: translateY(-1px);
}

.mini-kill-btn.is-death {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(15, 18, 28, 0.5);
}

.mini-kill-btn.is-death:hover {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.mini-kill-thumb {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 5px;
  overflow: hidden;
  background: #0d101b;
  flex-shrink: 0;
}

.mini-kill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-kill-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(15, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  font-size: 0.52rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mini-kill-btn:hover .mini-kill-play {
  background: #9146ff;
  border-color: #d8b4fe;
  transform: translate(-50%, -50%) scale(1.1);
}

.mini-kill-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(10, 12, 20, 0.86);
  color: #e9d5ff;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.mini-kill-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-width: 0;
  max-width: 112px;
  line-height: 1.15;
}

.mini-kill-opp {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-kill-sub {
  font-size: 0.64rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.mini-kill-sub.pos {
  color: #34d399;
}

.mini-kill-sub.neg {
  color: #f87171;
}

.leader-kill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(145, 70, 255, 0.18);
  color: #e9d5ff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.leader-kill-chip:hover {
  background: rgba(145, 70, 255, 0.34);
  border-color: #d8b4fe;
}

@media (max-width: 640px) {
  .mini-kill-meta {
    display: none;
  }
  .mini-kill-btn {
    padding: 2px;
  }
}

/* Nerfed Streamer Figures & Handicap Badges (Hugo, Nooreax, Fabo) */
.elo-table tbody tr.row-nerfed .skin-thumb-box {
  width: 34px;
  height: 48px;
  margin: -2px 0;
}

.elo-table tbody tr.row-nerfed .skin-thumb-box img {
  height: 48px;
}

.nerfed-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #fde68a;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.16);
  white-space: nowrap;
}

.nerfed-sub-note {
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
}

.modal-skin-stage.is-nerfed-stage {
  width: 92px;
  height: 144px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.22),
    rgba(239, 68, 68, 0.08) 55%,
    transparent 75%
  );
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.modal-skin-stage.is-nerfed-stage img {
  height: 132px;
}

/* PvE Deaths VOD Gallery (Tab 2B) */
.pve-vods-toolbar {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.pve-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pve-toolbar-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pve-vods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
  gap: 14px;
}

.pve-empty-card {
  grid-column: 1 / -1;
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
}

.pve-vod-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 21, 35, 0.86);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pve-vod-card.is-playable:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.pve-vod-card.is-offline {
  opacity: 0.78;
}

.pve-vod-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pve-vod-card.is-playable .pve-vod-thumb {
  cursor: pointer;
}

.pve-vod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

.pve-vod-card.is-playable:hover .pve-vod-thumb img {
  transform: scale(1.045);
}

.pve-vod-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 16, 0.65) 0%,
    rgba(6, 9, 16, 0.08) 42%,
    rgba(6, 9, 16, 0.12) 60%,
    rgba(6, 9, 16, 0.78) 100%
  );
}

.pve-thumb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pve-cause-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
}

.pve-cause-chip.cause-mob {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.pve-cause-chip.cause-fall {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.52);
  color: #bae6fd;
}

.pve-cause-chip.cause-creeper {
  background: rgba(132, 204, 22, 0.26);
  border-color: rgba(163, 230, 53, 0.58);
  color: #d9f99d;
}

.pve-cause-chip.cause-fire {
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(251, 146, 60, 0.6);
  color: #fed7aa;
}

.pve-cause-chip.cause-water {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.56);
  color: #e0e7ff;
}

.pve-src-chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(10, 12, 20, 0.84);
  border: 1px solid rgba(168, 85, 247, 0.38);
  color: #e9d5ff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.pve-vod-play {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(145, 70, 255, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, background 0.18s ease;
}

.pve-vod-card.is-playable:hover .pve-vod-play {
  transform: scale(1.1);
  background: #a855f7;
}

.pve-thumb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pve-ago-tag,
.pve-ts-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(8, 11, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.69rem;
  font-weight: 600;
}

.pve-ts-tag {
  color: #f3e8ff;
  border-color: rgba(168, 85, 247, 0.35);
}

.pve-vod-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 13px 13px;
  flex: 1;
}

.pve-vod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pve-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
  padding: 3px 6px 3px 3px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.pve-player-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pve-player-chip img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.pve-player-chip img.is-nerfed-skin {
  height: 40px;
}

.pve-player-meta {
  min-width: 0;
}

.pve-player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pve-player-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.pve-live-dot {
  color: #c084fc;
  font-size: 0.68rem;
  font-weight: 700;
}

.pve-player-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.pve-vod-cause {
  font-size: 0.85rem;
  line-height: 1.38;
  color: #cbd5e1;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.pve-vod-cause strong {
  color: #f8fafc;
}

.pve-clip-title {
  font-size: 0.76rem;
  color: #d8b4fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pve-vod-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pve-vod-dt {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.pve-vod-links {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pve-play-inline {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.48);
  background: rgba(145, 70, 255, 0.22);
  color: #f3e8ff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pve-play-inline:hover {
  background: rgba(145, 70, 255, 0.4);
  border-color: #d8b4fe;
}

/* Streamer Profile: "Never Killed By This Player" Section */
.unhunted-section {
  margin-bottom: 20px;
  padding: 14px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid var(--border-subtle);
}

.unhunted-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.unhunted-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.unhunted-progress-box {
  min-width: 175px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.unhunted-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.unhunted-progress-text strong {
  color: #34d399;
}

.unhunted-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.unhunted-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  transition: width 0.25s ease;
}

.unhunted-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.unhunted-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid var(--border-subtle);
  flex: 1 1 170px;
  max-width: 240px;
}

.unhunted-search-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
}

.unhunted-sort-select {
  margin-left: auto;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.unhunted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
  gap: 8px;
  max-height: 332px;
  overflow-y: auto;
  padding-right: 3px;
}

.unhunted-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(11, 15, 26, 0.8);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.unhunted-card:hover {
  border-color: rgba(249, 115, 22, 0.48);
  background: rgba(249, 115, 22, 0.09);
  transform: translateY(-1px);
}

.unhunted-card.is-revenge {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.07);
}

.unhunted-card.is-revenge:hover {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(239, 68, 68, 0.13);
}

.unhunted-skin-wrap {
  position: relative;
  width: 26px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unhunted-skin-wrap img {
  height: 34px;
  width: auto;
}

.unhunted-info {
  min-width: 0;
  flex: 1;
}

.unhunted-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.unhunted-rank {
  font-size: 0.71rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.unhunted-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unhunted-live {
  font-size: 0.64rem;
  flex-shrink: 0;
}

.unhunted-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.unhunted-gain {
  color: #34d399;
  font-weight: 700;
}

.unhunted-revenge {
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: auto;
}

.unhunted-empty,
.unhunted-complete {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
}

.unhunted-complete {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

/* OBS Overlay Configurator (Tab 5) & Profile Jump Chip */
.obs-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.16);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.obs-jump-chip:hover {
  background: rgba(14, 165, 233, 0.32);
  border-color: #7dd3fc;
}

.obs-layout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 960px) {
  .obs-layout-grid {
    grid-template-columns: 1fr;
  }
}

.obs-config-card,
.obs-preview-card {
  padding: 22px;
}

.obs-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.obs-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.obs-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .obs-two-cols {
    grid-template-columns: 1fr;
  }
}

.obs-toggles-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.obs-url-box {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(6, 9, 16, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.obs-url-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.obs-size-rec {
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 700;
}

.obs-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.obs-url-input {
  flex: 1 1 240px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 0.8rem;
  outline: none;
}

.obs-steps {
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.obs-steps strong {
  color: var(--text-main);
}

.obs-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.obs-preview-stage {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background-color: #161b26;
  background-image:
    linear-gradient(45deg, #1f2636 25%, transparent 25%),
    linear-gradient(-45deg, #1f2636 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2636 75%),
    linear-gradient(-45deg, transparent 75%, #1f2636 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.obs-preview-stage.bg-sky {
  background-image: linear-gradient(180deg, #60a5fa 0%, #93c5fd 60%, #86efac 100%);
}

.obs-preview-stage.bg-cave {
  background-image: radial-gradient(circle at 30% 30%, #1e293b 0%, #090d16 80%);
}

.obs-preview-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent !important;
  background-color: transparent !important;
  color-scheme: dark;
}

.obs-bg-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* German Legal Footer, Impressum/Datenschutz Modal & 2-Click Twitch Consent Gate */
.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 0.77rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 720px;
  line-height: 1.45;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.footer-legal-links a,
.footer-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-legal-links a:hover,
.footer-link-btn:hover {
  color: #f8fafc;
  text-decoration: underline;
}

.legal-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-right: 42px;
}

.legal-setup-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.legal-modal-body a {
  color: #c084fc;
}

.privacy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.cinema-consent-gate {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
  padding: 22px 26px;
  background: radial-gradient(circle at 50% 25%, rgba(145, 70, 255, 0.16), rgba(8, 11, 18, 0.96) 75%);
  border-top: 1px solid var(--border-subtle);
}

.consent-gate-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.consent-gate-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.consent-gate-text {
  margin: 0;
  max-width: 520px;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text-muted);
}

.consent-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: #cbd5e1;
  cursor: pointer;
}

.consent-gate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* Compact 1-Line OBS Overlay Bar inside Player Profile Modal */
.modal-obs-promo {
  margin: 10px 0 12px;
  padding: 6px 12px;
  border-radius: 10px;
  position: relative;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modal-obs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  flex-wrap: wrap;
}

.modal-obs-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.modal-obs-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.modal-obs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseGlow 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.modal-obs-style-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.modal-obs-style-pills .pill {
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.modal-obs-style-pills .pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fafc;
}

.modal-obs-style-pills .pill.active {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.obs-dim-badge {
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.modal-obs-style-pills .pill.active .obs-dim-badge {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.3);
}

.modal-obs-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-obs-preview-toggle {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-obs-preview-toggle:hover,
.btn-obs-preview-toggle.is-active {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.7);
  color: #ffffff;
}

.btn-obs-cta {
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(125, 211, 252, 0.65);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.77rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btn-obs-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.45);
}

.btn-obs-cta.is-copied {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: rgba(110, 231, 183, 0.75);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.btn-obs-config-mini {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-obs-config-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

/* Floating Live-Vorschau Popover */
.modal-obs-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.2);
  animation: popoverFadeIn 0.18s ease-out;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-obs-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.76rem;
  color: #7dd3fc;
  font-weight: 700;
}

.modal-obs-popover-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-obs-popover-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 5px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.modal-obs-popover-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.modal-obs-preview-box {
  width: 100%;
  min-height: 155px;
  height: 155px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #131823;
  background-image:
    linear-gradient(45deg, #1c2434 25%, transparent 25%),
    linear-gradient(-45deg, #1c2434 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1c2434 75%),
    linear-gradient(-45deg, transparent 75%, #1c2434 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.modal-obs-live-iframe {
  max-width: 100%;
  border: none;
  background: transparent !important;
  background-color: transparent !important;
  color-scheme: dark;
  display: block;
  transition: width 0.18s ease, height 0.18s ease;
}

.modal-obs-pulse-btn {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  transition: all 0.15s ease;
}

.modal-obs-pulse-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

@media (max-width: 720px) {
  .obs-dim-badge {
    display: none;
  }
  .modal-obs-bar {
    gap: 6px;
  }
  .modal-obs-bar-left {
    gap: 6px;
  }
  .btn-obs-preview-toggle,
  .btn-obs-cta {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
}

/* Dossier VODs Section & Expand/Collapse Toggle */
.dossier-vods-section {
  margin: 16px 0 20px;
}

.dossier-vods-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.dossier-vods-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dossier-vods-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.dossier-vods-toggle-btn:active {
  transform: translateY(0);
}

/* Report Issue Button & Modal */
.btn-report {
  color: var(--text-main);
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
}

.btn-report:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.btn-report .btn-text-short {
  display: none;
}

.report-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin: 16px 0;
}

.report-email-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.report-checklist {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .btn-report {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .btn-report .btn-text-full {
    display: none;
  }
  .btn-report .btn-text-short {
    display: inline;
  }
}

