/* Vidsmith additions — on top of styles.css (shared look with Podsmith) and pro.css */

/* Preview player */
.viewer { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; position: relative; }
.viewer video { display: block; width: 100%; max-height: 52vh; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface); }
.vbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.vbtn .pi { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.vbtn.playing .pi { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; margin: 0; }
.v-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; min-width: 64px; }
.v-hint { color: var(--faint); font-size: 12.5px; margin-left: auto; }
.viewer.no-video video { display: none; }
.viewer.no-video::before { content: 'Preview not available for this format. You can still trim by ear.'; display: block; padding: 22px; color: #bbb; font-size: 14px; text-align: center; }

/* Start / end frame thumbnails */
.point-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.frame-wrap { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.frame { display: block; width: 100%; height: 100%; }
.time-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.time-col .time { width: 150px; }

/* Settings groups */
.group-k { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 6px 0 -4px; }

/* Call to action */
.cta-left { display: flex; flex-direction: column; gap: 2px; }
.cta-mode { font-size: 13px; color: var(--muted); }
.cta-mode b { color: var(--ink); font-weight: 600; }
.cta-mode .fast { color: var(--good); font-weight: 600; }

/* Working */
.stage-fine { color: var(--faint); font-size: 12.5px; margin: 6px 0 14px; }

/* Done */
.done.vdone { max-width: 760px; }
.done video { width: 100%; border-radius: 12px; background: #000; margin: 4px 0 20px; max-height: 60vh; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Panels (thumbnail, publish) */
.panel { text-align: left; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 24px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.seg.small { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
.seg.small button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
#pub-privacy { grid-template-columns: repeat(4, 1fr); }
#pub-privacy.three { grid-template-columns: repeat(3, 1fr); }

.thumb-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.thumb-stage { border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.thumb-stage canvas { display: block; width: 100%; height: 100%; }
.thumb-controls { display: flex; flex-direction: column; gap: 10px; }
.thumb-controls .field { margin: 0; }
.thumb-controls input[type=range] { width: 100%; accent-color: var(--accent); }
.th-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.th-picks button { border: 2px solid transparent; border-radius: 6px; padding: 0; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.th-picks button.on { border-color: var(--accent); }
.th-picks canvas { display: block; width: 100%; height: 100%; }

.pub-checks { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 8px; }
.check-row { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.pub-show .link-btn { margin-left: 6px; }

/* Connections modal */
.conn-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px; background: var(--bg); border-radius: 12px; margin-top: 10px; }
.conn-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.conn-ic.yt { background: #FF0033; }
.conn-ic.vm { background: #17D5FF; color: #0B2236; }
.conn-meta { display: flex; flex-direction: column; min-width: 0; }
.conn-meta span { font-size: 12.5px; color: var(--muted); }
.conn-row.off { opacity: .55; }

.modal-card.wide { max-width: 680px; width: 100%; }

.browser-note { max-width: 560px; margin: 18px auto 0; font-size: 13.5px; color: #C92A2A; background: rgba(224, 49, 49, .07); border-radius: 10px; padding: 10px 14px; }

@media (max-width: 720px) {
  .thumb-grid { grid-template-columns: 1fr; }
  .frame-wrap { width: 96px; }
  .time-col .time { width: 120px; font-size: 22px; }
  .v-hint { display: none; }
  #pub-privacy { grid-template-columns: repeat(2, 1fr); }
}
.magic-sum { margin-top: 18px; }

/* Sound-board audio */
.io-head h3 .opt { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--faint); margin-left: 6px; }
.io-fmt { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--faint); margin-left: 6px; }
.board-full { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.board-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.board-top .io-meta { min-width: 0; }
.board-top .io-dur { white-space: normal; }
.board-choose { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-k { font-size: 13px; font-weight: 600; }
.board .seg { background: var(--surface); }
.board-mix { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.board-mix input { flex: 1; max-width: 320px; accent-color: var(--accent); }
.board-mix b { color: var(--ink); font-weight: 600; min-width: 84px; }
.board-note { margin: 0; font-size: 13px; color: #B35C00; background: rgba(245, 159, 0, .1); border-radius: 8px; padding: 8px 10px; }
.board-fine summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.board-fine p { margin: 8px 0; font-size: 13px; color: var(--muted); }
.nudge { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nudge button { border: 0; background: var(--surface); color: var(--ink); border-radius: 7px; padding: 6px 9px; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.nudge button:hover { color: var(--accent); }
.nudge-val { min-width: 110px; text-align: center; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.nudge-hint { font-size: 12px !important; color: var(--faint) !important; margin: 6px 0 0 !important; }
@media (prefers-color-scheme: dark) { .board-note { color: #FFC56B; } }

/* Optional board recording on the first screen */
.pre-board { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 0; max-width: 520px; text-align: center; }
.pre-board .opt { font-weight: 400; opacity: .7; }
.pre-board-hint, .pre-board-picked { font-size: 13.5px; color: var(--muted, #6b6b76); line-height: 1.45; }
.pre-board-picked strong { color: var(--ink, inherit); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent, #6d4aff); text-decoration: underline; cursor: pointer; font: inherit; }

/* Sister app (Podsmith) */
.sister { --vs: #E8590C; --vs-soft: rgba(232, 89, 12, .08); max-width: 948px; margin: 0 auto; padding: 0 24px 40px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sister { --vs: #FF7A33; --vs-soft: rgba(255, 122, 51, .10); } }
.sister-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--vs-soft), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.sister-card:hover { border-color: var(--vs); transform: translateY(-1px); }
.sister-card:focus-visible { outline: 2px solid var(--vs); outline-offset: 3px; }
.sister-icon { width: 56px; height: 56px; flex: none; border-radius: 14px; box-shadow: 0 6px 16px rgba(221, 79, 6, .25); }
.sister-body { flex: 1; min-width: 0; }
.sister-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--vs); }
.sister-title { margin: 0 0 6px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.sister-text { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 560px; }
.sister-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sister-tags li { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.sister-cta { flex: none; font-size: 14px; font-weight: 600; color: #fff; background: var(--vs); padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sister-cta { color: #160A03; } }
@media (max-width: 640px) {
  .sister-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .sister-cta { align-self: stretch; text-align: center; }
}
