/* ══ Flux Player v2.0 — Integrated CSS ══ */

:root {
  --fx-bg: #08080c;
  --fx-surface: #0e0e14;
  --fx-surface2: #15151f;
  --fx-surface3: #1c1c2a;
  --fx-border: rgba(255,255,255,0.06);
  --fx-border2: rgba(255,255,255,0.1);
  --fx-text: #e8e8ef;
  --fx-text2: #8888a0;
  --fx-text3: #55556a;
  --fx-accent: #ff4d2d;
  --fx-accent-glow: rgba(255,77,45,0.35);
  --fx-accent2: #ff7a5c;
  --fx-glass: rgba(12,12,20,0.82);
  --fx-glass2: rgba(20,20,32,0.75);
  --fx-radius: 12px;
  --fx-font: 'Outfit', sans-serif;
  --fx-mono: 'JetBrains Mono', monospace;
  --fx-multi: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans Devanagari', 'Noto Sans Thai', sans-serif;
}

/* === PLAYER === */
.fx-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}
.fx-player video {
  width: 100%; height: 100%;
  display: block; object-fit: contain;
  position: relative; z-index: 1;
}
/* Backdrop image behind video before playback starts */
.fx-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(.2) blur(8px);
  transition: opacity .6s ease;
}
.fx-backdrop.hidden { opacity: 0; pointer-events: none; }

/* Hide native captions */
.fx-player video::cue { opacity: 0 !important; color: transparent !important; background: transparent !important; }

/* === CUSTOM SUBTITLE OVERLAY === */
.sub-overlay {
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
  z-index: 8;
  display: flex;
  justify-content: center;
  padding: 0 5%;
  transition: bottom 0.15s, top 0.15s;
}
.sub-overlay-text {
  text-align: center;
  padding: 5px 14px;
  border-radius: 4px;
  line-height: 1.45;
  max-width: 90%;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-family: var(--fx-multi);
}

/* === GRADIENT === */
.fx-player .gradient-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.92));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.fx-player .gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(rgba(0,0,0,0.5), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.fx-player:hover .gradient-bottom,
.fx-player:hover .gradient-top,
.fx-player.paused .gradient-bottom,
.fx-player.paused .gradient-top,
.fx-player.controls-visible .gradient-bottom,
.fx-player.controls-visible .gradient-top { opacity: 1; }

/* === TOP BAR === */
.fx-player .top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.fx-player:hover .top-bar,
.fx-player.paused .top-bar,
.fx-player.controls-visible .top-bar { opacity: 1; }

.top-bar-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.top-bar-badge {
  margin-left: auto;
  font-family: var(--fx-mono);
  font-size: 10px;
  color: var(--fx-accent);
  padding: 2px 8px;
  border: 1px solid rgba(255,77,45,0.3);
  border-radius: 4px;
  background: rgba(255,77,45,0.08);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* === BIG PLAY === */
.big-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,77,45,0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,77,45,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 5;
}
.big-play svg { margin-left: 4px; filter: drop-shadow(0 2px 8px rgba(255,77,45,0.5)); }
.fx-player.paused .big-play { opacity: 1; pointer-events: auto; }
.big-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255,77,45,0.25);
  box-shadow: 0 0 40px rgba(255,77,45,0.2);
}

/* === CONTROLS BAR === */
.controls-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 18px 14px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.fx-player:hover .controls-bar,
.fx-player.paused .controls-bar,
.fx-player.controls-visible .controls-bar {
  opacity: 1;
  pointer-events: auto;
}

/* === PROGRESS === */
.progress-container {
  width: 100%; height: 24px;
  display: flex; align-items: center;
  cursor: pointer; margin-bottom: 8px;
  position: relative;
}
.progress-track {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  transition: height 0.2s;
}
.progress-container:hover .progress-track { height: 5px; }
.progress-buffered {
  position: absolute; top: 0; left: 0;
  height: 100%; background: rgba(255,255,255,0.12);
  border-radius: 3px; pointer-events: none;
}
.progress-filled {
  position: absolute; top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent2));
  border-radius: 3px; pointer-events: none;
}
.progress-thumb {
  position: absolute; top: 50%;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255,77,45,0.4), 0 2px 6px rgba(0,0,0,0.3);
}
.progress-container:hover .progress-thumb { opacity: 1; }
.progress-tooltip {
  position: absolute; bottom: 100%;
  transform: translateX(-50%);
  background: var(--fx-glass);
  backdrop-filter: blur(12px);
  color: #fff; font-family: var(--fx-mono);
  font-size: 11px; padding: 4px 10px;
  border-radius: 6px; border: 1px solid var(--fx-border);
  pointer-events: none; opacity: 0; margin-bottom: 10px;
  white-space: nowrap;
}
.progress-container:hover .progress-tooltip { opacity: 1; }

/* === AUDIO SYNC BAR === */
.ctl-audio-row {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 2px 6px;
}
.ctl-audio-row.active { display: flex; }
.ctl-audio-label {
  font-size: 10px;
  color: var(--fx-text3);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ctl-audio-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.ctl-audio-progress-fill {
  height: 100%;
  background: var(--fx-accent);
  border-radius: 3px;
  pointer-events: none;
  transition: none;
}
.ctl-audio-offset {
  font-size: 10px;
  color: var(--fx-text2);
  font-family: var(--fx-mono);
  min-width: 40px;
  text-align: right;
}

/* === CONTROLS ROW === */
.controls-row {
  display: flex; align-items: center; gap: 4px;
}
.ctrl-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer;
  padding: 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.ctrl-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.ctrl-btn:active { transform: scale(0.92); }
.ctrl-btn svg { width: 20px; height: 20px; }

.time-display {
  font-size: 12px; color: rgba(255,255,255,0.45);
  font-family: var(--fx-mono);
  font-variant-numeric: tabular-nums;
  padding: 0 6px; white-space: nowrap;
  letter-spacing: 0.3px;
}
.spacer { flex: 1; }

/* === VOLUME === */
.volume-group { display: flex; align-items: center; }
.volume-slider-wrap { width: 0; overflow: hidden; transition: width 0.3s ease; }
.volume-group:hover .volume-slider-wrap { width: 72px; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 66px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px; outline: none; margin-left: 4px;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: #fff; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* === DIVIDER === */
.ctrl-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
}

/* === MENUS === */
.menu-btn { position: relative; }
.menu-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px); right: 0;
  background: var(--fx-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--fx-border2);
  border-radius: 10px;
  min-width: 200px; max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 100; padding: 6px 0;
}
.menu-popup.open { display: block; }
.menu-popup::-webkit-scrollbar { width: 3px; }
.menu-popup::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.menu-header {
  padding: 10px 16px 6px; font-size: 9px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--fx-text3); font-weight: 600;
}
.menu-item {
  padding: 9px 16px; font-size: 13px;
  cursor: pointer; display: flex;
  align-items: center; gap: 10px;
  transition: all 0.15s; color: rgba(255,255,255,0.6);
  border-radius: 0;
}
.menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.menu-item.active { color: var(--fx-accent); }
.menu-item.active::before {
  content: ''; width: 5px; height: 5px;
  background: var(--fx-accent); border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--fx-accent-glow);
}
.menu-item:not(.active)::before {
  content: ''; width: 5px; height: 5px; flex-shrink: 0;
}
.ctrl-btn .badge {
  position: absolute; top: 3px; right: 3px;
  width: 5px; height: 5px;
  background: var(--fx-accent); border-radius: 50%; display: none;
  box-shadow: 0 0 6px var(--fx-accent-glow);
}
.ctrl-btn.has-badge .badge { display: block; }

/* === SUBTITLE APPEARANCE PANEL === */
.sub-appearance-panel {
  display: none;
  position: absolute;
  bottom: 60px; right: 18px;
  background: var(--fx-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--fx-border2);
  border-radius: 12px;
  width: 320px; max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  z-index: 110; padding: 18px;
}
.sub-appearance-panel.open { display: block; }
.sub-appearance-panel::-webkit-scrollbar { width: 3px; }
.sub-appearance-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.sub-panel-title {
  font-size: 13px; font-weight: 600; color: var(--fx-text);
  margin-bottom: 16px; letter-spacing: 0.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.sub-panel-reset {
  font-size: 10px; color: var(--fx-accent);
  cursor: pointer; background: none; border: none;
  font-family: var(--fx-font); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  transition: opacity 0.2s;
}
.sub-panel-reset:hover { opacity: 0.7; }

.sub-preview {
  background: #000; border-radius: 8px;
  padding: 22px 16px; margin-bottom: 16px;
  text-align: center; min-height: 64px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--fx-border);
}
.sub-preview-text {
  padding: 4px 10px; border-radius: 3px;
  transition: all 0.15s; line-height: 1.4;
  position: absolute;
}

.sub-field { margin-bottom: 14px; }
.sub-field-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--fx-text3);
  font-weight: 600; margin-bottom: 8px;
}
.sub-field select {
  width: 100%; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--fx-border2);
  background: var(--fx-surface2); color: var(--fx-text);
  font-size: 13px; font-family: var(--fx-font);
  cursor: pointer; outline: none; transition: border-color 0.2s;
}
.sub-field select:focus { border-color: var(--fx-accent); }
.sub-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px; outline: none;
}
.sub-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--fx-accent); border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 8px var(--fx-accent-glow);
}
.sub-range-row { display: flex; align-items: center; gap: 10px; }
.sub-range-row input { flex: 1; }
.sub-range-val {
  font-size: 11px; color: var(--fx-text2);
  min-width: 36px; text-align: right;
  font-family: var(--fx-mono);
}
.sub-color-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-color-swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.sub-color-swatch:hover { transform: scale(1.12); }
.sub-color-swatch.active { border-color: var(--fx-accent); box-shadow: 0 0 10px var(--fx-accent-glow); }

.sub-edge-row, .sub-align-row {
  display: flex; gap: 5px; flex-wrap: wrap;
}
.sub-edge-option, .sub-align-option {
  padding: 5px 11px; border-radius: 6px;
  border: 1px solid var(--fx-border2);
  background: var(--fx-surface); color: var(--fx-text2);
  font-size: 11px; cursor: pointer;
  transition: all 0.2s; font-family: var(--fx-font);
}
.sub-edge-option:hover, .sub-align-option:hover { border-color: rgba(255,255,255,0.15); color: var(--fx-text); }
.sub-edge-option.active, .sub-align-option.active { border-color: var(--fx-accent); color: var(--fx-accent); background: rgba(255,77,45,0.08); }

.sub-pos-visual {
  width: 100%; aspect-ratio: 16/9;
  background: var(--fx-surface); border: 1px solid var(--fx-border2);
  border-radius: 8px; position: relative;
  cursor: crosshair; margin-bottom: 4px;
  overflow: hidden;
}
.sub-pos-visual::before {
  content: ''; position: absolute;
  inset: 0; opacity: 0.3;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20% 20%;
}
.sub-pos-marker {
  position: absolute;
  width: 55%; height: 6px;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent2));
  border-radius: 3px;
  left: 50%; transform: translateX(-50%);
  pointer-events: none; transition: all 0.15s;
  box-shadow: 0 0 12px var(--fx-accent-glow);
}
.sub-pos-label {
  font-size: 9px; color: var(--fx-text3); text-align: center;
  margin-top: 2px; letter-spacing: 0.5px;
}

/* === FULLSCREEN === */
.player-wrap:fullscreen .fx-player { border-radius: 0; }
.player-wrap:fullscreen .fx-player video { height: 100%; }
.player-wrap:-webkit-full-screen .fx-player { border-radius: 0; }
.player-wrap:-webkit-full-screen .fx-player video { height: 100%; }

/* === SPINNER === */
.fx-player .spinner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.05);
  border-top-color: var(--fx-accent);
  border-radius: 50%;
  animation: fxSpin 0.7s linear infinite;
  opacity: 0; pointer-events: none; z-index: 4;
}
.fx-player.loading .spinner { opacity: 1; }
.fx-player.loading.paused .spinner { opacity: 0; }
@keyframes fxSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* === TOAST === */
.fx-player .fx-toast {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--fx-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--fx-border);
  color: #fff; font-size: 12px;
  font-weight: 500; letter-spacing: 0.3px;
  padding: 8px 18px; border-radius: 8px;
  opacity: 0; transition: all 0.3s;
  pointer-events: none; z-index: 20;
  white-space: nowrap;
}
.fx-player .fx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === KEYBOARD HINT === */
.keyboard-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px; font-weight: 700;
  color: rgba(255,255,255,0.15);
  pointer-events: none; z-index: 6;
  opacity: 0;
  transition: opacity 0.15s;
}
.keyboard-hint.flash {
  opacity: 1;
  animation: kbFlash 0.5s ease-out forwards;
}
@keyframes kbFlash {
  0% { opacity: 0.8; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.3); }
}

/* === SYNC MENU OFFSET DISPLAY === */
.menu-item .sync-val {
  margin-left: auto;
  font-family: var(--fx-mono);
  font-size: 10px;
  color: var(--fx-text3);
}
.menu-item.active .sync-val { color: var(--fx-accent); }

/* === FOCUS STATES (D-pad / TV navigation) === */
.ctrl-btn:focus-visible {
  color: #fff;
  background: rgba(255,77,45,0.2);
  outline: 2px solid var(--fx-accent);
  outline-offset: -2px;
  box-shadow: 0 0 0 3px var(--fx-accent-glow);
  border-radius: 8px;
}
.menu-item:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  box-shadow: inset 3px 0 0 var(--fx-accent);
}
.big-play:focus-visible {
  outline: 3px solid var(--fx-accent);
  outline-offset: 4px;
  box-shadow: 0 0 20px var(--fx-accent-glow);
}

/* === RESPONSIVE === */

/* Tablets */
@media (max-width: 768px) {
  .controls-bar { padding: 0 12px 10px; }
  .top-bar { padding: 12px 14px; }
  .sub-appearance-panel { width: 290px; right: 10px; bottom: 54px; }
  .menu-popup { min-width: 180px; }
}

/* Phones */
@media (max-width: 480px) {
  /* Controls bar: tighter padding */
  .controls-bar { padding: 0 8px 8px; }
  .controls-row { gap: 1px; }

  /* Slightly smaller icons but keep touch targets big */
  .ctrl-btn svg { width: 18px; height: 18px; }
  .ctrl-btn { padding: 7px; min-width: 36px; min-height: 36px; }

  /* Hide less essential buttons on very small screens */
  #skipBackBtn, #skipFwdBtn { display: none; }
  .ctrl-divider { margin: 0 2px; }

  /* Time display: smaller */
  .time-display { font-size: 10px; padding: 0 3px; }

  /* Volume: always show slider on mobile (no hover) */
  .volume-slider-wrap { width: 50px !important; overflow: visible; }
  .volume-slider { width: 44px; }

  /* Progress track: taller for easier touch */
  .progress-track { height: 5px; }
  .progress-container { height: 32px; margin-bottom: 4px; }
  .progress-thumb { width: 18px; height: 18px; opacity: 1; }

  /* Top bar */
  .top-bar { padding: 10px 12px; }
  .top-bar-title { font-size: 12px; }
  .top-bar-badge { font-size: 9px; padding: 2px 6px; }

  /* Big play button: smaller on phone */
  .big-play { width: 64px; height: 64px; }
  .big-play svg { width: 26px; height: 26px; }

  /* Menus: full width bottom sheet style */
  .menu-popup {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    max-height: 60vh;
    border-radius: 16px 16px 0 0;
    min-width: 100%;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
  }
  .menu-item { padding: 13px 20px; font-size: 15px; min-height: 44px; }
  .menu-header { padding: 12px 20px 8px; font-size: 10px; }

  /* Subtitle appearance panel: full width bottom sheet */
  .sub-appearance-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    width: 100%;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px env(safe-area-inset-bottom, 16px);
    box-sizing: border-box;
  }
  .sub-field select { padding: 10px 14px; font-size: 15px; min-height: 44px; }
  .sub-field input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; }
  .sub-color-swatch { width: 34px; height: 34px; }
  .sub-edge-option, .sub-align-option { padding: 8px 14px; font-size: 12px; min-height: 36px; }
  .sub-field-label { font-size: 11px; margin-bottom: 10px; }
  .sub-range-val { font-size: 12px; }

  /* Spinner */
  .fx-player .spinner { width: 36px; height: 36px; }

  /* Toast */
  .fx-player .fx-toast {
    font-size: 11px; padding: 6px 14px;
    max-width: 90%; white-space: normal; text-align: center;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .ctrl-btn { padding: 5px; min-width: 32px; min-height: 32px; }
  .ctrl-btn svg { width: 16px; height: 16px; }
  .time-display { font-size: 9px; }
  .volume-slider-wrap { width: 40px !important; }
  .volume-slider { width: 34px; }
  #pipBtn { display: none; }
  .sub-appearance-panel { padding: 16px 12px; }
}

/* Touch device: always show controls briefly, bigger targets */
@media (hover: none) and (pointer: coarse) {
  .progress-track { height: 5px; }
  .progress-thumb { width: 18px; height: 18px; opacity: 1; }
  .progress-container { height: 32px; }
  .volume-slider-wrap { width: 60px !important; overflow: visible; }
  .ctrl-btn { min-width: 40px; min-height: 40px; }
  /* Prevent double-tap zoom on controls */
  .controls-bar { touch-action: manipulation; }
  .controls-row { touch-action: manipulation; }
  .ctrl-btn { touch-action: manipulation; }
  .progress-container { touch-action: none; }
}

/* ── P2P Indicator ─────────────────────────────────────────────────── */
.p2p-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(0,0,0,.65);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: opacity .3s;
}
.p2p-indicator[data-role="peer"] { color: #60a5fa; }
