/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Pitch black palette */
  --bg:          #000000;
  --surface:     #0a0a0a;
  --surface2:    #111111;
  --surface3:    #1a1a1a;
  --surface4:    #222222;

  /* Glass */
  --glass:       rgba(255,255,255,0.04);
  --glass-hi:    rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.07);
  --glass-border-hi: rgba(255,255,255,0.14);

  /* YouTube red accent */
  --yt-red:      #FF0000;
  --yt-red-dim:  rgba(255,0,0,0.15);
  --yt-red-glow: rgba(255,0,0,0.25);

  /* Status */
  --live:        #00e676;
  --dead:        #ff3d57;

  /* Text */
  --text:        #f5f5f5;
  --text-2:      #888888;
  --text-3:      #444444;
  --text-4:      #2a2a2a;

  /* Layout */
  --sidebar-w:   300px;
  --header-h:    56px;
  --footer-h:    36px;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   FIX 2: YOUTUBE-STYLE RED LOADING BAR (top of page)
═══════════════════════════════════════════════════════════════ */
#yt-loadbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--yt-red);
  z-index: 99999;
  transition: width 0.2s ease, opacity 0.4s ease;
  box-shadow: 0 0 8px 1px var(--yt-red), 0 0 20px 2px rgba(255,0,0,0.4);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}
#yt-loadbar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 80px;
  height: 7px;
  background: radial-gradient(ellipse at right, rgba(255,0,0,0.6) 0%, transparent 70%);
  border-radius: 50%;
}
#yt-loadbar.done {
  width: 100% !important;
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FIX 3: GLOWING YOUTUBE-STYLE T ICON
═══════════════════════════════════════════════════════════════ */
.yt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yt-red);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  /* Glow effect */
  box-shadow:
    0 0 8px 2px rgba(255,0,0,0.55),
    0 0 20px 4px rgba(255,0,0,0.25),
    0 0 40px 8px rgba(255,0,0,0.10);
  animation: icon-glow-pulse 2.8s ease-in-out infinite;
}

@keyframes icon-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 8px 2px rgba(255,0,0,0.55),
      0 0 20px 4px rgba(255,0,0,0.25),
      0 0 40px 8px rgba(255,0,0,0.10);
  }
  50% {
    box-shadow:
      0 0 14px 4px rgba(255,0,0,0.85),
      0 0 32px 8px rgba(255,0,0,0.45),
      0 0 60px 16px rgba(255,0,0,0.20);
  }
}

.yt-icon span {
  font-family: 'Bebas Neue', sans-serif;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0;
  display: block;
  position: relative;
  top: 0px;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Header logo size */
.logo .yt-icon {
  width: 34px;
  height: 24px;
  border-radius: 6px;
}
.logo .yt-icon span { font-size: 17px; }

/* Modal size */
.modal-yt {
  width: 56px;
  height: 40px;
  border-radius: 10px;
}
.modal-yt span { font-size: 28px; }

/* Spinner size */
.spinner-icon {
  width: 48px;
  height: 34px;
  border-radius: 9px;
  animation: icon-glow-pulse 2.8s ease-in-out infinite, pulse-icon 1.4s ease-in-out infinite;
}
.spinner-icon span { font-size: 22px; }

/* Footer size */
.footer-icon {
  width: 22px;
  height: 16px;
  border-radius: 4px;
}
.footer-icon span { font-size: 11px; }

@keyframes pulse-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(0.92); }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
header {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(0px);
}

header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
}
.logo-wordmark em {
  color: var(--yt-red);
  font-style: normal;
}

.search-wrap {
  flex: 1;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap svg {
  position: absolute;
  left: 11px;
  color: var(--text-3);
  pointer-events: none;
}
#search {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px 8px 34px;
  color: var(--text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
#search:focus {
  border-color: var(--glass-border-hi);
  background: var(--glass-hi);
}
#search::placeholder { color: var(--text-3); }

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,0,0,0.12);
  border: 1px solid rgba(255,0,0,0.22);
  color: var(--yt-red);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yt-red);
  display: inline-block;
  animation: pulse-live 1.5s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(255,0,0,0); }
}

.visitor-pill {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── MAIN ───────────────────────────────────────────────────── */
.main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   FIX 1: SIDEBAR CHANNEL LIST SCROLLING
   sidebar must be a flex column with fixed height so channel-list
   can flex:1 + overflow-y:auto inside it.
═══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  /* Key fix: constrain height so inner flex children can scroll */
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.cat-scroll {
  padding: 0 10px;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-tabs {
  display: flex;
  gap: 0;
  min-width: max-content;
}

.cat-tab {
  padding: 12px 11px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  user-select: none;
}
.cat-tab:hover { color: var(--text-2); }
.cat-tab.active {
  color: var(--yt-red);
  border-bottom-color: var(--yt-red);
}

/* List header */
.list-header {
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: var(--surface2);
  flex-shrink: 0;
}
.list-header-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.list-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.badge-green {
  color: var(--live);
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.18);
}
.badge-red {
  color: var(--dead);
  background: rgba(255,61,87,0.08);
  border: 1px solid rgba(255,61,87,0.18);
}
.badge-accent {
  color: var(--yt-red);
  background: var(--yt-red-dim);
  border: 1px solid rgba(255,0,0,0.2);
}

/* FIX 1 continued: channel-list takes remaining space and scrolls */
.channel-list {
  flex: 1;
  min-height: 0;          /* critical — allows flex child to shrink below content size */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px 6px;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}
.channel-list::-webkit-scrollbar { width: 3px; }
.channel-list::-webkit-scrollbar-track { background: transparent; }
.channel-list::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 2px; }
.channel-list::-webkit-scrollbar-thumb:hover { background: var(--surface3); }

/* Channel item */
.ch-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.1s;
  margin-bottom: 1px;
  position: relative;
  border: 1px solid transparent;
}
.ch-item:hover { background: var(--glass); }
.ch-item.active {
  background: var(--glass-hi);
  border-color: rgba(255,0,0,0.12);
}
.ch-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px;
  background: var(--yt-red);
  border-radius: 3px;
}

.ch-num {
  font-size: 9.5px;
  color: var(--text-4);
  width: 16px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.ch-item.active .ch-num { color: var(--text-3); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}
.status-dot.live    { background: var(--live); box-shadow: 0 0 5px rgba(0,230,118,0.5); }
.status-dot.dead    { background: var(--dead); }
.status-dot.checking { background: #f0b429; animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ch-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--surface3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text-3);
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ch-logo img { width:100%; height:100%; object-fit:cover; border-radius:5px; }
.ch-item.active .ch-logo { border-color: rgba(255,0,0,0.2); }

.ch-info { flex: 1; min-width: 0; }
.ch-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.ch-cat {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ch-item.active .ch-cat { color: var(--text-2); }

.ch-arrow {
  color: var(--text-4);
  flex-shrink: 0;
  transition: color 0.12s, transform 0.12s;
}
.ch-item:hover .ch-arrow { color: var(--text-3); transform: translateX(2px); }
.ch-item.active .ch-arrow { color: var(--yt-red); transform: translateX(2px); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  gap: 10px;
  color: var(--text-4);
}
.empty-state svg { width:32px; height:32px; opacity:0.25; }
.empty-state p { font-size: 12px; color: var(--text-3); }

/* ─── PLAYER SECTION ─────────────────────────────────────────── */
.player-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

.player-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
  min-height: 0;
  overflow: hidden;
}

.video-card {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--glass-border),
    0 20px 60px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.04);
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 100%;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  pointer-events: none;
  z-index: 5;
}

/* Overlay */
.v-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.yt-spinner { }
.loading-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* HUD */
.hud {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 20;
  pointer-events: none;
}
.hud-live {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,0,0,0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  padding: 3.5px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.hud-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-live 1s infinite;
}
.hud-name {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Now playing */
.now-playing {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
}
.np-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 7px rgba(0,230,118,0.6);
  flex-shrink: 0;
  animation: pulse-live 1.6s ease-in-out infinite;
}
.np-info { flex: 1; min-width: 0; }
.np-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 1px;
}
.np-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-status {
  font-size: 10.5px;
  color: var(--text-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.np-status.on-air { color: var(--live); font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  height: var(--footer-h);
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
footer em { color: var(--yt-red); font-style: normal; }

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity:0; } }

.modal {
  background: var(--surface2);
  border: 1px solid var(--glass-border-hi);
  border-radius: 18px;
  padding: 32px 28px 26px;
  max-width: 440px;
  width: 100%;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: slide-up 0.28s cubic-bezier(0.16,1,0.3,1);
  text-align: center;
}
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } }

.modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 12px;
}
.modal-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 22px;
}
.modal-author {
  display: block;
  margin-top: 8px;
  color: var(--yt-red);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.modal-btn {
  width: 100%;
  padding: 13px;
  background: var(--yt-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-transform: uppercase;
}
.modal-btn:hover { opacity: 0.9; }
.modal-btn:active { transform: scale(0.99); }

/* ─── GESTURE ────────────────────────────────────────────────── */
#gestureHint {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border-hi);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 9px;
  z-index: 9000;
  pointer-events: none;
}
#brightnessLayer {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 8999;
}

/* ─── MOBILE BELOW ───────────────────────────────────────────── */
.mobile-below { display: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 100%;
    --header-h: 50px;
  }

  .sidebar { display: none !important; }

  .main {
    flex-direction: column;
    overflow: visible;
    min-height: 0;
    flex-shrink: 0;
  }

  .player-section {
    width: 100%;
    flex-shrink: 0;
  }

  .player-wrap { padding: 8px; }

  .mobile-below {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--glass-border);
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .mobile-cat-scroll {
    padding: 0 10px;
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  .mobile-cat-scroll::-webkit-scrollbar { display: none; }

  .mobile-cat-tabs {
    display: flex;
    gap: 0;
    padding: 4px 0;
    min-width: max-content;
  }

  .mobile-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    background: var(--surface2);
  }

  /* FIX 1 mobile: channel list must also scroll */
  .mobile-channel-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 6px;
  }
  .mobile-channel-list::-webkit-scrollbar { width: 2px; }
  .mobile-channel-list::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 2px; }

  /* Hide some header elements on mobile */
  .badge-live { display: none; }
  .search-wrap { max-width: none; }
  .now-playing { padding: 7px 10px; }

  .logo-wordmark { font-size: 17px; }
  .logo .yt-icon { width: 28px; height: 20px; }
  .logo .yt-icon span { font-size: 14px; }

  footer { display: none; }
}

/* Body layout for desktop: flex column filling full viewport */
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

header { flex-shrink: 0; }
.main { flex: 1; min-height: 0; overflow: hidden; }
footer { flex-shrink: 0; }

@media (max-width: 768px) {
  /* Keep body as a fixed full-height flex column — NO overflow-y:auto.
     That was the root cause: page-level scroll was eating the inner scroll. */
  body {
    overflow: hidden;
    height: 100dvh;
  }
  /* main shrinks to fit the video; mobile-below takes the rest */
  .main { overflow: hidden; flex-shrink: 0; }
  /* mobile-below fills all remaining space below the video */
  .mobile-below {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  /* channel list inside it scrolls freely */
  .mobile-channel-list {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Latency Badge ──────────────────────────────────────────── */
.ch-latency {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.lat-fast  { color: #00e676; background: rgba(0,230,118,0.10); border: 1px solid rgba(0,230,118,0.20); }
.lat-ok    { color: #f0b429; background: rgba(240,180,41,0.10); border: 1px solid rgba(240,180,41,0.20); }
.lat-slow  { color: #ff6b6b; background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.20); }

/* ── FIFA World Cup 2026 badge ── */
.wc-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; background: linear-gradient(90deg,#1a6e2e,#2ea043);
  border: 1px solid rgba(46,160,67,0.6);
  border-radius: 4px; padding: 1px 5px; margin-left: 5px;
  vertical-align: middle; white-space: nowrap;
  box-shadow: 0 0 6px rgba(46,160,67,0.4);
  animation: wc-pulse 2.5s ease-in-out infinite;
}
@keyframes wc-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(46,160,67,0.4); }
  50%      { box-shadow: 0 0 10px rgba(46,160,67,0.8); }
}
