/* tvonline — Dark Mode (OLED) cinema theme.
   Design tokens from ui-ux-pro-max: cinema dark + play red, Inter. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --bg: #000000;
  --surface: #0f0f17;
  --surface-2: #16161f;
  --surface-3: #1d1d29;
  --primary: #0f0f23;
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --fg: #f8fafc;
  --fg-muted: #9499a8;
  --fg-subtle: #5f6675;
  --border: #26263a;
  --border-strong: #353552;
  --danger: #ef4444;
  --success: #22c55e;

  /* Spacing (4/8 rhythm) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-8: 48px;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(225, 29, 72, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

* { box-sizing: border-box; }

/* `hidden` must win over component display rules (.lobby grid / .room flex). */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100dvh; }

button, input { font-family: inherit; }

/* Focus visibility for keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; }
.icon-sm { width: 16px; height: 16px; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand .logo { color: var(--accent); filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.5)); }

.room-info { display: flex; align-items: center; gap: var(--sp-3); font-size: 14px; }
.room-code-label { color: var(--fg-muted); }
.room-code {
  font-weight: 700;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
  background: var(--surface-3);
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  white-space: nowrap;
}
.viewers {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
}
.badge.viewer { background: var(--surface-3); color: var(--fg-muted); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Global online counter (lobby top-right): people currently connected. */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.online-badge .icon { color: var(--accent); }
.online-label { font-weight: 400; }

/* ── Buttons ──────────────────────────────────────────────── */
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 12px 18px;
  min-height: 44px;
  color: var(--fg);
  background: var(--surface-3);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
button:hover { background: var(--surface-2); }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }

.btn-secondary {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg-muted);
  font-size: 13px;
  padding: 8px 12px;
  min-height: 36px;
}
.btn-ghost:hover { color: var(--fg); border-color: var(--border-strong); background: var(--surface-2); }

/* ── Inputs ───────────────────────────────────────────────── */
input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 12px 14px;
  font-size: 15px;
  min-height: 44px;
  transition: border-color var(--dur) var(--ease);
}
input::placeholder { color: var(--fg-subtle); }
input:focus { outline: none; border-color: var(--accent); }
.code-input { text-transform: uppercase; letter-spacing: 2px; text-align: center; font-weight: 600; }
.code-input::placeholder { letter-spacing: normal; text-align: left; font-weight: 400; text-transform: none; }

/* ── Lobby ────────────────────────────────────────────────── */
.lobby {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.lobby::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12), transparent 70%);
  top: -150px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: rise var(--dur) var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card h1 { margin: 0 0 var(--sp-2); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--fg-muted); line-height: 1.6; }
.muted.small { font-size: 13px; }
.name-row { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); text-align: left; }
.name-label { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.name-input { min-height: 44px; }
.lobby-actions { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }

.divider {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--fg-subtle); font-size: 13px; margin: var(--sp-1) 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.join-row { display: flex; gap: var(--sp-2); }
.join-row input { flex: 1; }
.join-row button { flex: none; }

.error {
  color: var(--danger);
  margin-top: var(--sp-4);
  font-size: 14px;
  display: flex; align-items: center; gap: var(--sp-2); justify-content: center;
}

/* ── Room / player ────────────────────────────────────────── */
.room { flex: 1; display: flex; min-height: 0; }
.player-wrap {
  flex: 1;
  position: relative;
  background: #000;
  display: grid;
  place-items: center;
  min-width: 0;
}
video {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 56px);
  background: #000;
  display: block;
}

/* ── Custom player controls ───────────────────────────────── */
.controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.player-wrap:hover .controls,
.controls:focus-within,
.controls.always { opacity: 1; }

.ctrl-btn {
  background: transparent;
  border: none;
  padding: 6px;
  min-height: 36px;
  color: #fff;
  border-radius: var(--radius);
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.14); }
.ctrl-btn:active { transform: scale(0.94); }
/* Viewers can't drive playback: dim the play button and disable it. */
.controls.viewer #playBtn { opacity: 0.4; pointer-events: none; }
.controls.viewer #seekBar { pointer-events: none; opacity: 0.6; }

.time {
  font-size: 12px;
  color: #d7dae2;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}

/* Range inputs (seek + volume) */
.controls input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 0;
  min-height: 0;
}
.seek { flex: 1; }
.volume { width: 90px; flex: none; }
.controls input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
}
.controls input[type='range']::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
}
.controls input[type='range']:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 768px) {
  .volume { width: 60px; }
  .controls { gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
}
.no-source {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--fg-muted);
  pointer-events: none;
  padding: var(--sp-5);
}
.no-source .ns-icon { color: var(--fg-subtle); margin-bottom: var(--sp-3); }
.no-source p { margin: 0; font-size: 15px; }
.no-source .hint { font-size: 13px; color: var(--fg-subtle); margin-top: var(--sp-1); }

/* sync status pill, bottom-center over the video */
.sync-pill {
  position: absolute;
  bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: var(--sp-2);
  background: rgba(15, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 14px; font-size: 13px; color: var(--fg-muted);
}
.sync-pill.show { display: inline-flex; }
.sync-pill .spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Unsupported-audio warning in the host's "Свой файл" section. */
.warn {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-top: var(--sp-3);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
}
.warn .icon { color: #f59e0b; margin-top: 1px; }
.warn-body { flex: 1; min-width: 0; }
.warn-msg { margin: 0; }

/* Tailored fix command inside the warning. */
.fix { margin-top: var(--sp-3); }
.fix-note { margin: 6px 0 0; }
.fix a { color: var(--accent-hover); }
.recipe-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); margin-bottom: 6px;
}
.recipe-title { font-size: 12px; font-weight: 700; color: #fde68a; }
.copy-cmd { flex: none; padding: 4px 10px; min-height: 28px; font-size: 12px; }
.copy-cmd.copied { color: var(--success); border-color: var(--success); }
.cmd {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #cdd2dd;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Sync-tuning panel (host). */
.sync-settings { border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.setting { display: block; margin-bottom: var(--sp-4); }
.setting > span {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--fg-muted); margin-bottom: 6px;
}
.setting small { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.setting input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; padding: 0; min-height: 0;
  background: var(--surface-3); border-radius: var(--radius-full); cursor: pointer;
}
.setting input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; cursor: pointer;
}
.setting input[type='range']::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; cursor: pointer;
}

/* Tap-to-start — appears when the browser blocks programmatic autoplay. */
.tap-start {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.tap-start svg { fill: #fff; filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.6)); }
.tap-start:hover svg { fill: var(--accent-hover); }

/* Barrier overlay — covers the video while waiting for everyone to buffer. */
.gate-overlay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 5;
}
.gate-overlay.show { display: grid; }
.gate-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
}
.spinner.big {
  width: 40px; height: 40px;
  border: 3px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.gate-title { margin: 0; font-size: 18px; font-weight: 600; }
.gate-count {
  margin: 0; color: var(--fg-muted); font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.gate-progress {
  width: 220px; height: 6px; border-radius: var(--radius-full);
  background: var(--surface-3); overflow: hidden; margin-top: var(--sp-2);
}
.gate-bar {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: var(--radius-full); transition: width 200ms var(--ease);
}
.gate-buffer {
  margin: 0; font-size: 12px; color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}

/* Debug HUD — live buffer/sync info, toggled with the "i" key. */
.debug-hud {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 8;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.5; white-space: pre;
  color: #b6f7c1; background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; pointer-events: none;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: 340px;
  flex: none;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: var(--sp-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.section-head {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--fg-muted); margin: 0 0 var(--sp-3);
}
.section-head .icon { width: 16px; height: 16px; color: var(--fg-subtle); }

.library { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.library li {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.library li:hover { border-color: var(--border-strong); background: var(--surface-3); }
.library li.active { border-color: var(--accent); background: rgba(225, 29, 72, 0.08); }
.library li .play-ico { color: var(--fg-subtle); flex: none; }
.library li.active .play-ico { color: var(--accent); }
.library li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library li .size { color: var(--fg-subtle); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.library .empty {
  flex-direction: column; gap: var(--sp-1); cursor: default;
  color: var(--fg-subtle); text-align: center; padding: var(--sp-5);
}
.library .empty:hover { border-color: var(--border); background: var(--surface-2); }

.host-file { border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.file-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: var(--sp-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.file-btn:hover { border-color: var(--accent); background: var(--surface-3); }

/* ── Room media (host upload) ─────────────────────────────── */
.room-media { border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.rm-progress { margin-top: var(--sp-3); }
.rm-bar-wrap {
  height: 6px; background: var(--surface-3); border-radius: var(--radius-full); overflow: hidden;
}
.rm-bar {
  height: 100%; width: 0%; background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.rm-current { margin-top: var(--sp-3); }
.rm-name {
  font-size: 14px; font-weight: 600; word-break: break-all; margin-bottom: var(--sp-2);
}
.rm-actions { display: flex; gap: var(--sp-2); }
.rm-actions button { flex: 1; min-height: 36px; padding: 8px 12px; font-size: 13px; }
.rm-cancel { margin-top: var(--sp-2); width: 100%; }

/* ── Chat ─────────────────────────────────────────────────── */
.chat-toggle { position: relative; }
.chat-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--accent); border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 340px;
  height: 460px;
  max-height: calc(100dvh - 110px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,.3);
  min-height: 0;
  z-index: 90;
  overflow: hidden;
  animation: chatPop 150ms var(--ease);
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.chat-head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted); font-size: 13px; font-weight: 600;
  cursor: grab; user-select: none; touch-action: none;
  background: var(--surface-2);
}
.chat-head:active { cursor: grabbing; }
.chat-head .chat-title { color: var(--fg); }
.chat-me {
  margin-left: auto; font-size: 12px; font-weight: 500; color: var(--fg-subtle);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-close { margin-left: var(--sp-1); }

.chat-list {
  flex: 1; min-height: 0; overflow-y: auto;
  list-style: none; margin: 0; padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.chat-msg {
  max-width: 85%; padding: 8px 12px; border-radius: 12px;
  background: var(--surface-3); font-size: 14px; line-height: 1.4;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.chat-msg.mine { align-self: flex-end; background: var(--accent); color: #fff; }
.chat-msg .cm-name {
  display: block; font-size: 11px; font-weight: 600; opacity: .8; margin-bottom: 2px;
}
.chat-msg .cm-name .host-tag { opacity: .9; }
.chat-msg.mine .cm-name { color: #fff; }
.chat-empty {
  margin: auto; text-align: center; color: var(--fg-subtle); font-size: 13px; padding: var(--sp-4);
}

.chat-form {
  display: flex; gap: var(--sp-2); align-items: center;
  padding: var(--sp-3); border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; min-width: 0; min-height: 40px; padding: 10px 12px; font-size: 14px;
}
.chat-send { flex: none; }

.toast {
  position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); border: 1px solid var(--border-strong);
  color: var(--fg); padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .room { flex-direction: column; }
  .sidebar { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .chat-panel { left: 8px !important; right: 8px !important; top: auto !important; bottom: 8px !important; width: auto; height: 62dvh; max-height: 62dvh; }
  video { max-height: 56dvh; }
  .room-code-label { display: none; }

  .topbar { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
  .room-info { gap: var(--sp-2); font-size: 13px; }
  .room-code { letter-spacing: 1px; padding: 5px 8px; font-size: 12px; }
  /* On the smallest screens the "Ссылка" label is redundant next to its icon. */
  #copyLink span, #copyLink { font-size: 0; }
  #copyLink .icon { font-size: initial; }
  #copyLink { padding: 8px; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
