/* timeline-v.css: Vertical timetable (phones, 表示 -> 向き): theaters as columns. Overrides for .vcol / .vlabel / .vgrid. */
/* ---------- 縦の時間割 (phones; 表示 → 時間割の向き) ----------
   Theaters as columns, time running down. The column names take the ruler's place (it already sticks under the
   header and follows the sideways scroll); the hours run down a narrow sticky axis on the left. */
.orient-opt { display: none; }
.vscroll { display: none; }
@media (max-width: 600px) {
  .orient-opt { display: grid; }
  :root[data-orient="v"] { --label-w: 40px; }
  :root[data-orient="v"] .ruler { height: 52px; }
  :root[data-orient="v"] .daymap { display: none; }
  :root[data-orient="v"] .sort-btn { padding: 0; align-items: center; justify-content: center; gap: 4px; }
  :root[data-orient="v"] .sort-btn .do { font-size: 0; gap: 0; }
  :root[data-orient="v"] .sort-btn .do svg:not(.lead) { display: none; }
  :root[data-orient="v"] .sort-btn .do svg.lead { position: static; translate: none; width: 20px; height: 20px; margin: 0; }
  :root[data-orient="v"] .sort-btn .st { padding: 0; font-size: 10.5px; text-align: center; }
  .hours.vheads { height: 100%; }
  /* Sideways there's no scrollbar: a hairline under the names shows which columns are on screen, and the right edge
     fades while more columns lie beyond it. */
  :root[data-orient="v"] .vscroll { display: block; position: absolute; left: calc(var(--label-w) + 6px); right: 6px; bottom: 3px; z-index: 3; height: 3px;
    border-radius: 2px; background: color-mix(in srgb, var(--line-strong) 12%, transparent); }
  :root[data-orient="v"] .vscroll[hidden] { display: none; }
  :root[data-orient="v"] .vscroll i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--line-strong); opacity: .45; }
  :root[data-orient="v"] .ruler.more-r::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 28px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--surface)); }
  :root[data-orient="v"] .timeline:has(.vgrid)::after { content: none; }
  .hours.vheads::before { display: none; }
  .hours.vheads span { position: static; top: auto; transform: none; font-size: inherit; font-weight: inherit; color: inherit; }
  /* The dot sits at the middle of the column head, whatever the name's lines, so dots line up across columns. */
  .vlabel { position: absolute; top: 0; bottom: 0; display: grid; grid-template-columns: 6px 1fr; align-content: center; column-gap: 5px; row-gap: 1px; padding: 3px 6px 3px 7px;
    border-left: 1px solid var(--line); font-family: var(--font-ja); font-size: 12.5px; font-weight: 700; line-height: 1.22; color: var(--ink);
    word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; }
  .vlabel i { grid-row: 1 / span 2; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
  .vlabel span, .vlabel small { grid-column: 2; }
  :root[data-density="compact"] .vlabel { font-size: 11.5px; padding: 3px 4px 3px 5px; column-gap: 4px; }
  /* The digit centred in its box by the box (flex), not by line-height, which sits figures low in this face. */
  .vlabel .scr { display: inline-flex; align-items: center; justify-content: center; min-width: 15px; height: 15px; margin-left: 2px; padding: 0 3px 0;
    border: .5px solid color-mix(in srgb, var(--line-strong) 75%, transparent); border-radius: 4px; font-family: var(--font-num); font-size: 10.5px; font-weight: 600; line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--muted); vertical-align: 1px; box-sizing: border-box; }
  .vlabel small { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; font-weight: 400; color: var(--muted); }
  /* Held for reordering (long press on the name): the column lifts and follows the finger sideways. */
  .vlabel, .vcol { transition: translate .15s var(--ease); }
  .vlabel.lifting, .vcol.lifting { z-index: 4; transition: none; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
  .vlabel { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  /* The gap above the first hour is padding on the scroller itself: a margin inside it made the timeline 10px taller
     than its box, so the first swipe scrolled that box instead of the page. */
  .vgrid { position: relative; }
  .timeline:has(.vgrid) { padding-top: 10px; overflow-y: hidden; }
  /* 2. No native scrollbar sideways: the cut-off column at the right edge already says there is more. */
  .timeline:has(.vgrid) { scrollbar-width: none; }
  .timeline:has(.vgrid)::-webkit-scrollbar { display: none; }
  .vaxis { position: sticky; left: 0; z-index: 3; width: var(--label-w); height: 100%; background: var(--surface); border-right: 1px solid var(--line); }
  .vaxis::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--tod-line); }
  .vaxis b { position: absolute; right: 7px; translate: 0 -50%; font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--muted); }
  .vhline { position: absolute; left: var(--label-w); right: 0; height: 1px; background: var(--line); }
  .vnow { position: absolute; left: var(--label-w); right: 0; z-index: 2; height: 2px; background: var(--accent); }
  .vcol { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
  .vcol .show { left: 3px; right: 3px; }
  .vcol .show b { -webkit-line-clamp: 3; line-clamp: 3; }
  .vcol .show span { margin-top: 3px; }
  .vcol .show.has-quick span { padding-right: 26px; }
  /* Scrolled past its top, a show keeps its title in view under the column names (js/timeline.js stickVTitles). */
  .vcol .show .show-main { justify-content: flex-start; }
  .vcol .show b, .vcol .show span { will-change: translate; }
  /* コンパクト narrows the columns only; titles still get their lines (the horizontal compact cuts them to one). */
  :root[data-density="compact"] .vcol .show b { -webkit-line-clamp: 3; line-clamp: 3; font-size: 12px; line-height: 1.28; }
  :root[data-density="compact"] .vcol .show span { font-size: 11px; }
  .vcol .show.vshort b { -webkit-line-clamp: 1; line-clamp: 1; font-size: 12px; }
  .vcol .show.vshort span { display: none; }
  /* A picked show as a ticket stub, turned: the tear line runs across near the top, the notches sit on the sides. */
  :root[data-design="a"] .vcol .show.picked { --show-pad: 16px 6px 5px 8px;
    background: radial-gradient(circle at 0 10px, var(--surface) 0 5px, transparent 5.5px), radial-gradient(circle at 100% 10px, var(--surface) 0 5px, transparent 5.5px), var(--ticket); }
  :root[data-design="a"] .vcol .show.picked::before { left: 7px; right: 7px; top: 10px; bottom: auto; width: auto; height: 0;
    border-top: 1.5px dashed color-mix(in srgb, var(--ticket-ink) 45%, transparent); }
}
/* 縦 is new: a small "NEW" beside it for a while (take it off around the end of December). */
.seg button .beta { margin-left: 5px; padding: 1px 5px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 10px; font-weight: 700; }
.seg button[aria-pressed="true"] .beta { background: color-mix(in srgb, var(--bg) 25%, transparent); color: inherit; }
