/* Referencias: un tablero tipo Pinterest. Usa las superficies y colores del tema oscuro de Grilla. */
.ref-add { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; display: grid; gap: 8px; }
.ref-add-label { font-size: 13px; font-weight: 600; }
.ref-add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ref-paste, .ref-search { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; min-width: 0; }
.ref-filters { display: grid; gap: 10px; margin-bottom: 14px; }
.ref-grid { columns: 3 280px; column-gap: 12px; }
.ref-card { break-inside: avoid; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; overflow-wrap: anywhere; }
.ref-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; }
.ref-platform { font-weight: 700; border-radius: 6px; padding: 2px 7px; background: var(--surface-raised); }
.ref-platform.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.ref-platform.tiktok { background: #111; color: #fff; box-shadow: inset 0 0 0 1px #25f4ee; }
.ref-platform.youtube { background: #ff0000; color: #fff; }
.ref-account { color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 1px 7px; }
.ref-link { margin-left: auto; color: var(--muted); text-decoration: none; }
.ref-link:hover { color: var(--text); }
.ref-media-slot:empty { display:none; }
.ref-video { display:block; width:100%; max-height:600px; border-radius:10px; background:#000; object-fit:contain; }
.ref-video-player { position:relative; }
.ref-video-launch { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:64px; height:64px; display:grid; place-items:center; border:1px solid #ffffff99; border-radius:50%; background:#000b; color:#fff; cursor:pointer; font-size:26px; }
.ref-video-launch[hidden] { display:none; }
.ref-video-launch:hover { background:#000e; }
.ref-video-status { min-height:180px; padding:24px 16px; border-radius:10px; background:var(--bg); color:var(--muted); display:grid; gap:10px; align-content:center; text-align:center; }
.ref-video-status > span { font-size:30px; }
.ref-video-status p { margin:0; color:var(--text); font-size:14px; line-height:1.5; }
.ref-video-status small,.ref-video-actions small { font-size:12px; line-height:1.5; }
.ref-video-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.ref-video-actions small { flex-basis:100%; color:var(--muted); }
.ref-upload { display:inline-flex; cursor:pointer; position:relative; }
.ref-upload input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.ref-upload:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.ref-video-error { font-size:12px; color:var(--muted); }
.ref-embed { display:block; width:100%; height:420px; border:0; border-radius:10px; background:var(--bg); }
.ref-embed.instagram { height:600px; }
.ref-embed.tiktok { height:740px; }
.ref-video-note { margin:8px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.ref-play { aspect-ratio: 9 / 12; width: 100%; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: #fff; display: grid; place-content: center; gap: 6px; background: radial-gradient(circle at 30% 20%, #3b2d63, #121019 70%); }
.ref-play.instagram { background: radial-gradient(circle at 30% 20%, #8134af, #2a1033 70%); }
.ref-play.tiktok { background: radial-gradient(circle at 30% 20%, #0f5f5d, #0a0a0a 70%); }
.ref-play.youtube { background: radial-gradient(circle at 30% 20%, #7a1010, #160505 70%); }
.ref-play span { font-size: 34px; }
.ref-embed { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.ref-embed.youtube { aspect-ratio: 16 / 9; }
.ref-embed.instagram { aspect-ratio: 4 / 6; }
.ref-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ref-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.ref-reason { border: 0; border-radius: 20px; padding: 3px 9px; font: inherit; font-size: 11px; cursor: pointer; background: var(--accent-soft); color: var(--accent-text); }
.ref-note { margin: 0; font-size: 14px; line-height: 1.45; }
.ref-card audio, .ref-recorder audio { width: 100%; height: 36px; }
.ref-transcript summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.ref-transcript p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--text); font-style: italic; }
.ref-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 11px; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.references-dialog { width: 640px; }
.ref-form-url { margin: 0 0 12px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ref-recorder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.ref-recorder small { color: var(--muted); font-size: 11px; flex-basis: 100%; }
.ref-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: ref-blink 1s infinite; }
@keyframes ref-blink { 50% { opacity: .2; } }
@media (max-width: 640px) { .ref-add-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ref-rec-dot { animation: none; } }
