/* Marca Rebeldes (C:\Claude Code\Rebeldes\marca\marca.md), versión contenida: el vídeo manda */
:root {
  --bg: #0D0D0F; --surface: #17171A; --ink: #0D0D0F;
  --text: #F0ECE1; --text-2: #DDD6C4; --text-3: #CFC7B2;
  --line: rgba(240, 236, 225, .18);
  --orange: #E66F4A; --orange-light: #F28A66;
  --holo: linear-gradient(115deg, #bfeaff, #e0c3ff, #ffc6e2, #fff2bf, #c6ffd9);
  --fd: 'Space Grotesk', system-ui, sans-serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --fm: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--text); font-family: var(--fb); font-size: 16px; line-height: 1.6; min-height: 100vh; }
.grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 42px 42px; }
.mono { font-family: var(--fm); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Cabecera */
.top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.marca { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marca img { display: block; border-radius: 7px; }
.marca span { font-family: var(--fm); font-weight: 700; font-size: 13px; letter-spacing: .16em; }
.para { color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.para:empty { display: none; }

/* Vídeo + panel de comentarios */
.layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 28px 24px 56px; align-items: start; }
.player { border: 1.5px solid transparent; border-radius: 14px; background: linear-gradient(#000, #000) padding-box, var(--holo) border-box; overflow: hidden; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.marcas { position: relative; height: 18px; margin: 8px 0 0; }
.marcas button { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange); border: 2px solid var(--bg); cursor: pointer; transition: transform .12s; }
.marcas button:hover { transform: scale(1.3); }
.marcas::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); border-radius: 1px; }
.marcas:not(:has(button)) { display: none; }
h1 { font-family: var(--fd); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.1; margin: 18px 0 14px; }
.autora { display: flex; align-items: center; gap: 12px; }
.autora img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.autora b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.autora span { color: var(--text-3); font-size: 13px; }
.aviso { color: var(--text-3); font-size: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; position: sticky; top: 24px; max-height: calc(100vh - 48px); }
.panel-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
h2 { font-family: var(--fd); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.cuenta { color: var(--text-3); }
.lista { list-style: none; overflow-y: auto; padding: 8px; display: grid; gap: 2px; align-content: start; flex: 1; min-height: 120px; }
.lista li { padding: 10px; border-radius: 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.lista li:hover { background: rgba(240,236,225,.04); }
.lista .at { font-family: var(--fm); font-size: 12px; color: var(--ink); background: var(--orange-light); border: 0; border-radius: 6px; padding: 2px 7px; cursor: pointer; grid-row: span 2; align-self: start; margin-top: 2px; }
.lista .autor { font-weight: 600; font-size: 14px; }
.lista .cuerpo { color: var(--text-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.lista .vacio { display: block; color: var(--text-2); font-size: 14px; padding: 14px 10px; }
.lista .vacio:hover { background: none; }
.nuevo { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
label { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); }
input, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
textarea::placeholder { color: var(--text-3); }
.enviar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-o { background: var(--orange); color: var(--ink); font-family: var(--fm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; padding: 12px 18px; border-radius: 10px; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn-o:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230,111,74,.35); }
.btn-o:disabled { background: rgba(240,236,225,.12); color: var(--text-3); cursor: wait; transform: none; box-shadow: none; }
.estado { color: var(--text-2); font-size: 13px; }
.error { background: var(--surface); border: 1px solid var(--orange); border-radius: 14px; padding: 22px; color: var(--text); }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 16px 16px 40px; gap: 22px; }
  .panel { position: static; max-height: none; }
  .top { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .btn-o, .marcas button { transition: none; } }
