/* blog.css — blog listing, post detail, admin, chess board */

/* ─── Blog Header ────────────────────────────────────────────────────────────── */
.blog-header { background: #0d1117; padding: 3.5rem 2rem 4rem; }
.blog-header-inner { max-width: 900px; margin: 0 auto; }
.blog-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.4); font-size: 13px; text-decoration: none;
  cursor: pointer; margin-bottom: 1.5rem; transition: color .13s;
  background: none; border: none; font-family: inherit; padding: 0;
}
.blog-back:hover { color: rgba(255,255,255,.8); }
.blog-header-title {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700;
  color: #fff; margin-bottom: 0.75rem; line-height: 1.15;
}
.blog-header-sub { font-size: 15px; color: rgba(255,255,255,.5); max-width: 520px; line-height: 1.65; }

/* ─── Blog Body ───────────────────────────────────────────────────────────── */
.blog-body { background: #f0f2f7; padding: 2.5rem 2rem 5rem; margin-top: -1.25rem; }
.blog-inner { max-width: 1100px; margin: 0 auto; }

/* ─── Filter Tabs ─────────────────────────────────────────────────────────── */
.blog-filters { display: flex; gap: 8px; margin-bottom: 2rem; flex-wrap: wrap; }
.blog-filter-btn {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; border: 1.5px solid transparent;
  background: #fff; color: #555; transition: all .15s;
}
.blog-filter-btn:hover { border-color: #C9943A; color: #C9943A; }
.blog-filter-btn.active { background: #C9943A; color: #fff; border-color: #C9943A; }

/* ─── Posts Grid ──────────────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ─── Post Card ───────────────────────────────────────────────────────────── */
.post-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; cursor: pointer; text-decoration: none;
}
.post-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.post-card-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card-cover-placeholder {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1f3c 0%, #0d1117 100%);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.post-card-body { padding: 1.25rem 1.4rem 1rem; flex: 1; display: flex; flex-direction: column; }
.post-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.post-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.post-cat.noticia  { background: rgba(201,148,58,.12); color: #C9943A; }
.post-cat.analisis { background: rgba(24,95,165,.1);   color: #185FA5; }
.post-card-date { font-size: 11px; color: #aaa; }
.post-card-title { font-size: 16px; font-weight: 700; color: #1a1f3c; margin-bottom: 0.6rem; line-height: 1.35; }
.post-card-excerpt {
  font-size: 13px; color: #6b7280; line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
  padding: 0.75rem 1.4rem 1.1rem; border-top: 0.5px solid rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.post-card-read { font-size: 12px; font-weight: 600; color: #C9943A; }
.post-card-board-badge { font-size: 11px; color: #999; display: flex; align-items: center; gap: 4px; }

/* ─── States ──────────────────────────────────────────────────────────────── */
.posts-empty, .posts-loading { text-align: center; padding: 4rem 1rem; color: #aaa; font-size: 14px; }

/* ─── Blog Post Detail ────────────────────────────────────────────────────── */
.bp-header { background: #0d1117; padding: 3rem 2rem 4rem; }
.bp-header-inner { max-width: 860px; margin: 0 auto; }
.bp-cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 1rem;
}
.bp-cat.noticia  { background: rgba(201,148,58,.2); color: #e8ab4d; }
.bp-cat.analisis { background: rgba(24,95,165,.2);  color: #5da1e8; }
.bp-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.bp-meta { font-size: 13px; color: rgba(255,255,255,.45); }
.bp-body { background: #f0f2f7; padding: 0 2rem 5rem; margin-top: -1.25rem; }
.bp-inner { max-width: 860px; margin: 0 auto; padding-top: 2.5rem; }
.bp-cover { width: 100%; border-radius: 14px; display: block; margin-bottom: 2rem; max-height: 400px; object-fit: cover; }
.bp-text {
  background: #fff; border-radius: 14px; padding: 2rem 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); margin-bottom: 2rem;
}
.bp-text p  { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 1.25rem; }
.bp-text p:last-child { margin-bottom: 0; }
.bp-text h2 { font-size: 1.35rem; font-weight: 700; color: #1a1f3c; margin: 1.75rem 0 0.75rem; }
.bp-text h3 { font-size: 1.1rem;  font-weight: 600; color: #1a1f3c; margin: 1.25rem 0 0.5rem; }
.bp-text strong { color: #1a1f3c; }
.bp-text hr { border: none; border-top: 1.5px solid rgba(0,0,0,.08); margin: 1.5rem 0; }
.bp-not-found { text-align: center; padding: 5rem 2rem; color: #aaa; font-size: 15px; }

/* ─── Chess Section ───────────────────────────────────────────────────────── */
.bp-chess-section {
  background: #fff; border-radius: 14px; padding: 1.75rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); margin-bottom: 2rem;
}
.bp-chess-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #C9943A; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px;
}
.bp-chess-inner { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.blg-board-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; }

/* Chess board grid */
.blg-board {
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  width: 340px; height: 340px;
  border: 2px solid #555; border-radius: 3px; overflow: hidden; flex-shrink: 0;
}
.blg-sq { display: flex; align-items: center; justify-content: center; position: relative; }
.blg-sq.l { background: #f0d9b5; }
.blg-sq.d { background: #b58863; }
.blg-sq img { width: 88%; height: 88%; display: block; pointer-events: none; }
.blg-sq.hl::after { content:''; position:absolute; inset:0; background:rgba(255,200,0,.4); }

/* Controls */
.blg-controls { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.blg-nav-controls { width: 340px; justify-content: space-around; margin-left: 0; }
.blg-ctrl-btn {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15);
  background: #fff; cursor: pointer; font-size: 13px; display: flex;
  align-items: center; justify-content: center; color: #555; transition: all .12s;
}
.blg-ctrl-btn:hover:not(:disabled) { background: #f0f0f0; border-color: rgba(0,0,0,.3); }
.blg-ctrl-btn:disabled { opacity: .35; cursor: default; }
.blg-move-info { font-size: 11px; color: #888; margin-left: 6px; }

/* Move list */
.blg-moves-panel { flex: 1; min-width: 180px; max-width: 320px; }
.blg-moves-header { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #aaa; text-transform: uppercase; margin-bottom: 8px; }
.blg-moves-list { font-size: 13px; line-height: 2.1; max-height: 320px; overflow-y: auto; color: #333; }
.blg-move-num { color: #bbb; margin-right: 2px; }
.blg-move {
  display: inline-block; padding: 0 4px; border-radius: 4px;
  cursor: pointer; margin-right: 2px; transition: background .1s;
}
.blg-move:hover  { background: rgba(201,148,58,.15); }
.blg-move.active { background: #C9943A; color: #fff; }
.blg-comment {
  font-size: 12px; color: #666; font-style: italic; padding: 3px 8px;
  background: #f8f8f8; border-radius: 5px; margin: 2px 0; display: block;
}

/* ─── Admin Page ──────────────────────────────────────────────────────────── */
.ba-header { background: #0d1117; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.ba-header-brand { display: flex; align-items: center; gap: 10px; }
.ba-header-brand img { height: 32px; width: auto; }
.ba-header-brand-text { font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.ba-header-nav { display: flex; align-items: center; gap: 1.25rem; }
.ba-header-link { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .13s; cursor: pointer; background: none; border: none; font-family: inherit; }
.ba-header-link:hover { color: rgba(255,255,255,.8); }
.ba-header-tag { font-size: 13px; color: rgba(255,255,255,.2); }

.ba-body { padding: 2rem 2rem 4rem; background: #f0f2f7; min-height: calc(100vh - 60px); }
.ba-inner { max-width: 1100px; margin: 0 auto; }
.ba-section-title { font-size: 15px; font-weight: 600; color: #1a1f3c; margin-bottom: 1rem; }

/* Post list table */
.ba-posts-table { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
.ba-table-head {
  display: grid; grid-template-columns: 1fr 110px 90px 100px 120px;
  padding: 10px 16px; font-size: 11px; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 0.5px solid rgba(0,0,0,.08);
}
.ba-table-row {
  display: grid; grid-template-columns: 1fr 110px 90px 100px 120px;
  padding: 14px 16px; align-items: center; border-bottom: 0.5px solid rgba(0,0,0,.06); font-size: 13px;
}
.ba-table-row:last-child { border-bottom: none; }
.ba-table-row:hover { background: #fafafa; }
.ba-row-title { font-weight: 500; color: #1a1f3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.ba-row-actions { display: flex; gap: 6px; }
.ba-row-btn { padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: inherit; border: none; font-weight: 500; }
.ba-row-btn.edit { background: #185FA5; color: #fff; }
.ba-row-btn.edit:hover { background: #0C447C; }
.ba-row-btn.del { background: none; border: 1px solid #A32D2D; color: #A32D2D; }
.ba-row-btn.del:hover { background: #A32D2D; color: #fff; }
.ba-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.ba-status.published { background: #EAF3DE; color: #27500A; }
.ba-status.draft { background: #f0f0f0; color: #888; }

/* Editor */
.ba-editor-title { font-size: 18px; font-weight: 700; color: #1a1f3c; margin-bottom: 1.75rem; }
.ba-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.ba-form-card { background: #fff; border-radius: 14px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.07); margin-bottom: 16px; }
.ba-form-card-title { font-size: 12px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.ba-field { margin-bottom: 1rem; }
.ba-field:last-child { margin-bottom: 0; }
.ba-field label { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 6px; }
.ba-field input, .ba-field select, .ba-field textarea {
  width: 100%; border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; font-family: inherit; outline: none;
  background: #fff; color: #111; transition: border-color .13s; resize: vertical;
}
.ba-field input:focus, .ba-field select:focus, .ba-field textarea:focus { border-color: #C9943A; }
.ba-field textarea.content-area { height: 200px; }
.ba-field textarea.pgn-area { height: 130px; font-family: monospace; font-size: 12px; }

/* Chess toggle */
.ba-chess-toggle-row { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; border-top: 0.5px solid rgba(0,0,0,.08); margin-top: 4px; }
.ba-chess-toggle-label { font-size: 13px; font-weight: 500; color: #333; cursor: pointer; user-select: none; }
input[type="checkbox"].ba-toggle {
  width: 36px; height: 20px; appearance: none; background: #ddd;
  border-radius: 10px; cursor: pointer; position: relative; transition: background .13s;
  border: none; flex-shrink: 0; padding: 0;
}
input[type="checkbox"].ba-toggle:checked { background: #C9943A; }
input[type="checkbox"].ba-toggle::after {
  content: ''; position: absolute; width: 16px; height: 16px; background: #fff;
  border-radius: 50%; top: 2px; left: 2px; transition: transform .13s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input[type="checkbox"].ba-toggle:checked::after { transform: translateX(16px); }

.ba-board-type-tabs { display: flex; gap: 6px; margin-bottom: 1rem; }
.ba-board-type-btn {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit; border: 1.5px solid rgba(0,0,0,.15);
  background: #fff; color: #555; transition: all .13s;
}
.ba-board-type-btn.active { background: #1a1f3c; color: #fff; border-color: #1a1f3c; }

.ba-board-preview { margin-top: 1rem; }
.ba-board-preview .blg-board { width: 100%; height: auto; aspect-ratio: 1; }
.ba-preview-wrap { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border: 2px solid #555; border-radius: 3px; overflow: hidden; }

/* Editor actions */
.ba-editor-actions { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }
.ba-save-btn {
  padding: 10px 22px; border: none; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity .13s;
}
.ba-save-btn:hover { opacity: .85; }
.ba-save-btn.publish { background: #C9943A; color: #fff; }
.ba-save-btn.draft   { background: #1a1f3c; color: #fff; }
.ba-save-btn.cancel  { background: none; border: 1.5px solid rgba(0,0,0,.2); color: #555; }

/* Auth error */
.ba-auth-error { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f0f2f7; }
.ba-auth-card { background: #fff; border-radius: 16px; padding: 2.5rem; text-align: center; max-width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.ba-auth-card h2 { color: #1a1f3c; margin-bottom: 0.75rem; font-size: 1.25rem; }
.ba-auth-card p { color: #666; font-size: 13px; margin-bottom: 1.5rem; line-height: 1.6; }
.ba-auth-card a { color: #C9943A; text-decoration: none; font-weight: 600; }

/* nav link active state (blog pages) */
.nav-links a.nav-active { color: #fff !important; }

/* ─── Nuevas categorías ───────────────────────────────────────────────────── */
.post-cat.tactica  { background: rgba(59,109,17,.1);  color: #3B6D11; }
.post-cat.apertura { background: rgba(83,74,183,.1);  color: #534AB7; }
.post-cat.finales  { background: rgba(133,79,11,.1);  color: #854F0B; }
.post-cat.torneo   { background: rgba(12,124,107,.1); color: #0C7C6B; }
.bp-cat.tactica  { background: rgba(59,109,17,.2);  color: #5a9e3c; }
.bp-cat.apertura { background: rgba(83,74,183,.2);  color: #8a82e0; }
.bp-cat.finales  { background: rgba(133,79,11,.2);  color: #c47f2a; }
.bp-cat.torneo   { background: rgba(12,124,107,.2); color: #2baa93; }

/* ─── Blog post — contenido enriquecido ───────────────────────────────────── */
.bp-text blockquote.bp-quote {
  border-left: 4px solid #C9943A; margin: 1.25rem 0;
  padding: 0.75rem 1rem; background: #fffbf3; border-radius: 0 8px 8px 0;
  font-style: italic; color: #555;
}
.bp-text .bp-list { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.bp-text .bp-list li { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 4px; }
.bp-text .bp-figure { margin: 1.5rem 0; text-align: center; }
.bp-text .bp-figure img { width:100%; border-radius: 10px; max-height: 500px; object-fit: cover; display:block; }
.bp-figure figcaption.bp-img-caption {
  font-size: 12px; color: #999; margin-top: 6px; font-style: italic;
}
/* Tablero de ajedrez inline en el artículo */
.bp-board-block {
  background: #fff; border-radius: 14px; padding: 1.5rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); margin: 1.5rem 0;
}
.bp-board-caption {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #C9943A; margin-bottom: 1rem;
}
.bp-board-block .blg-board { width: 340px; height: 340px; }
@media (max-width: 480px) { .bp-board-block .blg-board { width: 100%; height: auto; aspect-ratio: 1; } }

/* Etiquetas del artículo */
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }
.bp-tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: rgba(0,0,0,.05); color: #555; text-transform: lowercase;
}

/* ─── Editor de bloques ───────────────────────────────────────────────────── */
.be-editor {
  border: 1px solid rgba(0,0,0,.12); border-radius: 10px;
  padding: 8px 0; min-height: 120px; background: #fafafa;
}

/* Bloque */
.be-block {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 4px 8px; border-radius: 8px; margin: 2px 6px;
  position: relative;
}
.be-block:hover { background: rgba(0,0,0,.025); }
.be-block:hover .be-block-side { opacity: 1; }

.be-block-side { opacity: 0; transition: opacity .13s; display: flex; flex-direction: column; padding-top: 8px; flex-shrink: 0; }
.be-block-btns { display: flex; flex-direction: column; gap: 2px; }
.be-btn {
  width: 22px; height: 22px; border: none; border-radius: 5px; background: rgba(0,0,0,.06);
  color: #666; font-size: 11px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; padding: 0; transition: background .1s;
}
.be-btn:hover { background: rgba(0,0,0,.13); }
.be-btn-del:hover { background: #A32D2D; color: #fff; }

.be-block-body { flex: 1; min-width: 0; padding: 4px 0; }

/* Editables */
.be-editable {
  outline: none; min-height: 1.6em; line-height: 1.7; color: #111;
  border-radius: 6px; padding: 4px 6px; transition: background .1s;
  word-break: break-word;
}
.be-editable:focus { background: rgba(201,148,58,.04); }
.be-editable:empty::before {
  content: attr(data-placeholder); color: #bbb; pointer-events: none;
}
.be-paragraph { font-size: 14px; }
.be-heading2  { font-size: 1.35rem; font-weight: 700; color: #1a1f3c; }
.be-heading3  { font-size: 1.1rem;  font-weight: 600; color: #1a1f3c; }
.be-quote {
  border-left: 4px solid #C9943A; padding-left: 12px !important;
  font-style: italic; color: #555; font-size: 14px;
}
.be-list {
  outline: none; padding-left: 1.5rem; margin: 0; font-size: 14px;
  color: #111; line-height: 1.7;
}
.be-list:focus { background: rgba(201,148,58,.04); border-radius: 6px; }
.be-divider { border: none; border-top: 2px solid rgba(0,0,0,.1); margin: 8px 6px; }

/* Imagen */
.be-img-wrap { padding: 6px; }
.be-img-url-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.be-img-url-input {
  flex: 1; min-width: 200px; border: 1px solid rgba(0,0,0,.15); border-radius: 7px;
  padding: 7px 10px; font-size: 12px; font-family: inherit; outline: none; color: #111;
}
.be-img-url-input:focus { border-color: #C9943A; }
.be-img-status { font-size: 11px; color: #888; }
.be-img-preview { margin-bottom: 8px; }
.be-img-preview-img { width: 100%; border-radius: 8px; max-height: 260px; object-fit: cover; display: block; }
.be-img-caption-input {
  width: 100%; border: 1px solid rgba(0,0,0,.1); border-radius: 7px;
  padding: 6px 10px; font-size: 12px; font-family: inherit; outline: none; color: #666;
  box-sizing: border-box;
}
.be-img-caption-input:focus { border-color: #C9943A; }

/* Tablero bloque */
.be-board-wrap { padding: 8px; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; background: #fff; }
.be-board-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.be-board-label { font-size: 12px; font-weight: 700; color: #C9943A; letter-spacing: .04em; }
.be-board-toggle-cfg {
  font-size: 11px; background: none; border: 1px solid rgba(0,0,0,.15); border-radius: 6px;
  padding: 3px 10px; cursor: pointer; color: #555; font-family: inherit;
}
.be-board-cfg { margin-bottom: 10px; }
.be-board-type-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.be-board-tab {
  padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 500;
  cursor: pointer; font-family: inherit; border: 1.5px solid rgba(0,0,0,.15);
  background: #fff; color: #555; transition: all .13s;
}
.be-board-tab.active { background: #1a1f3c; color: #fff; border-color: #1a1f3c; }
.be-board-fen, .be-board-caption-input {
  width: 100%; border: 1px solid rgba(0,0,0,.15); border-radius: 7px;
  padding: 8px 10px; font-size: 12px; font-family: inherit; outline: none; color: #111;
  box-sizing: border-box; margin-bottom: 6px;
}
.be-board-fen:focus, .be-board-caption-input:focus { border-color: #C9943A; }
.be-board-pgn {
  width: 100%; border: 1px solid rgba(0,0,0,.15); border-radius: 7px;
  padding: 8px 10px; font-size: 11px; font-family: monospace; outline: none; color: #111;
  box-sizing: border-box; resize: vertical; margin-bottom: 6px;
}
.be-board-pgn:focus { border-color: #C9943A; }
.be-board-orientation { border: 1px solid rgba(0,0,0,.15); border-radius: 7px; padding: 7px 10px; font-size: 12px; font-family: inherit; outline: none; background: #fff; }
.be-board-preview-wrap { margin-top: 8px; }
.be-board-preview-wrap .blg-board { width: 200px; height: 200px; }

/* Toolbar inline */
.be-inline-tb {
  position: absolute; z-index: 9999;
  display: flex; gap: 2px; background: #1a1f3c; border-radius: 8px;
  padding: 4px 6px; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.be-tb-btn {
  background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer;
  border-radius: 5px; width: 28px; height: 26px; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s; font-family: inherit;
}
.be-tb-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Barra añadir bloque */
.be-add-bar { padding: 8px 12px; }
.be-add-trigger {
  background: none; border: 1.5px dashed rgba(0,0,0,.2); border-radius: 8px;
  width: 100%; padding: 8px; font-size: 13px; color: #999; cursor: pointer;
  font-family: inherit; transition: all .13s;
}
.be-add-trigger:hover { border-color: #C9943A; color: #C9943A; background: rgba(201,148,58,.04); }
.be-add-menu {
  background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08); margin-top: 6px; overflow: hidden;
}
.be-add-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 16px; font-size: 13px; color: #333; cursor: pointer; font-family: inherit;
  transition: background .1s;
}
.be-add-item:hover { background: rgba(201,148,58,.07); color: #1a1f3c; }

/* Tags input */
.be-tags-wrap {
  min-height: 40px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
  padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  cursor: text; background: #fff;
}
.be-tags-wrap:focus-within { border-color: #C9943A; }
.be-tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f0f2f7; border-radius: 20px; padding: 3px 10px 3px 12px;
  font-size: 12px; color: #444; font-weight: 500;
}
.be-tag-del {
  background: none; border: none; cursor: pointer; color: #999;
  font-size: 13px; padding: 0; line-height: 1; display: flex; align-items: center;
}
.be-tag-del:hover { color: #A32D2D; }
.be-tags-input {
  border: none; outline: none; font-family: inherit; font-size: 13px;
  color: #111; background: transparent; min-width: 140px; flex: 1; padding: 2px 0;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blg-board { width: 100%; height: auto; aspect-ratio: 1; }
  .blg-nav-controls { width: 100%; }
  .bp-chess-inner { flex-direction: column; }
  .blg-moves-panel { max-width: 100%; min-width: unset; }
  .bp-text { padding: 1.25rem 1.5rem; }
  .ba-form-grid { grid-template-columns: 1fr; }
  .ba-table-head, .ba-table-row { grid-template-columns: 1fr 90px 90px; }
  .ba-table-head > *:nth-child(3),
  .ba-table-row  > *:nth-child(3),
  .ba-table-head > *:nth-child(4),
  .ba-table-row  > *:nth-child(4) { display: none; }
}
