/* The running video hub (site/hub.js): the Running TV page (#tv). Editorial hairline layout, zero tilts. */
.ph-head { margin: 8px 0 14px; }
.ph-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 .12em; }
.ph-head .lede { margin: 0; }
.ph-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 8px; padding: 4px 18px 10px; position: sticky; top: var(--top-h, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.ph-tabs::-webkit-scrollbar, .ph-chips::-webkit-scrollbar, .ph-rail::-webkit-scrollbar, .ph-week::-webkit-scrollbar { display: none; }
.ph-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.ph-tabs a.on { background: var(--ink); color: var(--ball); border-color: var(--ink); }
.ph-tabs a:hover { border-color: var(--ink); }
.ph { display: grid; gap: 44px; padding: 18px 0 30px; min-width: 0; }
.ph-sec { min-width: 0; }
.ph-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.ph-h > div:first-child { min-width: 0; }
.ph-h h2 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); margin: 0; line-height: 1.06; }
.ph-note { margin: 6px 0 0; color: var(--ink-2); font-size: .94rem; line-height: 1.45; max-width: 60ch; }
.ph-sub { font: 600 .76rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 10px; color: var(--ink-2); }
.ph-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; margin: -2px; }
.ph-chips .chip { flex: none; text-decoration: none; display: inline-flex; align-items: center; }
.ph-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 276px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -18px; padding: 4px 18px 10px; scroll-padding-left: 18px; }
.ph-rail > * { scroll-snap-align: start; }
.ph-v { min-width: 0; }
.ph-v .vthumb, .ph-rank .vthumb { overflow: hidden; }
.ph-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(19,21,24,.88); color: #fff; border-radius: 4px; padding: 2px 7px; font: 600 .72rem var(--mono); }
.ph-ch, .ph-board-nm, .ph-chan-n { font-weight: 700; color: var(--ink); text-decoration: none; }
.ph-ch:hover, .ph-board-nm:hover, .ph-chan-n:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--court); }
.ph-more { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; font-weight: 700; text-underline-offset: 4px; }
.ph-empty { color: var(--muted); padding: 18px 0; margin: 0; }
.ph-stamp { margin: 0; }
.ph-dayhead { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font: 700 1.08rem var(--body); }
.ph-dayhead span { font-family: var(--mono); color: var(--muted); font-size: .82rem; font-weight: 500; }

/* most watched */
.ph-top { display: grid; gap: 18px; }
.ph-lead { position: relative; overflow: visible; align-self: start; }
.ph-lead .vthumb { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.ph-lead .vtitle { font-size: 1.15rem; }
.ph-lead-n { position: absolute; z-index: 2; top: 10px; left: 10px; min-width: 36px; height: 32px; padding: 0 8px; display: grid; place-items: center; background: var(--court); color: #fff;
  border-radius: 5px; font: 600 .95rem var(--mono); }
.ph-ranks { list-style: none; margin: 0; padding: 0; display: grid; }
.ph-rank { display: grid; grid-template-columns: 28px 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ph-rank:first-child { border-top: 0; }
.ph-rank-n { font: 600 1rem var(--mono); text-align: center; color: var(--court); }
.ph-rank .vthumb { border: 1px solid var(--line); border-radius: 6px; }
.ph-rank .vplay { display: none; }
.ph-rank-m { display: grid; gap: 2px; min-width: 0; }
.ph-rank-m b { font-size: .93rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-rank-m small { font-size: .8rem; color: var(--muted); }
.ph-rank-x { font: 600 .88rem var(--mono); white-space: nowrap; }
.ph-ranks-2 { max-width: 780px; }

/* the week schedule */
.ph-week { display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 220px); gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 10px;
  scroll-snap-type: x proximity; scroll-padding-left: 18px; }
.ph-day { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; min-width: 0; }
.ph-day.now { background: var(--ink); color: #fff; border-top: 3px solid var(--court); }
.ph-day h3 { display: flex; justify-content: space-between; align-items: baseline; font: 700 1rem var(--body); margin: 0 0 8px; }
.ph-day h3 span { font-family: var(--mono); font-size: .74rem; opacity: .75; }
.ph-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ph-day li { display: grid; gap: 1px; font-size: .88rem; line-height: 1.25; min-width: 0; }
.ph-day li .num { font-size: .72rem; opacity: .8; white-space: nowrap; }
.ph-day .ph-ch { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-got { justify-self: start; border: 0; background: var(--ball); color: var(--ink); border-radius: 4px; font: 600 .72rem var(--mono); padding: 3px 8px; margin-top: 3px; cursor: pointer; }
.ph-day-more { margin: 8px 0 0; font-size: .8rem; opacity: .75; }

/* boards */
.ph-board, .ph-pairs, .ph-events { list-style: none; margin: 0; padding: 0; }
.ph-board li { display: grid; grid-template-columns: 28px minmax(0, auto) auto minmax(30px, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ph-board li:first-child { border-top: 0; }
.ph-board-n { font-family: var(--mono); color: var(--muted); font-size: .82rem; text-align: right; }
.ph-board-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tag { font-family: var(--mono); font-size: .68rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.ph-bar { height: 7px; border-radius: 3px; background: #ebe7de; overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: var(--court); border-radius: 3px; }
.ph-board b { font-family: var(--mono); font-size: .92rem; min-width: 52px; text-align: right; }
.ph-board li:first-child .ph-board-nm { font-size: 1.05rem; }

/* videos together */
.ph-pair { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ph-pair:first-child { border-top: 0; }
.ph-pair-n { grid-row: span 2; font: 600 1.05rem var(--mono); color: var(--court); text-align: right; }
.ph-pair-w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .96rem; }
.ph-pair-w i { font-style: normal; color: var(--muted); }
.ph-pair-v { display: block; max-width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; font: inherit; font-size: .84rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; cursor: pointer; }
.ph-pair-v:hover { color: var(--court); }

/* race calendar */
.ph-events li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ph-events li:first-child { border-top: 0; }
.ph-date { display: grid; justify-items: center; background: var(--ink); color: #fff; border-top: 3px solid var(--court); border-radius: 6px; padding: 5px 0 4px; }
.ph-date b { font: 600 1.15rem var(--mono); color: var(--ball); line-height: 1; }
.ph-date small { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.ph-ev { display: grid; min-width: 0; }
.ph-ev small { color: var(--ink-2); font-size: .86rem; line-height: 1.35; }
.ph-when { font: 600 .78rem var(--mono); color: var(--court); white-space: nowrap; }
.ph-events .btn { grid-column: 2 / -1; justify-self: start; }

/* the shop row */
.ph-shop { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--court); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.ph-shop .ph-h h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); }
.ph-shop-tag { display: inline-block; background: var(--ink); color: var(--ball); border-radius: 4px; padding: 3px 9px; font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

/* channels */
.ph-chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ph-chan { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.ph-chan:not(:has(.pav)) { grid-template-columns: minmax(0, 1fr) auto; }
.ph-chan-b { display: grid; gap: 2px; min-width: 0; }
.ph-chan-n { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-chan-b small { color: var(--muted); font-size: .8rem; }
.ph-follow { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; padding: 6px 12px; font: 600 .82rem var(--body); cursor: pointer; white-space: nowrap; min-height: 36px; }
.ph-follow.on { background: var(--grass-soft); border-color: var(--grass); color: var(--grass); }
.ph-follow:hover { border-color: var(--ink); }
.ph-mine { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ph-mine-i { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px 4px 12px; }

/* stats table */
.ph-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.ph-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.ph-table th, .ph-table td { padding: 9px 10px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.ph-table thead th { border-top: 0; background: var(--ink); color: var(--paper); font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.ph-table th button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; min-height: 36px; }
.ph-table th[aria-sort] button { color: var(--ball); }
.ph-table .ph-t-nm { text-align: left; position: sticky; left: 0; background: var(--card); max-width: 44vw; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ph-table thead .ph-t-nm { background: var(--ink); z-index: 2; }
.ph-table .ph-t-n { text-align: right; color: var(--muted); width: 34px; }
.ph-table thead .ph-t-n { color: var(--paper); }
.ph-table td.on { font-weight: 700; background: var(--amber-soft); }

/* channel numbers on runner page */
.ph-person { margin: 36px 0; }
.ph-person-acts { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ph-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph-tiles div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 3px; }
.ph-tiles b { font: 600 1.35rem var(--mono); color: var(--court); }
.ph-tiles small { font-size: .78rem; color: var(--ink-2); line-height: 1.25; }
.ph-posts { margin: 6px 0; }
.ph-tease { margin: 40px 0; }
.ph-tease .vcard { height: 100%; }

@media (max-width: 480px) {
  .ph-shop { padding: 14px 12px; }
  .ph-tag { display: none; }
  .ph-board li { grid-template-columns: 24px minmax(0, 1fr) minmax(40px, 28%) auto; }
  .ph-rank { grid-template-columns: 22px 84px minmax(0, 1fr); }
  .ph-rank-x { grid-column: 3; font-size: .8rem; color: var(--ink-2); }
}
@media (max-width: 900px), (pointer: coarse) {
  .ph-follow, .ph-table th button, .ph-tabs a { min-height: 44px; }
  .ph-pair-v, .ph-got { min-height: 44px; display: flex; align-items: center; }
  .ph-pair-v { display: block; line-height: 36px; }
  .ph-day li > a, .ph-board-nm, .ph-pair-w a, .ph-mine-i a { display: inline-block; padding-block: 6px; }
}
@media (min-width: 760px) {
  .ph { gap: 52px; }
  .ph-tabs { margin: 0 0 8px; padding: 4px 0 10px; }
  .ph-rail { grid-auto-columns: 272px; margin: 0; padding: 4px 2px 10px; scroll-padding-left: 0; }
  .ph-week { margin: 0; padding: 4px 2px 10px; grid-auto-columns: minmax(150px, 1fr); scroll-padding-left: 0; }
  .ph-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .ph-events li { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
  .ph-events .btn { grid-column: auto; }
  .ph-shop { padding: 22px; }
}
