/* Split page (app.js splitPage): each pane is a swipeable carousel (Web Browser, Home feed, Live feed, Saved
 * posts), and the page gives the panes most of the screen. */
.split-carousel{flex:1;min-height:0;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.split-carousel::-webkit-scrollbar{display:none}
.split-carousel:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.split-slide{flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;padding:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-align:start;scroll-snap-stop:always}
.split-slide.browser-pane-content{display:flex;flex-direction:column;gap:10px}
.split-pane-head{touch-action:pan-y}
.split-dots{display:flex;align-items:center;flex:none}
.split-dot{display:grid;place-items:center;width:18px;height:26px;padding:0;margin:0;border:0;background:none;cursor:pointer}
.split-dot::before{content:'';width:6px;height:6px;border-radius:3px;background:var(--dim);transition:width .2s ease,background-color .2s ease}
.split-dot[aria-pressed="true"]::before{width:16px;background:var(--accent)}
.split-page .section-heading{margin-bottom:14px}
.split-page .platform-shortcuts{margin-bottom:12px}
.split-page .panels-bar{margin-bottom:10px}
.split-page .split-tip{margin-top:10px}
@media(min-width:761px){
  .split-page .split-workspace[data-orientation]{height:max(470px,calc(100vh - 285px))}
  .split-page .split-workspace[data-orientation="stacked"]{height:max(760px,calc(100vh - 150px))}
}
/* Phones: edge-to-edge panes with no borders, and whatever a pane shows (a website, the Home feed, the Twitch card)
 * filling the whole pane. app.js (fitSplitWorkspace) measures the top header and the bottom bar into --split-chrome
 * and the bottom bar alone into --split-nav. */
@media(max-width:760px){
  .content:has(> .split-page){padding:6px 0 0}
  /* The see-through header would show the controls row behind it once the panes are scrolled up to it. */
  .app-shell:has(.split-page) .global-header{background:var(--bg)}
  /* One row above the panes: Swap panes, Side by side and Stacked as icon buttons (their names stay for screen
   * readers), then the site shortcuts, which scroll sideways. The page title stays for screen readers only. */
  .split-page{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:6px}
  .split-page>*{grid-column:1 / -1;min-width:0}
  .split-page>.section-heading{grid-column:1;grid-row:1;margin:0 0 6px;padding-left:10px}
  .split-page>.section-heading>div{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .split-page>.panels-bar{grid-column:2;grid-row:1;margin:0 0 6px}
  .split-page>.platform-shortcuts{grid-column:3;grid-row:1}
  .split-page .panels-bar .hint-text{display:none}
  .split-page .split-layout-controls{display:flex;gap:6px;width:auto}
  .split-page .section-heading .secondary-btn,.split-page .split-layout-controls .secondary-btn{flex:none;width:34px;height:34px;padding:0;justify-content:center;gap:0;font-size:0}
  .split-page .platform-shortcuts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 6px;padding:0 10px 0 0;gap:6px}
  .split-page .platform-shortcuts::-webkit-scrollbar{display:none}
  .split-page .platform{flex:none;height:34px;box-sizing:border-box;padding:0 8px;gap:6px}
  .split-page .platform .platform-badge{width:22px;height:22px}
  /* Each pane: a 32 px title bar, a 40 px address bar on web slides, then a 290 px card (the website, the Twitch
   * card, or a Home feed photo or video). */
  .split-page .split-workspace[data-orientation]{--split-head:32px;--split-url:40px;--split-card:290px;height:calc(100svh - var(--split-chrome,126px));min-height:420px;scroll-margin-top:var(--split-header,65px);margin-bottom:var(--split-nav,61px)}
  /* Stacked: each pane holds a whole 290 px card under its title and address bars (at the default 50/50 split),
   * with the 10 px handle between the panes. */
  .split-page .split-workspace[data-orientation="stacked"]{height:calc(2 * (var(--split-head) + var(--split-url) + var(--split-card)) + 10px);min-height:0;grid-template-rows:minmax(0,var(--split-first)) 10px minmax(0,var(--split-second))}
  .split-page .split-workspace[data-orientation="side-by-side"]{grid-template-columns:minmax(0,var(--split-first)) 10px minmax(0,var(--split-second))}
  .split-page .split-pane{border:0;border-radius:0}
  .split-page .split-pane-head{flex:none;height:var(--split-head,32px);min-height:0;box-sizing:border-box;padding:0 6px 0 10px;gap:6px;border-bottom:0}
  .split-page .split-slide{padding:0}
  /* Web slides: a slim address bar, then the website (or the Twitch card) to the pane's edges and bottom. */
  .split-page .split-slide.browser-pane-content{gap:0}
  .split-page .browser-pane-content .url-form{flex:none;height:var(--split-url,40px);box-sizing:border-box;padding:0 8px 5px;gap:6px}
  .split-page .browser-pane-content .url-form input{padding:6px 9px}
  .split-page .browser-pane-content .pane-iframe:not(.stream-player){flex:1;min-height:0;height:auto;border:0;border-radius:0}
  /* Kick's page doesn't paint all the way to its right and bottom edges, so the frame's own white background
   * showed there as thin white lines. Kick's own dark color hides them; other websites keep white behind them. */
  .split-page .browser-pane-content .pane-iframe:is([src^="https://kick.com"],[src^="https://www.kick.com"]){background:#090b0f}
  .split-page .browser-pane-content .stream-player{flex:1;min-width:0;min-height:0;height:auto;border:0;border-radius:0;background:#000}
  .split-page .browser-note{display:none}
  .split-page .browser-launch{flex:1;min-height:0;overflow:hidden;border:0;border-radius:0;padding:8px 12px;gap:6px}
  .split-page .browser-provider{width:34px;height:34px;border-radius:10px;font-size:20px}
  .split-page .browser-launch h3{font-size:16px}
  .split-page .browser-launch p{font-size:11px;max-width:300px}
  .split-page .browser-launch .primary-btn{height:34px}
  /* Home feed and saved posts: each photo or video is a card as wide as the pane and as tall as the website cards
   * (290 px), with the poster's name over its top edge; the caption and actions follow below it. Posts without
   * media stay as text. */
  .split-page .split-slide .pane-post{position:relative;display:flex;flex-direction:column;border:0;border-radius:0;background:none;padding:0;margin:0 0 10px}
  .split-page .split-slide .pane-post .post-head{padding:8px 10px 6px}
  .split-page .split-slide .pane-post .post-body{display:contents}
  .split-page .split-slide .pane-post .post-body>p{margin:0;padding:8px 10px 2px}
  .split-page .split-slide .pane-post .post-media{order:-1;flex:none;height:var(--split-card,290px);min-height:0;margin:0;border-radius:0;background:#000;container:pane-media / inline-size}
  .split-page .split-slide .pane-post .post-media>img{object-fit:contain}
  .split-page .split-slide .pane-post:has(.post-media) .post-head{position:absolute;top:0;left:0;right:0;z-index:3;padding:8px 10px 20px;background:linear-gradient(rgba(4,8,15,.72),rgba(4,8,15,0));pointer-events:none}
  .split-page .split-slide .pane-post:has(.post-media) .post-head>*{pointer-events:auto}
  .split-page .split-slide .pane-post:has(.post-media) .post-head .meta{color:rgba(255,255,255,.75)}
  .split-page .split-slide .pane-post .post-actions{padding:6px 10px 0}
  .split-page .split-slide>.empty{margin:10px}
  .split-page .split-slide[data-kind="live"]{padding:0}
  /* Nothing follows the panes on a phone: no tip and no site footer (it stays on every other page). The page ends
   * one bottom-bar height below the panes, so swiping up stops with the whole second pane just above the bar. */
  .split-page .split-tip{display:none}
  body:has(.split-page)>.site-footer{display:none}
}
/* A video in a narrow pane (side by side on a phone) keeps play, seek, sound and full screen; the time and the
 * volume slider make room. */
@container pane-media (max-width:320px){.fp-vc-time,.fp-vc-volume{display:none}}
@media(prefers-reduced-motion:reduce){.split-dot::before{transition:none}}

/* The real Live page fills each pane; its document owns playback, chat and room navigation. */
.split-slide[data-kind="live"]{padding:0;overflow:hidden}
.split-live-frame{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0;background:#050608}
