/* /rants — YouTube-style: one big player, rants as a thumbnail grid. Theater (full-width player, grid below) is
   the desktop default; the ▭ button / T switches to the default view (player + "up next" column). */
.rt .fp-head{align-items:flex-end}
.rt-upload-go{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #f5c451;color:#f5c451;font-weight:800;font-size:13px;text-decoration:none;white-space:nowrap}
.rt-main{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start;margin-top:12px}
.rt-stage{background:#000;border-radius:14px;overflow:hidden;aspect-ratio:16/9;max-height:72vh;display:grid;place-items:center;box-shadow:0 14px 40px rgba(0,0,0,.45)}
.rt-stage video{width:100%;height:100%;background:#000;object-fit:contain;display:block}
.rt-info{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 2px 4px}
.rt-info h3{margin:0;font-size:20px;font-weight:800;line-height:1.25}
.rt-info p{margin:4px 0 0;color:#9fb3c8;font-size:13px}
.rt-who{display:inline-block;padding:1px 9px;border-radius:999px;background:#2b2047;color:#d9c9ff;font-weight:800;font-size:12px}
.rt-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rt-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid #2b4157;background:#13233a;color:#e2ecf6;font:inherit;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer}
.rt-btn:hover{border-color:#f5c451}
.rt-theater{width:38px;padding:0;font-size:17px}
.rt-auto{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#9fb3c8;cursor:pointer}
.rt-side{min-width:0}
.rt-side-head h3{margin:0 0 8px;font-size:16px}
.rt-side-head h3 small{font-weight:600;color:#8aa0b6;font-size:12px;margin-left:6px}
.rt-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.rt-filters button{min-height:32px;padding:0 11px;border-radius:999px;border:1px solid #2b4157;background:#0f1d2e;color:#c9d8e6;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.rt-filters button span{color:#7890ad;font-weight:600}
.rt-filters button.is-on{background:#f5c451;border-color:#f5c451;color:#14202e}
.rt-filters button.is-on span{color:#5a4a1a}
.rt-filters .rt-order{margin-left:auto}
/* default view: compact "up next" column */
.rt-list{display:grid;gap:8px}
.rt-card{display:grid;grid-template-columns:168px minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:4px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.rt-card:hover{background:#13233a}
.rt-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#0a0f16 radial-gradient(circle,#1d2c40,#0a0f16)}
.rt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rt-thumb i{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:22px;color:#fff;opacity:0;background:rgba(0,0,0,.35);transition:opacity .15s}
.rt-card:hover .rt-thumb i{opacity:1}
.rt-now{position:absolute;left:6px;bottom:6px;display:none;padding:1px 7px;border-radius:5px;background:#f5c451;color:#14202e;font-style:normal;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.rt-card.is-current{background:#16283c;box-shadow:inset 0 0 0 1px #f5c45188}
.rt-card.is-current .rt-now{display:block}
.rt-meta{display:grid;gap:4px;min-width:0;padding-top:2px}
.rt-meta b{font-size:13.5px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rt-meta small{font-size:11.5px;color:#8aa0b6}
.rt-meta .rt-who{font-size:10.5px;padding:0 7px}
.rt-more{text-align:center;margin:12px 0}
.rt-more p{color:#8aa0b6;font-size:13px}
/* theater: full-width player, rants as a grid below */
.rt.is-theater .rt-main{grid-template-columns:minmax(0,1fr)}
.rt.is-theater .rt-stage{max-height:78vh;border-radius:10px}
.rt.is-theater .rt-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px 14px}
.rt.is-theater .rt-card{grid-template-columns:1fr;gap:8px;padding:0}
.rt.is-theater .rt-card:hover{background:none}
.rt.is-theater .rt-card:hover .rt-thumb{box-shadow:0 0 0 2px #f5c451}
.rt.is-theater .rt-card.is-current{background:none;box-shadow:none}
.rt.is-theater .rt-card.is-current .rt-thumb{box-shadow:0 0 0 3px #f5c451}
.rt.is-theater .rt-side{border-top:1px solid #1d2c40;padding-top:14px}
/* upload panel */
.rt-upload{margin-top:18px}
.rt-upload>summary{display:flex;align-items:baseline;gap:10px;padding:14px 16px;cursor:pointer;list-style:none}
.rt-upload>summary::-webkit-details-marker{display:none}
.rt-upload>summary h3{margin:0;font-size:16px}
.rt-upload>summary span{color:#8aa0b6;font-size:12.5px}
.rt-upload-body{padding:0 16px 16px}
@media (max-width:1000px){
  .rt-main{grid-template-columns:minmax(0,1fr)}
  .rt-theater{display:none}
  .rt-list{grid-template-columns:minmax(0,1fr)}
  .rt-stage{border-radius:10px;max-height:none}
}
@media (max-width:640px){
  .rt .fp-head{flex-wrap:wrap}
  .rt-stage{margin:0 -12px;border-radius:0}
  .rt-info h3{font-size:16px}
  .rt-card{grid-template-columns:140px minmax(0,1fr)}
  .rt-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -12px 10px;padding:0 12px}
  .rt-filters button{flex:0 0 auto}
}
.rt-who[hidden]{display:none}
/* theater: player + its title row fit on one screen under the sticky header */
.rt.is-theater .rt-stage{aspect-ratio:auto;height:min(56.25vw,calc(100vh - 230px));max-height:none;min-height:320px}
/* v4: the player is sized by script to fit the window (fit() in rants.html), never taller than the screen */
.rt-stage,.rt.is-theater .rt-stage{aspect-ratio:auto!important;max-height:none!important;min-height:0!important;height:auto}
.rt .fp-head{padding-bottom:6px}
.rt .fp-head h2{font-size:clamp(24px,2.4vw,32px)}
.rt .fp-sub{margin-top:2px}
.rt .section-nav,.rt nav[aria-label$="sections"]{margin-bottom:6px}
.rt-main{margin-top:6px}
.rt-info{padding-top:8px}
.rt-info h3{font-size:18px}
@media (max-height:820px) and (min-width:641px){.rt .fp-sub{display:none}}
/* v5 (2026-10-07): the video fills the player box and scales to fit (it was rendering at its natural size, cropped).
   Standard view = YouTube default: player left, rants in a right column that scrolls on its own. */
.rt-stage{position:relative;background:#000}
.rt-stage video{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain}
.rt-main{grid-template-columns:minmax(0,1fr) 400px;gap:20px}
.rt-side{position:sticky;top:calc(var(--rt-top,0px) + 8px);display:flex;flex-direction:column;max-height:calc(100vh - var(--rt-top,0px) - 16px);min-height:0}
.rt-side-head{flex:none}
.rt-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px;margin-bottom:8px}
.rt-filters button{flex:0 0 auto}
.rt-filters .rt-order{margin-left:0;position:sticky;right:0;background:#0f1d2e;box-shadow:-10px 0 10px #0b1422}
.rt-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#2b4157 transparent;align-content:start}
.rt-more{flex:none;margin:8px 0 0}
.rt-card{grid-template-columns:168px minmax(0,1fr)}
/* theater keeps the grid below the player */
.rt.is-theater .rt-side{position:static;max-height:none;display:block}
.rt.is-theater .rt-list{overflow:visible}
.rt.is-theater .rt-filters{flex-wrap:wrap}
@media (max-width:1000px){
  .rt-main{grid-template-columns:minmax(0,1fr)}
  .rt-side{position:static;max-height:none;display:block}
  .rt-list{overflow:visible}
}
.rt-side{max-height:var(--rt-side-h,calc(100vh - var(--rt-top,0px) - 16px))}
/* side list rows were squashed (grid tracks shrank inside the fixed-height column): stack as flex, never shrink */
.rt-list{display:flex;flex-direction:column;gap:6px}
.rt-card{flex:none}
.rt.is-theater .rt-list{display:grid}
