/* Mesa de trabajo — estilos.
   Lienzo claro con puntitos (a lo Milanote) y barra superior oscura como la de la app.
   El tema oscuro es opcional: html[data-theme='dark']. */

:root {
  --bg: #f3f4f8;
  --dot: #d6d9e3;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --column: rgba(255, 255, 255, 0.6);
  --ink: #1a1d29;
  --muted: #6a7184;
  --line: #e4e6ee;
  --primary: #5458f0;
  --primary-ink: #ffffff;
  --primary-soft: rgba(84, 88, 240, 0.12);
  --danger: #e5484d;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, 0.06), 0 2px 8px rgba(20, 24, 40, 0.05);
  --shadow-md: 0 2px 4px rgba(20, 24, 40, 0.06), 0 10px 28px rgba(20, 24, 40, 0.1);
  --radius: 16px;
}

html[data-theme='dark'] {
  --bg: #0e1220;
  --dot: #1b2134;
  --surface: #171c2f;
  --surface-2: #1c2237;
  --column: rgba(23, 28, 47, 0.7);
  --ink: #e9ecf5;
  --muted: #8f98ae;
  --line: #272e47;
  --primary: #7a80ff;
  --primary-ink: #0e1220;
  --primary-soft: rgba(122, 128, 255, 0.16);
  --danger: #ff6b70;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
body { color-scheme: light; }
html[data-theme='dark'] body { color-scheme: dark; }
.hidden { display: none !important; }
body.readonly .edit-only { display: none !important; }

/* ── Botones e inputs ── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
button:hover, .btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:disabled { opacity: 0.45; cursor: default; }

button.primary {
  color: var(--primary-ink);
  background: var(--primary);
  border-color: var(--primary);
}
button.primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); border-color: transparent; }
button.ghost, .btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
button.ghost:hover, .btn.ghost:hover { background: var(--primary-soft); color: var(--ink); border-color: transparent; }
button.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

input[type='text'], textarea {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
input[type='text']::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input[type='text']:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 56px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 99px;
}
.hint { color: var(--muted); font-size: 0.82rem; margin: 4px 0 0; }
.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--column);
}

/* ── Cabecera ── */
header.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
header.top h1 { flex: 1 1 auto; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.brand-text h1 { margin: 0; }
.sub { color: var(--muted); font-size: 0.92rem; margin: 2px 0 0; }

h2.section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2.section .count { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
h2.section .spacer { flex: 1; }

/* ── Tarjetas centradas (cargando, login, aviso) ── */
.center-card {
  max-width: 420px;
  margin: 14vh auto 0;
  padding: 36px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.center-card img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
.center-card h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.center-card p { margin: 0 0 20px; color: var(--muted); }

/* ── Lista de mesas ── */
.new-row { display: flex; gap: 8px; max-width: 520px; margin-bottom: 26px; }
.mesa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.mesa-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.mesa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 70px; gap: 2px; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic.one { grid-template-columns: 1fr; grid-auto-rows: 140px; }
.mosaic.empty-mosaic {
  grid-template-columns: 1fr;
  grid-auto-rows: 140px;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-2));
}
.mesa-card-body { padding: 14px 16px 16px; }
.mesa-card .name { display: block; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.mesa-card .meta { margin-top: 4px; color: var(--muted); font-size: 0.84rem; display: flex; align-items: center; gap: 8px; }

/* ── Partidos ── */
.partidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover { box-shadow: var(--shadow-md); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb .open-hint {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 10px;
  font-size: 0.74rem; font-weight: 600;
  color: #fff; background: rgba(10, 12, 24, 0.7);
  border-radius: 99px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s;
}
.thumb:hover .open-hint { opacity: 1; transform: none; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 14px 10px; }
.card-title { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; word-break: break-word; }
.card-body textarea {
  min-height: 52px;
  padding: 8px 10px;
  font-size: 0.86rem;
  background: var(--surface-2);
  border-color: transparent;
}
.card-body textarea:focus { background: var(--surface); border-color: var(--primary); }
.card-actions { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.card-actions button { height: 28px; padding: 0 9px; font-size: 0.78rem; }
.saved { color: var(--muted); font-size: 0.76rem; }

/* ── Temas ── */
.tema-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tema-tab { height: 34px; border-radius: 99px; padding: 0 16px; box-shadow: none; color: var(--muted); }
.tema-tab:hover { color: var(--ink); }
.tema-tab.active { color: var(--primary-ink); background: var(--ink); border-color: var(--ink); }
body:not(.readonly) .tema-tab.active { box-shadow: var(--shadow-sm); }

.tema-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tema-head h3 { flex: 1 1 auto; margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }

.section-box {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--column);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.section-head { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.section-head .sec-name { flex: 1 1 auto; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.section-head .count { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; }
.section-head button { height: 28px; padding: 0 9px; font-size: 0.78rem; }
@media (hover: hover) {
  .section-head button { opacity: 0.45; }
  .section-box:hover .section-head button { opacity: 1; }
}

.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  min-height: 80px;
  padding: 4px;
  border-radius: 14px;
}
.blocks.drag-over { background: var(--primary-soft); outline: 2px dashed var(--primary); outline-offset: 2px; }
.blocks .empty { grid-column: 1 / -1; padding: 22px; background: transparent; }

.block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: box-shadow 0.18s, transform 0.18s;
}
.block:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.block.dragging { opacity: 0.4; transform: none; }
.block-thumb { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 0; background: #000; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.block-thumb:hover { background: #000; }
.block-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.35s, opacity 0.2s; }
.block:hover .block-thumb img { transform: scale(1.04); opacity: 0.9; }
.block-thumb .play {
  position: absolute; top: 50%; left: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  font-size: 1.05rem; color: #fff; padding-left: 3px;
  background: rgba(10, 12, 24, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  backdrop-filter: blur(3px);
  transition: transform 0.18s, background 0.18s;
}
.block-thumb:hover .play { transform: scale(1.1); background: var(--primary); }
.block-thumb .kind {
  position: absolute; left: 8px; bottom: 8px;
  padding: 3px 9px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; background: rgba(10, 12, 24, 0.72);
  border-radius: 99px;
}
.block-body { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 8px; }
.block-title { font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; word-break: break-word; }
.block-meta { color: var(--muted); font-size: 0.78rem; }
.block textarea {
  min-height: 40px; margin-top: 4px; padding: 6px 8px;
  font-size: 0.82rem;
  background: var(--surface-2); border-color: transparent;
}
.block textarea:focus { background: var(--surface); border-color: var(--primary); }
.block .row { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.block .row button { height: 24px; padding: 0 8px; font-size: 0.74rem; }
@media (hover: hover) {
  .block .row button { opacity: 0; }
  .block:hover .row button { opacity: 1; }
}

/* ── Ventanas ── */
.backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(12, 15, 28, 0.5);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.modal h3 { margin: 0 0 14px; font-size: 1.2rem; letter-spacing: -0.02em; }
.modal .row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pick-list { display: grid; gap: 8px; margin: 14px 0; max-height: 42vh; overflow: auto; }
.pick-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: auto; padding: 8px;
  text-align: left; font-weight: 600;
  background: var(--surface-2); box-shadow: none; border-color: transparent;
}
.pick-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.pick-item img { flex: none; width: 88px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: 8px; }
.share-h { margin: 20px 0 2px; font-size: 0.98rem; }
.editor-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.editor-row button { height: 26px; padding: 0 8px; font-size: 0.76rem; }

/* ── Reproductor ── */
.player-modal { width: min(940px, 100%); padding: 14px; background: #0c0f1c; border-color: #222844; color: #e9ecf5; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-frame #yt-host, .player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.player-bar button { color: #e9ecf5; background: #171c33; border-color: #2a3150; box-shadow: none; }
.player-bar button.ghost { background: transparent; border-color: transparent; }
.player-bar .label { flex: 1 1 auto; font-size: 0.9rem; color: #aab2c8; }
.player-seek { flex: 1 1 140px; min-width: 100px; accent-color: var(--primary); }
.player-time { min-width: 84px; text-align: right; font-size: 0.82rem; color: #aab2c8; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translateX(-50%);
  padding: 11px 18px;
  font-size: 0.9rem; font-weight: 500;
  color: #fff; background: #1a1d29;
  border-radius: 99px;
  box-shadow: var(--shadow-md);
}
.toast.error { background: var(--danger); }

@media (max-width: 640px) {
  .wrap { padding: 18px 14px 60px; }
  .partidos, .mesa-grid { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Vista de solo lectura: los comentarios se leen como texto, sin cajas de edición */
body.readonly textarea {
  min-height: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  resize: none;
  pointer-events: none;
  field-sizing: content;
}
body.readonly textarea:placeholder-shown { display: none; }
body.readonly .card-actions, body.readonly .block .row:not(.has-cm) { display: none; }
body.readonly .block .row .saved { display: none; }


/* ── Barra superior (igual a la de la app: oscura, con logo, ruta, estado de guardado y cuenta) ── */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px;
  color: #e8eaf2;
  background: #161922;
  border-bottom: 1px solid #2a2d3e;
}
.appbar .spacer { flex: 1; }
.appbar a { color: inherit; text-decoration: none; }
.appbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; }
.appbar-brand img { width: 28px; height: 28px; border-radius: 8px; }
.appbar-sep { color: #5a607a; }
.appbar-section { color: #aab1c6; font-size: 0.9rem; }
.appbar-section:hover { color: #fff; }
.appbar-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.appbar-title { overflow: hidden; font-weight: 600; font-size: 0.95rem; white-space: nowrap; text-overflow: ellipsis; max-width: 38vw; }
.save-state { font-size: 0.8rem; color: #8f98ae; white-space: nowrap; }
.save-state.ok { color: #6ee7a0; }
.save-state.error { color: #ff8b8f; }
.appbar-btn, .user-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  font-size: 1rem; color: #e8eaf2;
  background: transparent; border: 1px solid transparent; border-radius: 10px; box-shadow: none;
}
.appbar-btn:hover, .user-btn:hover { background: #232838; border-color: #2f3550; }
.user-btn { overflow: hidden; border-radius: 50%; font-weight: 700; font-size: 0.85rem; background: #2f3354; }
.user-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-wrap { position: relative; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 230px; padding: 6px;
  color: #e8eaf2; background: #1b1f2c;
  border: 1px solid #2a2d3e; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.user-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid #2a2d3e; margin-bottom: 4px; }
.user-menu-name { font-weight: 700; }
.user-menu-email { color: #8f98ae; font-size: 0.8rem; word-break: break-all; }
.user-menu-item {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 36px; padding: 0 10px;
  font: inherit; font-size: 0.88rem; font-weight: 500; text-align: left; color: inherit;
  background: none; border: 0; border-radius: 8px; box-shadow: none; text-decoration: none; cursor: pointer;
}
.user-menu-item:hover { background: #262b3d; }
.wrap { padding-top: 26px; }
.center-card { margin-top: 12vh; }
@media (max-width: 640px) {
  .appbar { padding: 0 12px; }
  .appbar-name, .appbar-section, .appbar-brand + .appbar-sep { display: none; }
  .appbar-title { max-width: 44vw; }
}

/* ── Botones de ícono, menús contextuales (⋯ y clic derecho) y partidos colapsables ── */
.menu-src { display: none !important; }
.collapsed-hide { display: none !important; }

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}
.icon-btn:hover { color: var(--ink); background: var(--primary-soft); border-color: transparent; }
.icon-btn.accent { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.icon-btn.accent:hover { color: var(--primary-ink); background: color-mix(in srgb, var(--primary) 88%, #000); }

/* Texto de ayuda inmediato al pasar el mouse */
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  color: #e9ecf5;
  background: #0c0f1c;
  border: 1px solid #2a2d3e;
  border-radius: 7px;
  pointer-events: none;
}
.clip-menu-btn[data-tip]:hover::after { left: 50%; right: auto; transform: translateX(-50%); }

.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 4px 8px 4px 4px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section-toggle:hover { background: var(--primary-soft); border-color: transparent; }
.section-toggle .chev { display: inline-block; font-size: 0.9rem; color: var(--muted); transition: transform 0.18s; }
.section-toggle.is-collapsed .chev { transform: rotate(-90deg); }

.card, .block { position: relative; }
.card-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(10, 12, 24, 0.62);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.card-x:hover { background: var(--danger); border-color: transparent; }
@media (hover: hover) {
  .card-x { opacity: 0; transition: opacity 0.15s, background 0.15s; }
  .card:hover .card-x, .block:hover .card-x, .card-x:focus-visible { opacity: 1; }
}

/* Menú de íconos (mismo estilo que el de la app) */
.clip-menu {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  background: #1b1f2c;
  border: 1px solid #2a2d3e;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.clip-menu-row { display: flex; align-items: center; gap: 2px; }
.clip-menu-btn {
  position: relative;
  width: 34px;
  height: 32px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: #e9ecf5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
}
.clip-menu-btn:hover { background: rgba(122, 128, 255, 0.28); border-color: transparent; }
.clip-menu-btn.danger:hover { background: rgba(239, 68, 68, 0.3); }
.clip-menu-btn.is-disabled { cursor: not-allowed; }
.clip-menu-btn.is-disabled .clip-menu-ico { filter: grayscale(1); opacity: 0.4; }
.clip-menu-btn.is-disabled:hover { background: none; }
.clip-menu-sep { width: 1px; height: 18px; margin: 0 4px; background: #2a2d3e; }
.spacer { flex: 1 1 auto; }

/* Las acciones van pegadas al nombre, no al borde derecho */
.tema-head h3 { flex: 0 1 auto; }
.section-head .sec-name { flex: 0 1 auto; margin-right: 4px; }
header.top { gap: 6px; }

/* Acciones de la mesa pegadas al nombre, dentro de la barra superior */
.appbar .icon-btn { width: 30px; height: 30px; color: #aab1c6; }
.appbar .icon-btn:hover { color: #fff; background: #262b3d; }
.appbar .icon-btn.accent { color: #fff; background: var(--primary); border-color: transparent; }
.appbar .icon-btn.accent:hover { background: color-mix(in srgb, var(--primary) 85%, #fff); }
.appbar .tag { color: #c9ccff; background: rgba(122, 128, 255, 0.2); }
.appbar [data-tip]:hover::after { top: calc(100% + 10px); right: auto; left: 50%; transform: translateX(-50%); }
.appbar-crumb { gap: 6px; }
.appbar-crumb .appbar-sep { margin-right: 4px; }

/* Acciones a la vista: sin menú intermedio */
.icon-btn.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.icon-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.icon-btn { font-size: 0.95rem; }
.appbar .icon-btn.danger:hover { color: #ff8b8f; background: rgba(239, 68, 68, 0.2); }
.tema-head { gap: 2px; }
.tema-head h3 { margin-right: 8px; }
.section-head { gap: 0; }
.section-head .icon-btn { width: 28px; height: 28px; }
.section-head .icon-btn { padding: 0; }
@media (hover: hover) {
  .section-head .icon-btn { opacity: 0.7; }
  .section-box:hover .section-head .icon-btn { opacity: 1; }
  .section-head .icon-btn:disabled { opacity: 0.3; }
}
.section-head .icon-btn { font-size: 0.95rem; }

/* Notas de tema y de sección: texto de contexto bajo el título */
.note-input {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px;
  padding: 6px 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 10px;
  resize: none;
  overflow: hidden;
}
.note-input:hover { border-color: var(--line); }
.note-input:focus { background: var(--surface); border-color: var(--primary); }
.note-input::placeholder { color: var(--muted); font-style: italic; }
.tema-note { margin-top: -4px; max-width: 880px; font-size: 0.98rem; }
.section-box .note-input { margin: -4px 0 12px; font-size: 0.88rem; color: var(--muted); }
.section-box .note-input:focus { color: var(--ink); }
body.readonly .note-input { padding: 0 2px; border: 0; background: transparent; }
body.readonly .section-box .note-input { color: var(--muted); }

/* ── Comentarios del equipo (chat por bloque) ── */
.cm-toggle {
  height: 26px; padding: 0 9px; margin-left: auto;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-color: transparent; box-shadow: none; border-radius: 99px;
}
.cm-toggle:hover { color: var(--ink); background: var(--primary-soft); border-color: transparent; }
.cm-toggle.has { color: var(--primary); background: var(--primary-soft); }
.cm-toggle .cm-count { min-width: 0; }
.block .row { gap: 8px; }
@media (hover: hover) {
  .block .row .cm-toggle { opacity: 1; }
}
.cm-thread { margin: 4px -12px 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.cm-list { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; margin-bottom: 10px; padding-right: 4px; }
.cm-empty { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 6px 0; }
.cm-msg { display: flex; flex-direction: column; gap: 2px; }
.cm-head { display: flex; align-items: baseline; gap: 8px; font-size: 0.8rem; }
.cm-head b { font-weight: 700; }
.cm-msg.mine .cm-head b { color: var(--primary); }
.cm-time { color: var(--muted); font-size: 0.72rem; }
.cm-del { position: relative; margin-left: auto; width: 22px; height: 22px; padding: 0; font-size: 0.72rem; color: var(--muted); background: none; border: 0; box-shadow: none; opacity: 0; }
.cm-msg:hover .cm-del { opacity: 1; }
.cm-del:hover { color: var(--danger); background: none; }
@media (hover: none) { .cm-del { opacity: 0.7; } }
.cm-text { font-size: 0.88rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.cm-form { display: flex; gap: 6px; }
.cm-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; font-size: 0.85rem; }
.cm-form button { height: 32px; padding: 0 12px; font-size: 0.8rem; }
#share-role { height: 36px; padding: 0 8px; font: inherit; font-size: 0.85rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* ── Vista previa al apoyar el mouse sobre la miniatura de un bloque ── */
#pv-host {
  position: fixed;
  z-index: 20;
  display: none;
  overflow: hidden;
  background: #000;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
#pv-host.on { display: block; }
#pv-host.on.live { opacity: 1; }
#pv-host iframe { width: 100%; height: 100%; border: 0; display: block; }
#pv-host .pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.28); }
#pv-host .pv-bar i { display: block; height: 100%; width: calc(var(--pv, 0) * 100%); background: var(--primary); }
.block-thumb.previewing .play { opacity: 0; }

/* Barra para recorrer la vista previa: solo aparece al acercar el mouse al borde de abajo */
#pv-scrub {
  position: fixed;
  z-index: 25;
  display: none;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}
#pv-scrub.show { display: flex; align-items: flex-end; }
#pv-scrub .pv-track { position: relative; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.3); transition: height 0.12s; }
#pv-scrub:hover .pv-track { height: 9px; }
#pv-scrub .pv-track i { display: block; height: 100%; width: calc(var(--pv, 0) * 100%); background: var(--primary); }
#pv-scrub .pv-track i::after {
  content: ''; position: absolute; top: 50%; left: calc(var(--pv, 0) * 100%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
#pv-host.on:has(~ #pv-scrub.show) .pv-bar { opacity: 0; }

/* ── Bloques "dibujo": imagen sola que lleva al clip original ── */
.block-thumb img.draw-img { object-fit: contain; background: #0c0f1c; opacity: 0; transition: opacity 0.25s; }
.block-thumb img.draw-img.ready { opacity: 1; }
.card-zoom {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 30px; height: 30px; padding: 0; font-size: 0.85rem; color: #fff;
  background: rgba(10, 12, 24, 0.62); border: 0; border-radius: 50%; box-shadow: none; backdrop-filter: blur(4px);
}
.card-zoom:hover { background: var(--primary); border-color: transparent; }
@media (hover: hover) {
  .card-zoom { opacity: 0; transition: opacity 0.15s, background 0.15s; }
  .block:hover .card-zoom, .card-zoom:focus-visible { opacity: 1; }
}
.image-viewer { display: flex; flex-direction: column; gap: 10px; max-width: min(1100px, 94vw); }
.image-viewer img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; background: #0c0f1c; box-shadow: var(--shadow-md); }
.image-viewer-bar { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.image-viewer-bar span { flex: 1; }

/* ── Formas de ver los partidos ── */
.view-switch { display: inline-flex; gap: 2px; margin-left: 6px; padding: 2px; background: var(--surface-2); border-radius: 10px; }
.view-switch .icon-btn { width: 32px; height: 28px; font-size: 0.82rem; letter-spacing: -1px; border-radius: 8px; }
.view-switch .icon-btn.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-note { display: none; }

/* Miniaturas: cuadraditos chicos con el nombre; el comentario se ve al pasar el mouse */
.partidos.view-mini { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.partidos.view-mini .card-body { padding: 8px 9px 9px; gap: 0; }
.partidos.view-mini .card-title { font-size: 0.78rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.partidos.view-mini textarea, .partidos.view-mini .card-actions { display: none; }
.partidos.view-mini .card-x { top: 5px; right: 5px; width: 24px; height: 24px; font-size: 0.7rem; }
.partidos.view-mini .thumb .open-hint { display: none; }

/* Lista: una línea por partido */
.partidos.view-list { grid-template-columns: 1fr; gap: 8px; }
.partidos.view-list .card { flex-direction: row; align-items: center; }
.partidos.view-list .thumb { width: 96px; flex: none; }
.partidos.view-list .thumb .open-hint { display: none; }
.partidos.view-list .card-body { flex-direction: row; align-items: center; gap: 14px; padding: 8px 52px 8px 14px; min-width: 0; }
.partidos.view-list .card-title { flex: 0 1 38%; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partidos.view-list .card-note { display: block; flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partidos.view-list textarea, .partidos.view-list .card-actions { display: none; }
.partidos.view-list .card-x { top: 50%; right: 12px; transform: translateY(-50%); }
@media (max-width: 640px) {
  .partidos.view-mini { grid-template-columns: repeat(2, 1fr); }
  .partidos.view-list .card-note { display: none; }
}

/* ── Formas de ver los bloques de un tema ── */
.tema-head .view-switch { margin: 0 8px 0 2px; }
.block-note { display: none; }

/* Miniaturas */
.blocks.bv-mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.blocks.bv-mini .block-body { padding: 8px 9px 9px; gap: 0; }
.blocks.bv-mini .block-title { font-size: 0.78rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blocks.bv-mini .block-meta, .blocks.bv-mini textarea, .blocks.bv-mini .row, .blocks.bv-mini .cm-thread { display: none; }
.blocks.bv-mini .block-thumb .play { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 0.8rem; border-width: 1.5px; }
.blocks.bv-mini .block-thumb .kind { font-size: 0.62rem; padding: 2px 7px; left: 6px; bottom: 6px; }
.blocks.bv-mini .card-x, .blocks.bv-mini .card-zoom { width: 24px; height: 24px; font-size: 0.7rem; top: 5px; }
.blocks.bv-mini .card-x { right: 5px; }
.blocks.bv-mini .card-zoom { left: 5px; }

/* Lista: una línea por bloque */
.blocks.bv-list { grid-template-columns: 1fr; gap: 8px; }
.blocks.bv-list .block { flex-direction: row; align-items: center; }
.blocks.bv-list .block:hover { transform: none; }
.blocks.bv-list .block-thumb { width: 110px; flex: none; }
.blocks.bv-list .block-thumb .play { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 0.7rem; border-width: 1.5px; }
.blocks.bv-list .block-thumb .kind { display: none; }
.blocks.bv-list .block-body { flex: 1; min-width: 0; flex-direction: row; align-items: center; gap: 16px; padding: 8px 56px 8px 14px; }
.blocks.bv-list .block-title { flex: 0 1 32%; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocks.bv-list .block-meta { flex: 0 1 26%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocks.bv-list .block-note { display: block; flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocks.bv-list textarea, .blocks.bv-list .row, .blocks.bv-list .cm-thread { display: none; }
.blocks.bv-list .card-x { top: 50%; right: 12px; transform: translateY(-50%); }
.blocks.bv-list .card-zoom { top: 50%; left: auto; right: 48px; transform: translateY(-50%); }
@media (max-width: 640px) {
  .blocks.bv-mini { grid-template-columns: repeat(2, 1fr); }
  .blocks.bv-list .block-meta, .blocks.bv-list .block-note { display: none; }
}

/* ── Buscar clips en los partidos ── */
.search-modal { width: min(1120px, 100%); max-height: 92vh; }
.cs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cs-head h3 { margin: 0; }
.cs-details { margin: 8px 0; padding: 6px 10px; background: var(--surface-2); border-radius: 12px; }
.cs-details summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.cs-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.88rem; }
.cs-row > span:first-child, .cs-row > label { flex: 1 1 auto; min-width: 0; }
.cs-row label { flex: 0 0 110px; color: var(--muted); font-size: 0.8rem; }
.cs-row input[type='text'], .cs-row select { flex: 1 1 220px; height: 34px; padding: 0 10px; font: inherit; font-size: 0.86rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cs-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-2); border-radius: 10px; flex: none; }
.cs-details .cs-seg { background: var(--surface); }
.cs-seg button { height: 28px; padding: 0 10px; font-size: 0.8rem; background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); border-radius: 8px; }
.cs-seg button.active { color: var(--primary-ink); background: var(--primary); }
.cs-filters { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 6px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chips button { height: 30px; padding: 0 12px; font-size: 0.82rem; border-radius: 99px; box-shadow: none; }
.cs-chips button small { margin-left: 4px; opacity: 0.7; font-weight: 500; }
.cs-chips button.active { color: var(--primary-ink); background: var(--ink); border-color: var(--ink); }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.cs-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; }
.cs-tile.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cs-check { position: absolute; top: 6px; left: 6px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; background: rgba(10, 12, 24, 0.55); border-radius: 8px; cursor: pointer; }
.cs-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.cs-thumb { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; padding: 0; background: #000; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.cs-thumb .cs-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); opacity: 0; transition: opacity 0.15s; }
.cs-thumb:hover .cs-play { opacity: 1; }
.cs-time { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; font-size: 0.7rem; font-weight: 700; color: #fff; background: rgba(10, 12, 24, 0.72); border-radius: 99px; }
.cs-meta { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px 9px; font-size: 0.8rem; min-width: 0; }
.cs-meta b { font-size: 0.86rem; }
.cs-meta span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-flag-row { font-size: 0.8rem; }
.cs-bar { position: sticky; bottom: -22px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px -22px -22px; padding: 12px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.cs-bar #cs-sel { font-weight: 600; font-size: 0.88rem; }
.cs-bar .spacer { flex: 1; }
.cs-mkform { margin-top: 10px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
#cs-more { text-align: center; margin-top: 10px; }

/* ── Información de cada partido ── */
.card-info {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 28px; height: 28px; padding: 0; font-size: 0.95rem; line-height: 1; color: #fff;
  background: rgba(10, 12, 24, 0.62); border: 0; border-radius: 50%; box-shadow: none; backdrop-filter: blur(4px);
}
.card-info:hover { background: var(--primary); border-color: transparent; }
@media (hover: hover) {
  .card-info { opacity: 0; transition: opacity 0.15s, background 0.15s; }
  .card:hover .card-info, .card-info:focus-visible { opacity: 1; }
}
.partidos.view-mini .card-info { top: 5px; left: 5px; width: 24px; height: 24px; font-size: 0.8rem; }
.partidos.view-list .card-info { top: 50%; left: 6px; transform: translateY(-50%); width: 24px; height: 24px; font-size: 0.8rem; }
.pi-pop {
  position: fixed; z-index: 45; width: min(340px, calc(100vw - 16px)); padding: 12px 14px;
  color: #e9ecf5; background: #1b1f2c; border: 1px solid #2a2d3e; border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem; line-height: 1.4;
}
.pi-title { font-weight: 700; margin-bottom: 4px; }
.pi-comment { color: #cfd4e6; white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; }
.pi-sub { color: #8f98ae; font-size: 0.8rem; margin-bottom: 6px; }
.pi-line { font-weight: 600; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pi-tags span { padding: 3px 9px; font-size: 0.78rem; color: #cfd4e6; background: #262b3d; border-radius: 99px; }
.pi-tags b { color: #fff; margin-left: 2px; }
.pi-hint { margin-top: 8px; color: #7e86a0; font-size: 0.72rem; }

/* Eliminar una mesa desde la lista */
.mesa-card-wrap { position: relative; }
.mesa-card-wrap .mesa-card { height: 100%; }
@media (hover: hover) {
  .mesa-card-wrap:hover .card-x { opacity: 1; }
}

/* Dibujos: tocar la imagen la abre en grande; el ▶ chico de la esquina reproduce el clip original */
.block[data-kind='drawing'] .block-thumb { cursor: zoom-in; }
.block[data-kind='drawing'] .block-thumb .play { display: none; }
.card-zoom { padding-left: 2px; font-size: 0.78rem; }
@media (hover: hover) {
  .block[data-kind='drawing'] .card-zoom { opacity: 0.92; }
}

/* El nombre del proyecto de origen es un link que lo abre */
.block-meta a, .cs-meta a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.block-meta a:hover, .cs-meta a:hover { color: var(--primary); text-decoration-color: currentColor; }
.cs-meta a { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Dibujos: la portada toma la forma de la imagen (sin bordes negros arriba y abajo) y la llena por completo */
.block-thumb img.draw-img { object-fit: cover; }
.blocks.bv-cards .block[data-kind='drawing'] .block-thumb { aspect-ratio: var(--ar, 1.7778); }

/* Reproductor con lista de clips a la izquierda (como la lista de la app, minimalista) */
.player-modal.has-list { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; width: min(1220px, 100%); }
.pl-main { min-width: 0; }
.pl-side { display: flex; flex-direction: column; min-height: 0; max-height: min(72vh, 640px); }
.pl-side-title { padding: 2px 4px 8px; font-size: 0.82rem; font-weight: 700; color: #cfd4e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-side-title small { margin-left: 6px; color: #7e86a0; font-weight: 500; }
.pl-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 4px; }
.pl-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; height: auto; width: 100%;
  padding: 7px 10px; text-align: left; color: #cfd4e6; background: transparent;
  border: 0; border-left: 3px solid transparent; border-radius: 8px; box-shadow: none;
}
.pl-item b { font-size: 0.84rem; font-weight: 600; }
.pl-item span { font-size: 0.72rem; color: #7e86a0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item:hover { background: #171c33; }
.pl-item.active { color: #fff; background: #1f2547; border-left-color: var(--primary); }
.pl-item.active span { color: #aab2c8; }
@media (max-width: 760px) {
  .player-modal.has-list { grid-template-columns: 1fr; }
  .pl-side { max-height: 150px; order: 2; }
  .pl-main { order: 1; }
}

.cs-coded { color: var(--muted); font-size: 0.7rem; opacity: 0.85; }

/* ▶ para ver todos los clips de una sección o de un tema */
[data-sec-play], [data-tema-play] { font-size: 0.8rem; padding-left: 2px; }
.icon-btn[data-sec-play]:not(:disabled), .icon-btn[data-tema-play]:not(:disabled) { color: var(--primary); }

/* Reproductor: banderas del clip y marcar clips para armar una playlist */
.pl-row { display: flex; align-items: stretch; gap: 4px; }
.pl-row .pl-item { flex: 1; min-width: 0; }
.pl-check { flex: none; align-self: center; width: 16px; height: 16px; margin-left: 4px; accent-color: var(--primary); cursor: pointer; }
.pl-mini { font-style: normal; font-size: 0.78rem; margin-left: 4px; }
.pl-selbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 4px 0; border-top: 1px solid #262b3d; color: #cfd4e6; font-size: 0.8rem; }
.pl-selbar button { height: 30px; padding: 0 12px; font-size: 0.8rem; }
.player-bar .pl-flags { display: inline-flex; gap: 4px; margin-left: auto; }
.player-bar .pl-flag { width: 36px; height: 32px; padding: 0; font-size: 1rem; background: #171c33; border: 1px solid #2a3150; opacity: 0.55; box-shadow: none; }
.player-bar .pl-flag:hover { opacity: 1; }
.player-bar .pl-flag.on { opacity: 1; border-color: var(--primary); background: #232a52; }
.player-bar .pl-markbtn { height: 32px; padding: 0 12px; font-size: 0.82rem; }
.player-bar .pl-markbtn.on { color: #fff; border-color: var(--primary); background: #232a52; }
.player-bar .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-side .pl-list { flex: 1 1 auto; min-height: 0; }
