/* The Studio's two publishing screens (studio-publish.js): a project's Schedule tab (.sc) and a
   film's page (.sv). On app.css's palette; the Views colours (--yt, --kc) are projects.html's. */

/* ---------------------------------------------------------------- a video's status, as a pill */
.sv-st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--sunk); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sv-st .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.sv-st .i { width: 13px; height: 13px; stroke-width: 2.1; }
.sv-st.t-good { background: var(--good-soft); color: var(--good); }
.sv-st.t-good .dot { background: var(--good); }
.sv-st.t-bad { background: var(--bad-soft); color: var(--bad); }
.sv-st.t-bad .dot { background: var(--bad); }
.sv-st.t-busy .dot { background: var(--accent); animation: ytpulse 1.4s ease-in-out infinite; }
.sv-st.t-quiet { background: var(--accent-soft); }
.sv-st.t-gone { color: var(--ink-3); }

/* ---------------------------------------------------------------- a project's Schedule */
.sc-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.sc-lead > div { flex: 1 1 420px; min-width: 0; }
.sc-lead b { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.sc-lead b .i { color: var(--accent-2); }
.sc-lead p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.sc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.sc-cal { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.sc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sc-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; min-width: 150px; }
.sc-head .grow { flex: 1; }
.sc-chan { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.sc-chan .pic { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--sunk) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.sc-chan b { font-weight: 600; color: var(--ink); }
.sc-chan select { height: 32px; padding: 0 8px; width: auto; max-width: 220px; font-size: 13.5px; }
.sc-nav { display: inline-flex; gap: 4px; }
.sc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sc-grid.loading { opacity: .55; }
.sc-wd { padding: 0 2px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sc-day { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-width: 0; min-height: 104px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sc-day.past { background: var(--sunk); border-color: transparent; }
.sc-day.out { opacity: .55; }
.sc-day.best { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.sc-day.over { border: 2px solid var(--accent); padding: 4px; background: var(--accent-soft); }
.sc-grid.dragging .sc-day[data-drop]:not(.over) { border-color: var(--line-2); }
.sc-n { display: flex; align-items: center; gap: 4px; min-height: 22px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sc-n > span { padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.sc-day.today .sc-n > span { background: var(--ink); color: var(--panel); }
.sc-add { margin-left: auto; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; opacity: 0; }
.sc-add .i { width: 14px; height: 14px; }
.sc-day:hover .sc-add, .sc-add:focus-visible, .sc-day.best .sc-add { opacity: 1; }
.sc-add:hover { background: var(--hover); color: var(--ink); }
.sc-v { all: unset; box-sizing: border-box; display: grid; gap: 3px; min-width: 0; padding: 3px; border-radius: 7px; cursor: pointer; border: 1px solid transparent; }
.sc-v:hover { background: var(--hover); }
.sc-v:focus-visible { box-shadow: var(--ring); }
.sc-v[draggable="true"] { cursor: grab; }
.sc-v .pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: var(--hover); }
.sc-v .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-v:not(.mine) .pic img { opacity: .6; filter: saturate(.6); }
.sc-v.mine { border-color: var(--accent); background: var(--panel); }
.sc-v .tm, .sc-v .ep { position: absolute; padding: 0 5px; border-radius: 5px; background: rgba(14, 14, 37, .76); color: #fff; font: 600 10px/16px 'DM Sans', system-ui, sans-serif; font-style: normal; white-space: nowrap; }
.sc-v .tm { left: 3px; bottom: 3px; }
.sc-v .ep { right: 3px; top: 3px; }
/* a scheduled one: its time on the accent, behind a clock */
.sc-v.sch .tm { padding-left: 17px; background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4.2' fill='none' stroke='%23fff' stroke-width='1.3'/%3E%3Cpath d='M6 3.8V6l1.5 1' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 2px center / 13px no-repeat; color: var(--accent-ink); }
.sc-v .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
.sc-v.mine .t { color: var(--ink); font-weight: 500; }
.sc-hint { all: unset; box-sizing: border-box; display: grid; place-content: center; justify-items: center; gap: 1px; min-height: 58px; border-radius: 7px; cursor: pointer; text-align: center; font-size: 12px; font-weight: 600; color: var(--accent-2); }
.sc-hint small { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.sc-hint:hover { background: var(--panel); }
.sc-hint:focus-visible { box-shadow: var(--ring); }
.sc-more { all: unset; box-sizing: border-box; padding: 1px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-radius: 6px; }
.sc-more:hover { background: var(--hover); }
.sc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; font-size: 12px; color: var(--ink-3); }
.sc-key span { display: inline-flex; align-items: center; gap: 6px; }
.sc-key .grow { flex: 1; }
.sc-key .k { width: 13px; height: 13px; border-radius: 4px; background: var(--hover); }
.sc-key .k.mine { background: var(--panel); border: 1.5px solid var(--accent); }
.sc-key .k.sch { border-radius: 50%; background: var(--accent-fill); }
.sc-key .k.best { background: var(--accent-soft); border: 1.5px dashed var(--accent); }
.sc-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.sc-side section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sc-side h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sc-side h3 .count { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); display: inline-grid; place-items: center; font-weight: 500; }
.sc-side p { margin: 0; font-size: 13px; }
.sc-side p a { color: var(--accent-2); }
.sc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sc-row.mine { border-color: var(--line-2); }
.sc-row.ready { cursor: grab; }
.sc-row.ready:hover { border-color: var(--accent); }
.sc-row .pic { display: block; width: 84px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--sunk); }
.sc-row .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-row .t { min-width: 0; display: grid; gap: 1px; }
.sc-row .t a { color: inherit; text-decoration: none; min-width: 0; }
.sc-row .t a:hover b { text-decoration: underline; }
.sc-row .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.sc-row .t small { font-size: 12px; color: var(--ink-3); }
.sc-row > .btn, .sc-row .two { grid-column: 1 / -1; }
.sc-row .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ---------------------------------------------------------------- a film's page */
.sv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 20px; align-items: start; }
.sv-main { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.sv-rail { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; position: sticky; top: 72px; }
.sv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* where the film stands on YouTube, in one line at the top */
.sv-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 18px; }
.sv-strip.warn { border-color: var(--accent); }
.sv-strip .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sv-strip .is { flex: 1 1 320px; min-width: 0; display: grid; gap: 3px; }
.sv-strip .l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15.5px; line-height: 1.35; }
.sv-strip .l b { font-weight: 600; }
.sv-strip .d { font-size: 13.5px; color: var(--ink-2); }
.sv-strip .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sv-strip .acts:empty { display: none; }
.sv-strip .bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.sv-strip .bar i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.sv-strip .bar.wait i { width: 30% !important; animation: kcp-slide 1.2s ease-in-out infinite alternate; }
.sv-strip .notes { display: grid; gap: 8px; }
.sv-strip .notes p { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sv-strip .notes p b { font-weight: 600; }
.sv-post .l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .sv-strip .bar.wait i { animation: none; } }
.sv-nb { margin-left: auto; display: inline-flex; gap: 2px; }
.sv-player { overflow: hidden; background: #000; border-color: var(--line-2); }
.sv-player video { display: block; width: 100%; max-height: min(64vh, 620px); background: #000; }
.sv-player.tall video { width: auto; max-width: 100%; margin: 0 auto; }
.sv-nofilm { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.sv-share { padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.sv-share a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; text-underline-offset: 3px; }
.sv .two { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.sv-card { padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.sv-card.loading { opacity: .55; transition: opacity .2s; }
.sv-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sv-ch h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.sv-ch .ym { width: 20px; height: 14px; flex: none; }
.sv-ch .grow { flex: 1; }
.sv-none { display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--sunk); }
.sv-none b { font-size: 15px; font-weight: 600; }
.sv-none p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.sv-sug { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.sv-sug .l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.sv-sug .i { color: var(--accent-2); }
.sv-sug b { flex: 1 1 260px; min-width: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.sv-sug small { font-size: 12.5px; color: var(--ink-2); }
.sv-post { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.sv-post .w { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.sv-ch + .sv-post { padding-top: 0; border-top: 0; }
.sv-post .pic { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.sv-post .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sv-post .b { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.sv-post .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sv-post small { font-size: 12.5px; }
.sv-post p { margin: 0; font-size: 13px; color: var(--ink-2); }
.sv-post .sv-hint { padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }
.sv-post .sv-hint a, .sv-foot a { color: var(--accent-2); font-weight: 600; }
.sv-post .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sv-post .acts:empty { display: none; }
/* a row that starts with a borderless button: its words line up with the row above, not its padding */
.sv-post .acts:has(> .btn.quiet:first-child) { margin-left: -11px; }
.sv-who button[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.sv-who button:disabled { opacity: .6; cursor: progress; }
.sv-edit { justify-self: stretch; display: grid; gap: 12px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); }
.sv-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; }
.sv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sv-tile { all: unset; box-sizing: border-box; display: grid; gap: 2px; align-content: start; min-width: 0; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sv-tile:hover { border-color: var(--line-2); }
.sv-tile:focus-visible { box-shadow: var(--ring); }
.sv-tile.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.sv-tile .k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.sv-tile .k i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); }
.sv-tile .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sv-tile .d { font-size: 12.5px; color: var(--ink-3); }
.sv-tile svg.spark { margin-top: 6px; width: 100%; height: 30px; display: block; }
.sv-prompt { margin: 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sv-prompt.open { display: block; }
/* its tabs: Details (what it is on YouTube), Film, Views */
.sv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: -4px; overflow-x: auto; scrollbar-width: none; }
.sv-tabs::-webkit-scrollbar { display: none; }
.sv-tabs button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sv-tabs button svg { width: 16px; height: 16px; }
.sv-tabs button:hover { color: var(--ink); }
.sv-tabs button:focus-visible { box-shadow: var(--ring); border-radius: 6px; }
.sv-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.sv-pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
/* the Details form: open, the first thing on the page */
.sv-lede { margin: -4px 0 0; font-size: 13.5px; }
.sv-write { margin: 0; }  /* "Write them for me": the words are written only when asked for */
.sv-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.sv-form .field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sv-form .field small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.sv-thumbs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.sv-thumbs legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.sv-thumbgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sv-thumbgrid:empty { display: none; }
.sv-thumbgrid.tall .sv-thumb:not(.none) { aspect-ratio: 9 / 16; } /* a Short's own frame */
.sv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--sunk); cursor: pointer; }
.sv-thumb input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sv-thumb .tick { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--accent-fill); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.sv-thumb:has(input:checked) { border-color: var(--accent); }
.sv-thumb:has(input:checked) .tick { display: grid; }
.sv-thumb:has(input:focus-visible) { box-shadow: var(--ring); }
.sv-thumb.none { aspect-ratio: auto; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); background: var(--field); font-size: 13.5px; }
.sv-thumb.none input { position: static; opacity: 1; accent-color: var(--accent); }
.sv-thumb.none:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
/* a picture of their own: the tile that uploads one, after the four */
.sv-upload { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 1px; padding: 6px; border: 2px dashed var(--dash); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sv-upload b { font-size: 20px; line-height: 1; font-weight: 500; color: var(--ink-2); }
.sv-upload small { font-size: 11.5px; font-weight: 400; color: var(--ink-2); }
.sv-upload:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.sv-upload:focus-visible { outline: none; box-shadow: var(--ring); }
.sv-upload:disabled { opacity: .6; cursor: progress; }
.sv-thumbnow { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: center; }
.sv-thumbnow img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); }
.sv-thumbnow div { display: grid; gap: 3px; min-width: 0; }
.sv-thumbnow b { font-size: 14px; font-weight: 600; }
.sv-thumbnow small { font-size: 12.5px; color: var(--ink-2); }
.sv-hint { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.sv-hint a, .sv-form .say a, .sv-side a, .sv-thumbs a { color: var(--accent-2); font-weight: 600; text-underline-offset: 3px; }
.sv-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; }
.sv-check input { margin: 3px 0 0; accent-color: var(--accent); }
.sv-check small { display: block; color: var(--ink-3); font-size: 12.5px; }
.sv-aud { margin: 0; display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.sv-aud b { color: var(--ink); font-size: 13px; font-weight: 600; }
.sv-foot2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sv-foot2 .grow { flex: 1; }
/* beside the film: who can watch it, its page on KitCut, what can be downloaded */
.sv-side { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; font-size: 13.5px; }
.sv-side > b { font-size: 15px; font-weight: 600; }
.sv-side p { margin: 0; font-size: 13px; }
.sv-side .lnk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; text-underline-offset: 3px; }
.sv-side .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-side .seg { justify-self: start; }
.sv-switch { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); cursor: pointer; }
.sv-switch input { appearance: none; flex: none; width: 34px; height: 20px; margin: 1px 0 0; border-radius: 10px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.sv-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); transition: transform .15s; }
.sv-switch input:checked { background: var(--accent); }
.sv-switch input:checked::after { transform: translateX(14px); }
.sv-switch input:disabled { opacity: .5; cursor: default; }
.sv-switch input:focus-visible { box-shadow: var(--ring); }
.sv-switch span { display: grid; gap: 1px; min-width: 0; }
.sv-switch b { font-size: 13.5px; font-weight: 600; }
.sv-switch small { font-size: 12.5px; color: var(--ink-2); }
/* the Film tab: its versions */
.sv-vers { display: grid; gap: 8px; }
.sv-vers:empty { display: none; }
.sv-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sv-ver.cur { border-color: var(--line-2); background: var(--sunk); }
.sv-ver .n { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.sv-ver .t { flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.sv-sub { padding-top: 12px; border-top: 1px solid var(--line); }
.sv-sub h3 { margin: 0; font-size: 14px; font-weight: 600; }

@media (max-width: 1080px) {
  .sc { grid-template-columns: minmax(0, 1fr); }
  .sc-side { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
  .sv { grid-template-columns: minmax(0, 1fr); }
  .sv-main, .sv-rail { grid-column: 1; grid-row: auto; }
  /* one column: the film, then its tab, then what was beside the film (who can watch, its KitCut page) */
  .sv-rail { display: contents; }
  .sv-player { order: -1; max-width: 720px; }
  .sv-side, .sv-wait { order: 2; max-width: 720px; }
}
@media (max-width: 720px) {
  .sc-cal { padding: 8px; }
  .sc-grid { gap: 3px; }
  .sc-day { min-height: 64px; padding: 3px; border-radius: 8px; gap: 2px; }
  .sc-day.over { padding: 2px; }
  .sc-n { min-height: 18px; font-size: 11px; }
  .sc-v .t, .sc-v .ep, .sc-v .tm, .sc-hint small { display: none; }
  .sc-hint { min-height: 30px; font-size: 10px; line-height: 1.15; }
  .sc-add { opacity: 1; width: 18px; height: 18px; }
  .sc-v { padding: 1px; }
  .sc-head h2 { min-width: 0; font-size: 16px; }
  .sc-key .grow { display: none; }
  .sv-post { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  /* the line at the top: its buttons fill their rows, two to a row, so none is left hanging */
  .sv-strip .acts { flex: 1 1 100%; }
  .sv-strip .acts .btn { flex: 1 1 40%; }
  .sv-thumbgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-thumbnow { grid-template-columns: 120px minmax(0, 1fr); }
  .sv-foot2 .btn.primary { flex: 1 1 auto; }
  .sv-card { padding: 14px; }
  .sv-acts { width: 100%; }
  .sv-acts .btn.primary { flex: 1 1 100%; }
}
@media (max-width: 460px) {
  .sv-tiles { grid-template-columns: minmax(0, 1fr); }
  .sv-post { grid-template-columns: minmax(0, 1fr); }
  .sv-post .pic { max-width: 220px; }
}

/* the same film in other languages: its rows are the versions' rows */
.sv-langs { display: grid; gap: 8px; }
.sv-langs .sv-ch { margin-top: 4px; }
