/* The YouTube cycling dispatch hub (site/hub.js). Uses styles.css variables. */
.cm-wrap.hb-wrap { max-width: 1180px; padding: 0 16px; }
.hb-homehead .cm-head { padding: 26px 0 18px; }
.hb-homehead .cm-head p { max-width: 520px; opacity: .9; }
.hb { display: grid; gap: 34px; padding: 22px 0 40px; min-width: 0; }
.hb-sec { min-width: 0; }
.hb-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; margin-bottom: 14px; }
.hb-h > div:first-child { min-width: 0; }
.hb-h h2 { font-size: clamp(34px, 8.4vw, 52px); line-height: .92; }
.hb-kick { display: inline-block; color: var(--flag); font-size: 11.5px; margin-bottom: 6px; }
.hb-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; max-width: 560px; }
.hb-sub { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px; margin: 0 0 10px; color: var(--ink-2); }
.hb-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; margin: -2px; }
.hb-chips::-webkit-scrollbar, .hb-rail::-webkit-scrollbar, .hb-week::-webkit-scrollbar { display: none; }
.hb-chip { flex: none; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.hb-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.hb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 270px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.hb-rail > * { scroll-snap-align: start; }
.hb-rail, .hb-week { scroll-padding-left: 16px; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 14px; }
.hb-v { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hb-v .vtitle { font-size: 15px; line-height: 1.25; }
.hb-v .vthumb { border-radius: 12px; }
.hb-v-m { margin: 0; display: grid; gap: 1px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.hb-v-m b { color: var(--ink); font-size: 15px; }
.hb-ch { font-weight: 700; color: var(--ink); text-decoration: none; }
.hb-ch:hover, .hb-board-nm:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14.5px; text-underline-offset: 4px; }
.hb-empty { color: var(--muted); padding: 18px 0; margin: 0; }
.hb-stamp { margin: 0; color: var(--muted); font-size: 13px; }
.hb-morebtn { display: flex; justify-content: center; margin-top: 22px; }
.hb-dayhead { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 18px; }
.hb-dayhead span { color: var(--muted); font-size: 14px; font-weight: 500; }

/* most watched */
.hb-top { display: grid; gap: 18px; }
.hb-lead { position: relative; display: grid; gap: 8px; align-content: start; }
.hb-lead .vtitle { font-size: clamp(18px, 4.6vw, 24px); line-height: 1.2; font-weight: 800; }
.hb-lead .vthumb { border-radius: 16px; }
.hb-lead-n { position: absolute; z-index: 2; top: -8px; left: -6px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--flag); color: var(--paper); border: 2px solid var(--ink); border-radius: 50%; font-size: 34px; line-height: 1; padding-top: 3px; }
.hb-ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hb-rank { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "n v x" "n m x"; align-items: start; gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.hb-rank:first-child { border-top: 0; }
.hb-rank-n { grid-area: n; align-self: center; font-size: 26px; text-align: center; color: var(--ink-2); }
.hb-rank .vcard { grid-area: v; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 54px; }
.hb-rank .vthumb { border-radius: 8px; border-width: 1.5px; }
.hb-rank .vplay { display: none; }
.hb-rank .vtitle { font-size: 14.5px; line-height: 1.25; }
.hb-rank-m { grid-area: m; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12.5px; color: var(--muted); min-width: 0; padding-left: 106px; margin-top: -16px; }
.hb-rank-m small { font-size: 12.5px; }
.hb-rank-x { grid-area: x; align-self: center; font-size: 14px; white-space: nowrap; }
.hb-two { display: grid; gap: 26px; margin-top: 18px; }
.hb-two > div { min-width: 0; }

/* the week */
.hb-week { display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 230px); gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.hb-day { scroll-snap-align: start; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; min-width: 0; }
.hb-day.now { background: var(--ink); color: var(--paper); }
.hb-day h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin-bottom: 8px; }
.hb-day h3 span { font-size: 12px; opacity: .7; font-weight: 500; }
.hb-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hb-day li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 14px; line-height: 1.25; }
.hb-day li.nt { grid-template-columns: minmax(0, 1fr); }
.hb-day li.nt .hb-got { grid-column: 1; }
.hb-day li .mono { font-size: 11.5px; opacity: .72; white-space: nowrap; }
.hb-day .hb-ch { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-day li.got .hb-ch { color: var(--lime); }
.hb-got { font-size: 12px; font-weight: 700; color: var(--lime); }
.hb-day-more { margin: 8px 0 0; font-size: 12.5px; opacity: .7; }

/* leaderboards */
.hb-board, .hb-pairs, .hb-dream, .hb-guests, .hb-events { list-style: none; margin: 0; padding: 0; }
.hb-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); }
.hb-board li:first-child { border-top: 0; }
.hb-board-n { color: var(--muted); font-size: 13px; text-align: right; }
.hb-board-nm { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.hb-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hb-bar i { display: block; height: 100%; background: var(--flag); border-radius: 99px; }
.hb-board b { font-size: 15px; min-width: 52px; text-align: right; }
.hb-board li:first-child .hb-board-nm { font-size: 18px; }

/* collabs and guests */
.hb-pair { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.hb-pair:first-child { border-top: 0; }
.hb-pair-n { grid-row: span 2; font-size: 20px; font-weight: 700; color: var(--flag); text-align: right; }
.hb-pair-w { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; }
.hb-pair-w i { font-style: normal; color: var(--muted); font-size: 13px; }
.hb-pair-v, .hb-guest-v { font-size: 13px; color: var(--muted); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-dream li { padding: 10px 0; border-top: 1px dashed var(--ink-2); display: grid; gap: 2px; }
.hb-dream li:first-child { border-top: 0; }
.hb-dream small { color: var(--muted); font-size: 13px; }
.hb-guests li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 2px 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.hb-guests li:first-child { border-top: 0; }
.hb-guest-w { display: grid; min-width: 0; }
.hb-guest-w b { font-size: 16px; }
.hb-guest-w small, .hb-guest-x small { font-size: 12px; color: var(--muted); }
.hb-guest-x { display: grid; justify-items: end; }
.hb-guest-x b { font-size: 15px; }
.hb-guest-x.hb-wide { display: none; }
.hb-guest-v { grid-column: 2 / -1; }

/* calendar */
.hb-events li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hb-events li:first-child { border-top: 0; }
.hb-date { display: grid; justify-items: center; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 6px 0 5px; }
.hb-date b { font-size: 26px; line-height: 1; }
.hb-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.hb-ev { display: grid; min-width: 0; }
.hb-ev small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.hb-when { font-size: 12.5px; color: var(--flag); font-weight: 700; white-space: nowrap; }
.hb-events .btn { grid-column: 2 / -1; justify-self: start; }
.hb-shop { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 16px; }
.hb-shop .cm-swipe { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }

/* stats table */
.hb-tablewrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); }
.hb-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.hb-table th, .hb-table td { padding: 9px 10px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.hb-table thead th { border-top: 0; background: var(--ink); color: var(--paper); font-size: 12.5px; }
.hb-table th button { background: none; border: 0; color: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }
.hb-table th button[aria-pressed="true"] { color: var(--lime); }
.hb-table .hb-t-nm { text-align: left; position: sticky; left: 0; background: var(--card); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.hb-table thead .hb-t-nm { background: var(--ink); z-index: 2; }
.hb-table .hb-t-nm .hb-tag { margin-left: 8px; }
.hb-table .hb-t-n { text-align: right; color: var(--muted); width: 34px; }
.hb-table td.on { font-weight: 700; background: rgba(201, 59, 43, .08); }

/* a channel's numbers on its profile */
.hb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hb-tiles div { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.hb-tiles b { font-size: 20px; }
.hb-tiles small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.hb-posts { font-size: 15px; }

@media (max-width: 480px) {
  .hb-tag { display: none; }
  .hb-board li { grid-template-columns: 24px minmax(0, 1fr) minmax(40px, 30%) auto; }
}
@media (min-width: 760px) {
  .hb { gap: 46px; padding-top: 30px; }
  .hb-rail { grid-auto-columns: 262px; margin: 0; padding: 2px 0 6px; }
  .hb-week { margin: 0; padding: 2px 0 6px; grid-auto-columns: minmax(150px, 1fr); }
  .hb-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .hb-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
  .hb-guest-x.hb-wide { display: grid; }
  .hb-guests li { grid-template-columns: 28px minmax(0, 1fr) 70px 90px 80px; }
  .hb-events li { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
  .hb-events .btn { grid-column: auto; }
  .hb-shop .cm-swipe { margin: 0; padding-left: 0; padding-right: 0; }
  .hb-ranks-2 { max-width: 760px; }
}
.hb-tease { padding: 30px 0 8px; }

/* The phone rules of styles.css pad every text link for the thumb. Hub rows are already tall, so they need less. */
#view .hb p a:not(.btn):not(.shop):not(.shop-btn), #view .hb-tease p a:not(.btn):not(.shop):not(.shop-btn) { padding-block: 3px; }
#view .hb li > a.hb-ch, #view .hb li a.hb-ch, #view .hb li > a.hb-board-nm { display: inline; min-height: 0; }
#view .hb li > a.hb-pair-v, #view .hb li > a.hb-guest-v { display: block; min-height: 0; padding-block: 4px; }
#view .hb .hb-rank > a.vcard { display: grid; min-height: 54px; }
#view .hb .hb-day li > a { display: block; padding-block: 5px; }
#view .hb li > a.btn { display: inline-flex; }
@media (min-width: 760px) { .hb-rail, .hb-week { scroll-padding-left: 0; } }
.hb-guest-n { font-size: 16px; }
#view .hb li a.hb-guest-n { display: inline; }

/* Shop blocks between the modules, and the endless scroll under them */
.hb-shop .cm-item s { color: var(--muted); }
.hb-scroll { padding-top: 34px; }
/* The home feed grid: one column on a phone, two on a tablet, three on a wide screen (clubhouse.js sets data-n). */
.cm-cols { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cm-cols[data-n="1"] { max-width: 640px; margin-inline: auto; }
.cm-cols[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cm-cols[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cm-col { display: grid; gap: 14px; min-width: 0; align-content: start; }
.cm-cols[data-n="2"] .cm-col { gap: 16px; }
.cm-cols[data-n="3"] .cm-col { gap: 18px; }
.cm-cols .cm-caught { align-self: start; }
.hb-scroll .hb-h h2 { font-size: clamp(30px, 7vw, 44px); }
.hb-door { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Atelier hub refinements */
.hb-chip { border-radius: var(--r-sm); border-width: 1px; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.hb-day, .hb-shop, .hb-tablewrap, .hb-tiles div, .hb-v .vthumb, .hb-lead .vthumb { border-radius: var(--r); border-width: 1px; border-color: #cfc7b8; }
.hb-lead-n { border-radius: var(--r-sm); width: 44px; height: 44px; font-size: 26px; border-width: 1px; }
