/* SuperStories shared media viewer — Frame.io-style player with time-coded comments.
   Used by the uploader and the review page. Themed via /shared/theme.css tokens. */

.ssv { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.86); display: flex; }
.ssv-stage { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 20px; gap: 10px; }
.ssv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; }
.ssv-name { font-size: 14px; overflow-wrap: anywhere; }
.ssv-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.ssv-dl { color: #cdd6ee; font-size: 13px; text-decoration: none; }
.ssv-dl:hover { color: #fff; }
.ssv-x { background: none; border: none; color: #cdd6ee; font-size: 18px; cursor: pointer; line-height: 1; }
.ssv-x:hover { color: #fff; }
.ssv-media { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ssv-media video, .ssv-media img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #000; display: block; }

/* custom timeline with comment markers */
.ssv-track { position: relative; height: 8px; border-radius: 5px; background: rgba(255,255,255,.16); cursor: pointer; flex: none; }
.ssv-track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent, #9db4ff); border-radius: 5px; }
.ssv-marker { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; padding: 0;
  border-radius: 50%; background: #ffd479; border: 2px solid #15140f; cursor: pointer; }
.ssv-marker:hover { transform: scale(1.18); }

/* comments sidebar */
.ssv-side { width: 340px; flex: none; display: flex; flex-direction: column;
  background: var(--panel, #12151d); color: var(--text, #e9eef8);
  border-left: 1px solid var(--line, rgba(255,255,255,.1)); }
.ssv-side-h { padding: 16px 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted, #8b93a7); border-bottom: 1px solid var(--line, rgba(255,255,255,.1)); }
.ssv-list { flex: 1 1 auto; overflow-y: auto; padding: 8px; }
.ssv-empty { color: var(--muted, #8b93a7); font-size: 13px; padding: 14px; line-height: 1.5; }
.ssv-c { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; padding: 10px; border-radius: 9px; }
.ssv-c:hover { background: var(--panel-2, #171b24); }
.ssv-t { background: var(--accent-tint, rgba(157,180,255,.14)); color: var(--accent, #9db4ff);
  border: none; border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 12px; cursor: pointer; height: fit-content; }
.ssv-c-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted, #8b93a7); margin-bottom: 2px; }
.ssv-av { width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #15140f; }
.ssv-maker { color: #cdd6ee; font-size: 12px; }
.ssv-c-actions { display: flex; gap: 3px; align-items: start; }
.ssv-c-ok { background: none; border: none; cursor: pointer; font-size: 12px; color: var(--muted, #8b93a7); opacity: 0; }
.ssv-c:hover .ssv-c-ok { opacity: 1; }
.ssv-c-ok:hover { color: var(--ok, #34d27b); }
.ssv-c.resolved { opacity: .55; }
.ssv-c.resolved .ssv-c-ok { opacity: 1; color: var(--ok, #34d27b); }
.ssv-c.resolved .ssv-c-text { text-decoration: line-through; }
.ssv-c-text { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.ssv-c-x { background: none; border: none; color: var(--muted, #8b93a7); cursor: pointer; font-size: 12px; opacity: 0; }
.ssv-c:hover .ssv-c-x { opacity: 1; }
.ssv-c-x:hover { color: var(--err, #ff6b6b); }

.ssv-form { border-top: 1px solid var(--line, rgba(255,255,255,.1)); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ssv-text { width: 100%; resize: vertical; min-height: 44px; font: inherit; font-size: 13.5px;
  background: var(--input-bg, rgba(0,0,0,.28)); color: inherit;
  border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px; padding: 9px 10px; }
.ssv-text:focus { outline: none; border-color: var(--accent, #9db4ff); }
.ssv-form-row { display: flex; justify-content: space-between; gap: 8px; }
.ssv-at { background: none; border: 1px solid var(--line, rgba(255,255,255,.12)); color: var(--text, #e9eef8);
  border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ssv-at:hover { border-color: var(--accent, #9db4ff); }
.ssv-send { background: var(--accent, #9db4ff); color: var(--on-accent, #0b0d12); border: none;
  border-radius: 8px; padding: 6px 15px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }

@media (max-width: 760px) {
  .ssv { flex-direction: column; }
  .ssv-side { width: auto; height: 44vh; border-left: none; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
}
