/* Videographer production portal — page styles layered on /assets/styles.css.
   Same RSA palette and components; only what this page adds lives here. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The two-column video layout wants a little more room than the upload page. */
main { max-width: 72rem; }

.button:focus-visible, .linklike:focus-visible, .note-time:focus-visible,
.backlink:focus-visible, .vg-table a.vg-link:focus-visible {
  outline: 2px solid var(--evergreen); outline-offset: 2px;
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dash-toolbar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0.9rem 0 0.4rem;
}
.toolbar-spacer { flex: 1; }

.vg-table a.vg-link {
  color: var(--evergreen-dark); font-weight: bold; text-decoration: none;
}
.vg-table a.vg-link:hover, .vg-table a.vg-link:focus { text-decoration: underline; }
tr.vg-row { cursor: pointer; }
tr.vg-row:hover { background: #f0f4ee; }
tr.vg-row:focus-within { outline: 2px solid var(--evergreen); outline-offset: -2px; }

.tag-edit {
  display: inline-block; margin-left: 0.45rem; padding: 0.05rem 0.45rem;
  border-radius: 999px; background: #e7ebf2; color: var(--navy);
  font-size: 0.68rem; font-weight: bold; text-transform: uppercase;
  letter-spacing: 0.04em; vertical-align: middle;
}

.check { color: var(--ok); font-weight: bold; }
.mark-date { margin-left: 0.35rem; }
.dash-blank { color: var(--muted); }

.pill.problem {
  background: #f7dcdc; color: var(--danger);
  max-width: 16rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: bottom;
}
.pill.open { background: #fdf3dd; color: #8a6414; }
.pill.done { background: #e2f1e6; color: var(--ok); }

.empty-state {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: 8px; padding: 2.5rem 1.5rem; text-align: center; margin: 1rem 0;
}
.empty-state b {
  display: block; font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem; color: var(--evergreen-dark); margin-bottom: 0.35rem;
}
.empty-state span {
  display: block; color: var(--muted); font-size: 0.9rem;
  max-width: 34rem; margin: 0 auto;
}

/* ── Video page ──────────────────────────────────────────────────────────── */
.backline { margin: 1rem 0 -0.4rem; }
.backlink { color: var(--evergreen); text-decoration: none; font-size: 0.9rem; }
.backlink:hover { text-decoration: underline; }

.video-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0 1rem; align-items: start;
}
.video-main, .video-side { min-width: 0; }
.panel-title { margin-top: 0; }

.player-card { padding: 0.7rem; }
#player {
  display: block; width: 100%; max-height: 62vh;
  background: #000; border-radius: 5px;
}
#player-note { margin: 0.5rem 0.2rem 0.1rem; }

.meta-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem;
  margin: 0; font-size: 0.88rem;
}
.meta-grid dt {
  color: var(--muted); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding-top: 0.2rem;
}
.meta-grid dd { margin: 0; overflow-wrap: anywhere; }

/* ── Action bar ──────────────────────────────────────────────────────────── */
.action-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.action-bar .button { margin-top: 0; }
.done-chip {
  display: inline-flex; align-items: center; background: #e2f1e6;
  color: var(--ok); border-radius: 5px; padding: 0.45rem 0.8rem;
  font-size: 0.85rem; font-weight: bold;
}
.problem-box {
  border-left: 4px solid var(--danger); background: #fbeeee;
  border-radius: 4px; padding: 0.6rem 0.8rem; margin: 0 0 0.8rem;
  font-size: 0.9rem;
}
.problem-box .linklike { margin-left: 0.4rem; }
#action-message { margin-top: 0.8rem; }
#problem-form { margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.2rem; }

.composer-buttons { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.composer-buttons .button { margin-top: 0; }

/* ── Notes ───────────────────────────────────────────────────────────────── */
#note-form { margin-top: 0.7rem; }
#note-at-label { margin: 0.5rem 0 0.2rem; }
#notes-list { margin-top: 0.9rem; }
.note { border-top: 1px solid var(--line); padding: 0.55rem 0 0.5rem; }
.note.reply { margin-left: 1.4rem; border-top: 1px dashed var(--line); }
.note-head { display: flex; gap: 0.55rem; align-items: baseline; }
.note-time {
  background: #eef1ea; border: 1px solid var(--line); border-radius: 4px;
  color: var(--evergreen-dark); font-family: Consolas, Menlo, monospace;
  font-size: 0.78rem; font-weight: bold; padding: 0.05rem 0.4rem;
  cursor: pointer; flex: none;
}
.note-time:hover { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.92rem; }
.note-meta {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.25rem;
  flex-wrap: wrap;
}
.note-actions { display: inline-flex; gap: 0.7rem; }
.note-actions .linklike { font-size: 0.8rem; }
.reply-composer { margin: 0.5rem 0 0.3rem 1.4rem; }

/* ── Narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .video-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* The dashboard table becomes a stack of cards. */
  #video-table thead { display: none; }
  #video-table, #video-table tbody, #video-table tr, #video-table td {
    display: block; width: 100%;
  }
  tr.vg-row { border-bottom: 2px solid var(--line); padding: 0.45rem 0.2rem; }
  tr.vg-row:last-child { border-bottom: none; }
  #video-table td {
    display: flex; justify-content: space-between; gap: 1rem;
    border-bottom: none; padding: 0.18rem 0.5rem; text-align: right;
  }
  #video-table td::before {
    content: attr(data-label);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted); font-weight: bold; text-align: left;
    flex: none; padding-top: 0.15rem;
  }
  .pill.problem { max-width: 11rem; }
}
