/* 駅伝タイム差グラフ — 1 枚の列（ヘッダー → 見出し → 選ぶボタン群 → グラフ → 選んだ区間 → 数表 → 注記 → フッター） */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #15181d;
  --ink-2: #4d535c;
  --ink-3: #6b727c;
  --rule: #dfe2e7;
  --grid: #eceef1;
  --band: #eef3fb;
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --up: #1f8a5b;
  --down: #c2453b;
  --shadow: 0 10px 30px -12px rgba(20, 24, 29, 0.25);
  --display: 'Dela Gothic One', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #141619;
    --panel: #1b1e22;
    --ink: #eef0f2;
    --ink-2: #b8bec6;
    --ink-3: #8f97a1;
    --rule: #2e333a;
    --grid: #262a30;
    --band: #1f2733;
    --accent: #5b9df0;
    --accent-ink: #0d1117;
    --up: #4cc08a;
    --down: #ec6f64;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #141619;
  --panel: #1b1e22;
  --ink: #eef0f2;
  --ink-2: #b8bec6;
  --ink-3: #8f97a1;
  --rule: #2e333a;
  --grid: #262a30;
  --band: #1f2733;
  --accent: #5b9df0;
  --accent-ink: #0d1117;
  --up: #4cc08a;
  --down: #ec6f64;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 共通: ヘッダー */
.appbar { background: var(--panel); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.appbar__in, .wrap, .foot__in {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.appbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.appbar__name { font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; cursor: pointer; color: var(--ink);
}
.iconbtn:hover { background: var(--grid); }

/* ---- 共通: メニュー（右から出る） */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(340px, 88vw);
  border: 0; border-left: 1px solid var(--rule); padding: 0;
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
.drawer::backdrop { background: rgba(10, 12, 15, 0.45); }
.drawer[open] { animation: drawer-in 0.18s ease-out; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px 20px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--panel);
}
.drawer__home { font-weight: 700; color: var(--ink); text-decoration: none; }
.drawer nav { padding: 8px 0 24px; }
.drawer h3 { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); margin: 16px 20px 4px; font-weight: 700; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li > a, .drawer li > span {
  display: flex; flex-direction: column; gap: 0; padding: 7px 20px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45;
}
.drawer li a:hover { background: var(--grid); }
.drawer li a[aria-current='page'] { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.drawer li > span { color: var(--ink-3); }
.drawer small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }

/* ---- 共通: 本文 */
.wrap { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 48px; }
.wrap:focus { outline: none; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4.2vw, 36px); line-height: 1.3; margin: 0; letter-spacing: 0.02em; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 0; letter-spacing: 0.03em; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; margin: 0 0 4px; }
.lede { color: var(--ink-2); max-width: 78ch; margin: 8px 0 0; font-size: 14.5px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.loading, .error { color: var(--ink-2); }
.section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* ---- 共通: カード */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }

/* ---- ホーム */
.cat { display: flex; flex-direction: column; gap: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.racecard {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.racecard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.racecard__name { font-weight: 700; font-size: 16.5px; }
.racecard__meta { font-size: 13px; color: var(--ink-2); }
.racecard__go { margin-top: 8px; font-size: 13.5px; color: var(--accent); font-weight: 700; }
.racecard__go::after { content: ' →'; }
.racecard.is-empty { color: var(--ink-3); }
.racecard.is-empty .racecard__go { color: var(--ink-3); font-weight: 400; }
.racecard.is-empty .racecard__go::after { content: ''; }

/* ---- 共通: 選ぶボタン群 */
.controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.ctl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ctl__label { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.06em; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; color: var(--ink-2); font-size: 14px; white-space: nowrap;
}
.seg button:hover { color: var(--ink); background: var(--grid); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--panel); font-weight: 700; }
.yearpick { display: inline-flex; align-items: center; gap: 4px; }
.yearpick select {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: 999px;
  min-height: 42px; padding: 0 34px 0 14px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.stepbtn {
  border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; min-width: 42px; min-height: 42px; cursor: pointer; font-size: 16px; color: var(--ink-2);
}
.stepbtn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-3); }
.stepbtn:disabled { opacity: 0.35; cursor: default; }

/* ---- グラフ */
.chartcard { overflow: hidden; }
.chartcard__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 0; flex-wrap: wrap; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 22px; height: 0; border-top: 2px dashed var(--ink-3); }
.legend i.dot-line { border-top-style: dotted; border-top-color: var(--ink-2); }
.playbtn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel);
  border-radius: 999px; padding: 6px 16px; min-height: 38px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.playbtn svg { width: 14px; height: 14px; }
.playbtn[aria-pressed='true'] { background: var(--panel); color: var(--ink); }
.chartbox { overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 0; -webkit-overflow-scrolling: touch; }
.nowrap { white-space: nowrap; }
.chartbox svg { display: block; }
.chartrow { display: flex; width: max-content; min-width: 100%; }
.chartbox svg.yaxis { position: sticky; left: 0; z-index: 2; flex: none; }
.chartcard__swipe { display: none; margin: 0 14px 10px; }
@media (max-width: 760px) { .chartcard__swipe { display: block; } }
.chartbox svg:focus { outline: none; }
svg text.halo { paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.chartbox svg:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
svg text { font-family: var(--body); font-size: 11px; fill: var(--ink-2); }
svg .num { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-3); }
svg .sec { font-family: var(--display); font-size: 12px; fill: var(--ink-3); }
svg .sec.is-on { fill: var(--ink); }
svg .lbl { font-size: 11px; cursor: pointer; }
svg .lbl .r { font-family: var(--mono); }
.seg-hit { cursor: pointer; }

/* ---- 選んだ区間の情報カード */
.info { padding: 14px 16px; position: relative; display: flex; flex-direction: column; gap: 8px; border-left: 6px solid var(--rule); }
.info.is-empty { color: var(--ink-3); font-size: 13.5px; border-left-color: var(--rule); }
.info__close { position: absolute; top: 6px; right: 6px; }
.info__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-right: 44px; }
.info__team { font-weight: 700; font-size: 18px; }
.info__leg { font-family: var(--display); font-size: 15px; color: var(--ink-2); }
.info__runner { font-size: 16px; font-weight: 700; }
.info dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.info dt { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.info dd { margin: 0; font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
.info dd small { font-family: var(--body); font-size: 12.5px; color: var(--ink-2); margin-left: 4px; }
.info__keys { font-size: 12px; color: var(--ink-3); margin: 0; }
.tasuki { display: inline-block; width: 26px; height: 12px; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px var(--rule); }

/* ---- 数表 */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 4px 6px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
thead th { font-size: 11.5px; color: var(--ink-3); font-weight: 700; vertical-align: bottom; padding-top: 8px; padding-bottom: 6px; background: var(--panel); }
th small { display: block; font-weight: 400; }
td.l, th.l { text-align: left; }
th.stick, td.stick { position: sticky; left: 0; background: var(--panel); z-index: 1; }
td.rk { color: var(--ink-3); font-family: var(--mono); width: 3em; }
.cellbtn {
  display: block; width: 100%; text-align: right; border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 2px 4px; cursor: pointer;
}
.cellbtn:hover { border-color: var(--rule); }
.cellbtn[aria-pressed='true'] { border-color: var(--ink); background: var(--band); }
.cellbtn .g { font-family: var(--mono); font-variant-numeric: tabular-nums; display: block; font-size: 12.5px; }
.cellbtn .r { font-size: 10.5px; color: var(--ink-3); display: block; }
.cellbtn .r.top { color: var(--up); font-weight: 700; }
.miss { color: var(--down); font-size: 12px; font-weight: 700; }
.st { color: var(--ink-2); font-size: 12px; font-weight: 700; font-family: var(--body); }
.cellbtn .r.st { color: var(--ink-2); font-weight: 700; }
.g.ref { color: var(--ink-3); }
.notice { margin: 0; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); color: var(--ink-2); font-size: 13.5px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
tr.is-sel td { background: var(--band); }
tr.is-sel td.stick { background: var(--band); }
tr.is-dim td { opacity: 0.55; }
.pos { color: var(--up); }
.neg { color: var(--down); }
.op { font-size: 10.5px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; margin-left: 6px; font-weight: 400; }

/* ---- 注記 */
.notes { font-size: 13px; color: var(--ink-2); margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.notes details summary { cursor: pointer; }
.notesbox { display: flex; flex-direction: column; gap: 6px; }
.notes__head p { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.notes__h { font-size: 13px; font-weight: 700; margin: 8px 0 0; color: var(--ink); }
.notes__sub { display: block; font-size: 12px; color: var(--ink-3); }
.basetimes { font-family: var(--mono); font-size: 12.5px; }

/* ---- 共通: フッター */
.foot { border-top: 1px solid var(--rule); background: var(--panel); }
.foot__in { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; padding-bottom: 28px; font-size: 12.5px; color: var(--ink-3); }
.foot__sources ul { margin: 4px 0 0; padding-left: 18px; }
.foot__sources a { color: var(--ink-2); word-break: break-all; }

/* ---- 共通: 吹き出し（マウスを重ねたとき） */
.tip {
  position: fixed; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.55;
  padding: 7px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.12s; z-index: 40; max-width: 280px;
}

/* スマホ: 選んだ区間のカードを画面の下に固定して、グラフと一緒に見えるようにする */
@media (max-width: 760px) {
  .info.is-sel {
    position: sticky; bottom: 0; z-index: 20; max-height: 48vh; overflow-y: auto;
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.35); padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .info.is-sel dl { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .chartcard { scroll-margin-top: 60px; }
}
.chartcard { scroll-margin-top: 64px; }
@media (max-width: 600px) {
  .wrap { padding-top: 14px; gap: 14px; }
  h1 { font-size: 22px; }
  /* 選ぶボタン群は見出しを左に並べて縦を詰める（グラフを 1 画面目に入れる） */
  .controls { gap: 8px; }
  .ctl { flex-direction: row; align-items: center; gap: 10px; }
  .ctl__label { min-width: 2.5em; }
  .lede { margin-top: 4px; font-size: 13.5px; }
  .controls { gap: 10px 16px; }
  .seg button { padding: 6px 12px; }
  .info dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tip, a.racecard { transition: none; }
  .drawer[open] { animation: none; }
}
.fixed { display: inline-flex; align-items: center; min-height: 42px; font-size: 15px; font-weight: 700; }
svg text.goal-label { font-family: var(--display); font-size: 11.5px; fill: var(--ink-2); }

/* ---- グラフの拡大（＋・−・元に戻す）。1 本指・普通のホイールはページのスクロールのまま */
.chartcard__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zoomtools { display: inline-flex; align-items: center; gap: 4px; }
.zoombtn {
  min-width: 38px; min-height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--panel); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer;
}
.zoombtn--text { font-size: 13px; white-space: nowrap; }
.zoombtn:hover:not(:disabled) { border-color: var(--ink-3); }
.zoombtn:disabled { opacity: 0.35; cursor: default; }
.zoomhint { font-size: 12px; color: var(--ink-3); margin-right: 4px; }
.chartbox svg.plot { touch-action: pan-x pan-y; }
.chartbox svg.plot.is-zoomed .zoombg { cursor: grab; }
.chartbox svg.plot.is-zoomed .zoombg:active { cursor: grabbing; }
@media (max-width: 600px) {
  .chartcard__bar { align-items: flex-start; }
  .zoomtools { flex-wrap: wrap; }
  .zoomhint { flex-basis: 100%; order: 9; margin: 2px 0 0; }
}

/* ---- 記録の表（タブ: 区間成績／通過記録、差の切り替え） */
.tablebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.tabs { display: inline-flex; border-bottom: 1px solid var(--rule); gap: 4px; }
.tab {
  border: 0; background: transparent; padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: 14.5px; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected='true'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab:hover { color: var(--ink); }
table.rec td { vertical-align: top; }
table.rec .cellbtn { display: flex; flex-direction: column; align-items: flex-end; gap: 0; min-width: 76px; }
table.rec .cellbtn .g { font-size: 13.5px; font-weight: 500; color: var(--ink); }
table.rec .cellbtn .who { font-size: 11px; color: var(--ink-2); max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.rec .cellbtn .r { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
table.rec .cellbtn .r .top { color: var(--up); font-weight: 700; }
table.rec .cellbtn .r .st { color: var(--ink-2); font-weight: 700; }
table.rec .cellbtn .d { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .tablebar { flex-direction: column; align-items: stretch; }
  .diffctl .seg { max-width: 100%; }
}

/* ---- 新着（ホームの先頭のカードと、大会カード・メニューの小さな点） */
.newbadge {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-ink); background: var(--accent);
}
.newdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 3px; }

/* ---- ヘッダーの「☰ 他の大会」（アイコンと文字で 1 つのボタン）・メニューの下の FSITLAB へのリンク */
.menubtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.menubtn:hover { background: var(--grid); }
.drawer__foot { padding: 12px 20px 28px; border-top: 1px solid var(--rule); }

/* ---- 動画用の画面（?video=short|long）: 全面に 1 枚の SVG だけ */
body.video { min-height: 0; overflow: hidden; background: var(--panel); }
body.video .appbar, body.video .foot, body.video .tip { display: none !important; }
body.video .wrap { padding: 0; max-width: none; margin: 0; }
body.video svg.videosvg { position: fixed; left: 0; top: 0; display: block; }
.chartbox svg.animsvg { display: block; }
svg.videosvg text, svg.animsvg text { font-family: var(--body); }
svg.videosvg .num, svg.animsvg .num { font-family: var(--mono); }

/* 凡例「太線＝区間賞」（チームの色の太線に金の縁取り。見本は中間の色） */
.legend i.legbest-key { border-top: 5px solid var(--ink-2); border-radius: 3px; height: 0; }

/* 区間新の点滅（ゆっくり。動きを減らす設定では点いたまま）・情報カードの「区間賞」「区間新」 */
@keyframes ekiden-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
svg .blink { animation: ekiden-blink 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { svg .blink { animation: none; } }
.award { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-family: var(--body); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.award--best { color: #7a5c00; background: #f6e7b0; border: 1px solid #c9a227; }
.award--record { color: #fff; background: #d6332c; }

/* ---- 動画で見る（config/videos.json）。ショートは縦 9:16 */
.videolist { display: flex; flex-wrap: wrap; gap: 16px; }
.video { margin: 0; display: flex; flex-direction: column; gap: 6px; width: min(360px, 100%); }
.ytframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--grid); }
.ytframe--short { aspect-ratio: 9 / 16; }
.video figcaption { font-size: 13px; }
/* 折りたたみ（初めは閉じる）。1 行の見出し。▶（閉）／▼（開） */
.videobox > summary { list-style: none; display: flex; align-items: baseline; gap: 4px; cursor: pointer; padding: 6px 0; min-height: 32px; font-weight: 700; color: var(--ink); }
.videobox > summary::-webkit-details-marker { display: none; }
.videobox > summary::before { content: '▶'; display: inline-block; width: 1.2em; font-size: 12px; color: var(--ink-3); }
.videobox[open] > summary::before { content: '▼'; }
.videobox > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.videosum__t { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0.03em; }
.videosum__k { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.videobox[open] > .videolist { margin-top: 8px; }
.ytslot { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--grid); }
.ytslot--short { aspect-ratio: 9 / 16; }
.ytslot > .ytframe { height: 100%; }
