.original-theater-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: #17191f;
  color: #efeff1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s,
    transform 0.16s;
}
.original-theater-toggle svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.original-theater-toggle:hover {
  background: #252731;
}
.original-theater-toggle:active {
  transform: scale(0.96);
}
@media (min-width: 981px) {
  :root {
    --vod-width: 0px;
  }
  .platform-tabs {
    grid-template-columns: 120px 1fr auto;
  }
  .vod-sidebar,
  .vods-hidden .vod-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    transform: none;
    width: 100%;
    margin-top: 24px;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .vod-sidebar-head {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: auto;
    flex: auto;
    padding: 0 0 14px;
    border: 0;
  }
  .vod-sidebar-head strong {
    font-size: 15px;
  }
  .vod-all {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
  }
  .vod-list {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    overflow: visible;
  }
  .vod-item {
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .vod-copy {
    padding: 9px 0 0;
  }
  #vodSidebarClose,
  #vodSidebarOpen,
  .vods-hidden #vodSidebarOpen {
    display: none;
  }
  .stream-actions {
    gap: 8px;
  }
  body.original-theater-mode {
    overflow: hidden;
  }
  .original-theater-mode .platform-tabs,
  .original-theater-mode .stream-card,
  .original-theater-mode .vod-sidebar,
  .original-theater-mode .side-drawer,
  .original-theater-mode #chatOpen,
  .original-theater-mode #vodSidebarOpen {
    display: none !important;
  }
  .original-theater-mode .live-shell,
  .original-theater-mode .live-shell.chat-hidden,
  .original-theater-mode .live-shell.vods-hidden {
    height: 100dvh;
    min-height: 0;
    padding: 0 var(--chat-width) 0 0;
    background: #000;
  }
  .original-theater-mode .live-main {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    max-width: none;
  }
  .original-theater-mode .live-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #000;
  }
  .original-theater-mode .live-player {
    width: min(100%, calc(100dvh * 16 / 9));
    aspect-ratio: 16/9;
    height: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    flex: none;
  }
  .original-theater-mode .live-chat,
  .original-theater-mode .chat-hidden .live-chat {
    display: flex;
    transform: none;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: var(--chat-width);
  }
  .original-theater-mode #chatClose {
    display: none;
  }
  .original-theater-mode .original-theater-toggle {
    position: absolute;
    z-index: 20;
    top: 12px;
    right: 12px;
    background: #17191fd9;
  }
}
@media (max-width: 650px) {
  .live-stage > .original-theater-toggle {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 6;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #17191fcc;
  }
  .live-stage > .original-theater-toggle span {
    display: none;
  }
  .original-theater-mode .platform-tabs,
  .original-theater-mode .stream-card {
    display: none !important;
  }
  .original-theater-mode .live-shell,
  .original-theater-mode .live-shell.vods-hidden {
    padding: 0;
  }
  .original-theater-mode .live-main {
    padding: 0;
  }
  .original-theater-mode .live-chat,
  .original-theater-mode .mobile-player-info-open .live-chat {
    top: calc(100vw * 9 / 16);
  }
}
@media (prefers-reduced-motion: reduce) {
  .original-theater-toggle {
    transition: none;
  }
}

.platform-actions .stream-socials {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
  flex: none;
}
.stream-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: #17191f;
  color: #bdbfc8;
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.stream-socials i {
  font-size: 14px;
}
.stream-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.stream-socials a:hover {
  background: #292b33;
  color: #fff;
  transform: translateY(-2px);
}
.stream-socials a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.livepix-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 286px;
  height: 62px;
  min-height: 62px;
  flex: 0 0 286px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 20px;
  background: #17181d;
  color: #f5f5f7;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.livepix-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 94px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
}
.livepix-brand img {
  display: block;
  width: 78px;
  height: auto;
}
.livepix-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.livepix-copy strong {
  font-size: 14px;
}
.livepix-copy > span {
  font-size: 9px;
  color: #a9a9b4;
  white-space: nowrap;
}
.livepix-cta {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 0;
}
.livepix-cta svg {
  width: 18px;
  height: 18px;
}
.livepix-card:hover {
  background: #25262e;
  transform: translateY(-2px);
}
.livepix-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.vod-sidebar .vod-item {
  overflow: hidden;
  border-radius: 16px;
  background: #14151a;
  transition:
    background 0.18s,
    transform 0.18s;
}
.vod-sidebar .vod-copy {
  padding: 12px 14px 14px;
}
.vod-sidebar .vod-thumb {
  border-radius: 16px 16px 0 0;
}
.vod-sidebar .vod-item:hover {
  background: #202127;
  transform: translateY(-2px);
}
.original-theater-toggle kbd {
  display: none;
}
.original-theater-mode .livepix-card {
  display: none !important;
}
.original-theater-mode .original-theater-toggle {
  height: 42px;
  top: 14px;
  right: 14px;
  left: auto;
  width: auto;
  padding: 0 16px;
  gap: 10px;
  border: 0;
  border-radius: 100px;
  background: #f5f5f7;
  color: #16171b;
  font-size: 12px;
  box-shadow: 0 4px 18px #0005;
  z-index: 50;
}
.original-theater-mode .original-theater-toggle:hover {
  background: #fff;
}
.original-theater-mode .original-theater-toggle span {
  display: inline;
}
.original-theater-mode .original-theater-toggle kbd {
  display: inline;
  padding: 3px 5px;
  border-radius: 5px;
  background: #e3e3e8;
  color: #4b4d55;
  font-family: inherit;
  font-size: 10px;
}
@media (min-width: 981px) {
  body:not(.original-theater-mode) .live-player {
    max-height: calc(100dvh - var(--top-h) - 180px);
  }
}
@media (min-width: 651px) and (max-width: 1250px) {
  .platform-actions .stream-socials {
    gap: 3px;
    margin-right: 3px;
  }
  .stream-socials a {
    width: 24px;
    height: 24px;
  }
  .stream-socials i {
    font-size: 12px;
  }
  .livepix-card {
    width: 240px;
    flex-basis: 240px;
  }
  .livepix-copy > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .platform-tabs {
    height: 88px;
  }
  .platform-actions .stream-socials {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 54px;
    justify-content: center;
    margin: 0;
    gap: 12px;
  }
  .live-main {
    padding-top: 88px;
  }
  .livepix-card {
    display: none;
  }
  .live-chat {
    top: calc(88px + (100vw * 9 / 16));
  }
  .original-theater-mode .original-theater-toggle kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .livepix-card,
  .stream-socials a,
  .vod-sidebar .vod-item {
    transition: none;
  }
}

@media (max-width: 650px) {
  body:not(.original-theater-mode) .livepix-card {
    display: flex;
    position: fixed;
    z-index: 45;
    left: 8px;
    right: 8px;
    top: calc(var(--mobile-player-bottom, calc(88px + (100vw * 9 / 16))) + 6px);
    width: auto;
    height: 60px;
    min-height: 60px;
    margin: 0;
    flex: none;
  }
  body:not(.original-theater-mode) .live-chat {
    top: calc(var(--mobile-player-bottom, calc(88px + (100vw * 9 / 16))) + 72px);
  }
  body.mobile-player-info-open:not(.original-theater-mode) .livepix-card {
    top: calc(var(--mobile-player-bottom, calc(88px + (100vw * 9 / 16))) + 80px);
  }
  body.mobile-player-info-open:not(.original-theater-mode) .live-chat {
    top: calc(var(--mobile-player-bottom, calc(88px + (100vw * 9 / 16))) + 146px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .original-theater-mode .original-theater-toggle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }
  .original-theater-mode .live-stage:has(.live-player:hover) .original-theater-toggle,
  .original-theater-mode .original-theater-toggle:hover,
  .original-theater-mode .original-theater-toggle:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .original-theater-mode .original-theater-toggle {
    transition: none;
  }
}

.platform-actions .chat-open {
  position: static;
  z-index: auto;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 100px;
  background: #17191f;
  color: #efeff1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.chat-hidden .platform-actions .chat-open {
  display: inline-flex;
}
.platform-actions .chat-open svg {
  width: 18px;
  height: 18px;
}
.platform-actions .chat-open:hover {
  background: #292b33;
}
.platform-actions .account-menu {
  flex: none;
}
.platform-actions .chat-open:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.stream-avatar img {
  object-fit: cover;
  object-position: center 35%;
}
@media (max-width: 1250px) {
  .platform-actions .chat-open span {
    display: none;
  }
  .platform-actions .chat-open {
    width: 36px;
    padding: 0;
  }
}

.platform-actions .account-menu {
  order: 1;
}
.platform-actions .chat-open {
  order: 2;
}
.chat-messages,
.native-chat-pane,
.admin-drawer-content,
.emoji-picker-grid,
.mention-suggestions {
  overscroll-behavior-y: contain;
}
.native-chat-pane {
  overflow: hidden;
}
html:has(body.live-page),
body.live-page,
.live-page .live-main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html:has(body.live-page)::-webkit-scrollbar,
body.live-page::-webkit-scrollbar,
.live-page .live-main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
:root {
  --support-width: 460px;
}
.admin-chat-drawer .side-drawer-header {
  flex: 0 0 64px;
  min-height: 64px;
}
.admin-drawer-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.admin-drawer-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0d12;
}
@media (min-width: 981px) {
  .drawer-open .live-shell {
    padding-right: calc(var(--chat-width) + var(--support-width));
  }
  .live-shell.drawer-open {
    padding-right: calc(var(--chat-width) + var(--support-width));
  }
  .drawer-open.chat-hidden {
    padding-right: var(--support-width);
  }
  .drawer-open.chat-hidden .admin-chat-drawer {
    right: 0;
  }
}
@media (max-width: 1100px) {
  .admin-chat-drawer {
    right: 0;
    width: min(460px, 100vw);
    z-index: 1300;
  }
}
@media (max-width: 650px) {
  .drawer-open .admin-chat-drawer {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1400;
  }
  .admin-chat-drawer .side-drawer-header {
    flex-basis: 56px;
    min-height: 56px;
  }
}
#streamSubBtn {
  background: #17191f;
  color: #efeff1;
  border: 0;
  border-radius: 100px;
  box-shadow: none;
}
#streamSubBtn:hover {
  background: #292b33;
}
#streamSubBtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.chat-system.ok.chat-notice-live.twitch-sub-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 2px;
  padding: 6px 16px;
  border: 0;
  border-left: 4px solid #8bc34a;
  border-radius: 0;
  background: #26262c;
  color: #efeff1;
  font-size: 14px;
  line-height: 20px;
  min-height: 48px;
  box-sizing: border-box;
}
.twitch-sub-notice .chat-notice-live-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 20px;
  color: #dedee3;
  font-size: inherit;
}
.twitch-sub-notice .chat-notice-live-icon svg {
  width: 18px;
  height: 18px;
}
.twitch-sub-notice .chat-notice-live-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}
.twitch-sub-notice .chat-notice-live-text .twitch-sub-user {
  display: block;
  color: #8bc34a;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}
.twitch-sub-description {
  display: block;
  color: #efeff1;
  font-size: 14px;
  line-height: 20px;
}
.twitch-sub-notice .chat-notice-user-message {
  margin: 4px 0 0;
  font-size: 14px;
}
.twitch-sub-description strong {
  color: inherit;
  font-weight: 700;
}
.chat-system.ok.chat-notice-live.twitch-gift-notice {
  border-left-color: #8bc34a;
}
.twitch-gift-notice .twitch-gift-symbol,
.twitch-gift-notice .twitch-gift-content .twitch-gift-name,
.twitch-gift-notice .twitch-gift-description strong {
  color: #8bc34a;
}
.chat-system.ok.chat-notice-live.twitch-sub-notice,
.chat-system.ok.chat-notice-live.twitch-gift-notice {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
}
.twitch-sub-notice .chat-notice-live-text {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  white-space: normal;
}
.chat-system.ok.chat-notice-live[data-notice-type="moderation"] {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  margin: 0 0 2px;
  padding: 8px 16px;
  border: 0;
  border-left: 4px solid #8bc34a;
  border-radius: 0;
  background: #26262c;
  color: #efeff1;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  overflow-wrap: anywhere;
}
.chat-notice-live[data-notice-type="moderation"] .chat-notice-live-text {
  font-size: 14px;
  line-height: 20px;
}
.chat-notice-live[data-notice-type="moderation"] .timeout-notice-user {
  color: #8bc34a;
  font-weight: 700;
}
.chat-system.ok.chat-notice-live,
.chat-system.ok.chat-notice-live.twitch-gift-notice,
.chat-system.ok.chat-notice-live.twitch-gift-community {
  background: #26262c;
  border-left-color: #8bc34a;
  border-radius: 0;
  flex-shrink: 0;
  height: auto;
  max-height: none;
}
.chat-notice-live .chat-notice-live-text strong,
.chat-notice-live .chat-notice-live-text b,
.chat-notice-live .chat-notice-live-icon,
.chat-notice-live .twitch-gift-symbol,
.twitch-gift-notice .twitch-gift-content strong {
  color: #8bc34a;
}
.twitch-sub-notice .twitch-sub-description strong {
  color: #efeff1;
}
.mobile-app-bar,
.mobile-app-menu {
  display: none;
}
@media (max-width: 650px), (max-width: 980px) and (max-height: 520px) {
  body.live-page {
    --app-video-height: calc(100vw * 9 / 16);
    height: var(--app-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    background: #0e0e10;
  }
  body.live-page .live-shell {
    padding: 0 !important;
    height: var(--app-height, 100dvh);
    min-height: 0;
    overflow: hidden;
    background: #0e0e10;
  }
  body.live-page .platform-tabs,
  body.live-page #vodSidebarOpen {
    display: none !important;
  }
  body.live-page .live-main {
    padding: 0 !important;
    margin: 0;
    width: 100%;
    height: var(--app-video-height);
    min-height: 0;
    overflow: hidden;
  }
  body.live-page .live-stage {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
  }
  body.live-page .live-player {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none !important;
    aspect-ratio: 16/9;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }
  body.live-page .live-main > .stream-card,
  body.live-page .live-main > .vod-sidebar,
  body.live-page .mobile-player-info-trigger,
  body.live-page .live-stage > .original-theater-toggle {
    display: none !important;
  }
  body.live-page .live-chat,
  body.live-page .chat-hidden .live-chat,
  body.live-page.original-theater-mode .live-chat {
    display: flex !important;
    position: fixed;
    top: var(--app-video-height) !important;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(var(--app-height, 100dvh) - var(--app-video-height));
    transform: none !important;
    border: 0;
    box-shadow: none;
    min-height: 0;
  }
  body.live-page .live-chat-header {
    display: none !important;
  }
  .mobile-app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    height: 42px;
    padding: 0 10px;
    background: #111214;
    color: #efeff1;
  }
  .mobile-app-bar > strong {
    font-size: 13px;
    margin-right: auto;
    letter-spacing: 0.1px;
  }
  .mobile-app-bar button,
  .mobile-app-menu button.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #202126;
    color: #efeff1;
    cursor: pointer;
  }
  .mobile-app-bar svg,
  .mobile-menu-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-app-bar button:active {
    background: #34353d;
  }
  .mobile-app-bar button:focus-visible,
  .mobile-app-menu a:focus-visible,
  .mobile-app-menu button:focus-visible {
    outline: 2px solid #8bc34a;
    outline-offset: 2px;
  }
  body.live-page .chat-platform-filter {
    flex: none;
    gap: 4px;
    padding: 4px 8px;
    height: 36px;
    box-sizing: border-box;
    background: #0e0e10;
  }
  body.live-page .chat-platform-filter .filter {
    height: 28px;
    min-height: 28px;
    font-size: 10px;
    padding: 0 6px;
    border-radius: 100px;
  }
  body.live-page .chat-pane {
    min-height: 0;
    flex: 1;
    overscroll-behavior: contain;
  }
  body.live-page .chat-messages {
    padding: 8px 10px;
    overscroll-behavior: contain;
  }
  body.live-page .chat-composer {
    flex: none;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    background: #111214;
  }
  body.live-page .composer-box {
    min-height: 40px;
  }
  body.live-page #chatInput {
    font-size: 16px;
    max-height: 90px;
  }
  body.live-page .composer-bottom {
    padding: 0;
    min-height: 0;
    gap: 4px;
  }
  body.live-page .composer-note {
    margin: 5px 0 0;
    font-size: 10px;
  }
  body.live-page .composer-bottom .account-connections {
    margin-top: 4px;
    gap: 5px;
  }
  body.live-page .composer-bottom .account-connect {
    height: 24px;
  }
  body.live-page.mobile-chat-only,
  body.live-page.mobile-keyboard-open {
    --app-video-height: 0px;
  }
  body.live-page.mobile-chat-only .live-main,
  body.live-page.mobile-keyboard-open .live-main {
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-app-menu[open] {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    width: min(88vw, 360px);
    max-width: none;
    height: var(--app-height, 100dvh);
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0 22px 22px 0;
    background: #111214;
    color: #efeff1;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 12px 0 40px #0007;
  }
  .mobile-app-menu::backdrop {
    background: #0009;
    backdrop-filter: blur(3px);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    padding: 14px 16px 8px;
  }
  .mobile-menu-head img {
    display: block;
    width: 94px;
    height: 40px;
    object-fit: contain;
  }
  .mobile-menu-content {
    overflow-y: auto;
    min-height: 0;
    padding: 4px 16px max(20px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #444 #111214;
  }
  .mobile-menu-section {
    padding: 14px 0;
  }
  .mobile-menu-section > h2 {
    margin: 0 0 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #93959f;
    font-weight: 650;
  }
  .mobile-menu-players .platform-tabs-group {
    position: static;
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 6px;
    margin: 0;
    padding: 0;
    transform: none;
    width: 100%;
  }
  .mobile-menu-players .platform-tab {
    display: flex;
    flex: 1;
    gap: 5px;
    height: 42px;
    padding: 0 8px;
    font-size: 11px;
    border: 0;
    border-radius: 100px;
  }
  .mobile-menu-players .platform-brand-icon {
    width: 18px;
    height: 18px;
  }
  .mobile-menu-socials .stream-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: static;
    margin: 0;
    gap: 10px;
  }
  .mobile-menu-socials .stream-socials a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: auto;
    height: 58px;
    border-radius: 14px;
    background: #202126;
    font-size: 10px;
  }
  .mobile-menu-socials .stream-socials a::after {
    content: attr(aria-label);
    font-size: 9px;
    color: #bdbfc8;
  }
  .mobile-menu-socials .stream-socials i,
  .mobile-menu-socials .stream-socials svg {
    font-size: 19px;
    width: 19px;
    height: 19px;
  }
  .mobile-app-menu .stream-card {
    position: static !important;
    display: block !important;
    width: 100%;
    height: auto !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .mobile-app-menu .stream-channel-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .mobile-app-menu .stream-main-info {
    display: flex !important;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .mobile-app-menu .stream-avatar {
    display: block;
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }
  .mobile-app-menu .stream-copy {
    min-width: 0;
    flex: 1;
  }
  .mobile-app-menu .stream-copy h1 {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    margin: 4px 0 6px;
  }
  .mobile-app-menu .stream-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .mobile-app-menu .stream-meta {
    display: flex !important;
    flex-wrap: wrap;
    font-size: 10px;
    gap: 6px;
  }
  body.live-page .mobile-app-menu .livepix-card {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    width: 100%;
    height: 58px;
    min-height: 58px;
    flex: none;
    margin: 0;
  }
  .mobile-app-menu .stream-actions {
    display: flex !important;
    gap: 8px;
    justify-content: flex-start;
  }
  .mobile-app-menu .original-theater-toggle {
    display: none !important;
  }
  .mobile-app-menu .vod-sidebar,
  .mobile-app-menu .vods-hidden .vod-sidebar {
    display: block !important;
    position: static !important;
    transform: none !important;
    inset: auto !important;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
  }
  .mobile-app-menu .vod-sidebar-head {
    display: none;
  }
  .mobile-app-menu .vod-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    overflow: visible;
  }
  .mobile-app-menu .vod-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 0;
    border-radius: 14px;
    background: #202126;
  }
  .mobile-app-menu .vod-thumb {
    width: 96px;
    height: 54px;
    flex: 0 0 96px;
    aspect-ratio: 16/9;
    border-radius: 8px;
  }
  .mobile-app-menu .vod-copy {
    min-width: 0;
    padding: 0;
  }
  .mobile-app-menu .vod-copy strong {
    font-size: 12px;
  }
  .mobile-app-menu .vod-copy > span {
    font-size: 10px;
  }
  .mobile-app-menu .vod-all {
    display: block;
    font-size: 11px;
    margin: 12px 0 0;
    padding: 8px 0;
    border: 0;
    background: none;
  }
  .mobile-menu-account .account-menu {
    position: relative;
    width: 100%;
  }
  .mobile-menu-account .account-menu-toggle {
    width: 100%;
    justify-content: center;
    border-radius: 100px;
    height: 40px;
  }
  .mobile-menu-account .account-menu-toggle span {
    display: inline !important;
  }
  .mobile-menu-account .account-menu-popover {
    position: absolute;
    top: auto;
    bottom: 46px;
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
  }
  .mobile-menu-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 10px;
    padding: 10px 0;
  }
  .mobile-menu-footer a {
    color: #93959f;
    text-decoration: none;
  }
  .mobile-menu-close {
    flex: none;
  }
  .mobile-app-menu[open] {
    animation: mobileMenuIn 0.18s ease-out;
  }
  @keyframes mobileMenuIn {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(0);
    }
  }
}
@media (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  body.live-page {
    --app-video-height: 0px;
    --app-chat-width: 44vw;
  }
  body.live-page .live-main {
    visibility: visible;
    height: var(--app-height, 100dvh);
    width: calc(100vw - var(--app-chat-width));
  }
  body.live-page .live-stage {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.live-page .live-player {
    height: auto;
    max-height: 100% !important;
    width: 100%;
    aspect-ratio: 16/9;
  }
  body.live-page .live-chat {
    left: auto;
    width: var(--app-chat-width);
    height: var(--app-height, 100dvh);
  }
  body.live-page.mobile-chat-only .live-chat,
  body.live-page.mobile-keyboard-open .live-chat {
    width: 100%;
  }
  body.live-page.mobile-chat-only .live-main,
  body.live-page.mobile-keyboard-open .live-main {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-app-menu[open] {
    animation: none;
  }
}
@media (max-width: 650px), (max-width: 980px) and (max-height: 520px) {
  .mobile-app-bar button[aria-pressed="true"] {
    background: #2c3b22;
    color: #b3db8c;
  }
  .mobile-menu-account:has(.account-menu-toggle[hidden]) {
    display: none;
  }
}

/* Keep the exit control inside the actual player, including letterboxed layouts. */
.original-theater-mode .live-stage .original-theater-toggle {
  top: auto;
  bottom: var(--theater-exit-bottom, 12px);
  right: var(--theater-exit-right, 12px);
  left: auto;
}

.shared-live-partners {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #bdbfc8;
  font-size: 12px;
}
.shared-live-partners[hidden] {
  display: none !important;
}
#sharedChatPartners {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shared-partner {
  display: inline-flex;
  position: relative;
  align-items: center;
}
.shared-partner-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #8bc34a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.shared-partner-name > span {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shared-partner-mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 100px;
  object-fit: cover;
}
.shared-partner-card {
  display: none;
  position: absolute;
  z-index: 1200;
  bottom: calc(100% + 12px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #26262c;
  color: #efeff1;
  border-radius: 12px;
  box-shadow: 0 12px 40px #0009;
  overflow: visible;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}
.shared-partner-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}
.shared-partner:hover .shared-partner-card,
.shared-partner:focus-within .shared-partner-card,
.shared-partner.is-open .shared-partner-card {
  display: block;
}
.shared-partner-cover {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.shared-partner-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.shared-partner-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shared-partner-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 100px;
  border: 2px solid #8bc34a;
  object-fit: cover;
  flex: none;
}
.shared-partner-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.stream-name-row .shared-partner-display {
  font-size: 18px;
  color: #efeff1;
  font-weight: 700;
}
.shared-partner-live {
  font-size: 9px;
  background: #e91916;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  width: fit-content;
  font-weight: 750;
}
.shared-partner-stats {
  font-size: 12px;
  line-height: 1.4;
  color: #d4d4dc;
}
.shared-partner-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.45;
  color: #d4d4dc;
  font-size: 13px;
}
.shared-partner-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: #8bc34a;
  color: #10170c;
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
}
.shared-partner-visit:hover {
  background: #a0d25d;
}
.shared-partner-name:focus-visible,
.shared-partner-visit:focus-visible {
  outline: 2px solid #8bc34a;
  outline-offset: 3px;
}
.stream-card,
.stream-copy {
  overflow: visible;
}
.stream-name-row {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .shared-partner-card {
    position: fixed;
    top: calc(var(--mobile-player-bottom, 200px) + 8px);
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  .shared-partner-cover {
    height: 76px;
  }
  .shared-partner-body {
    padding: 12px;
  }
  .shared-partner-name {
    font-size: 12px;
  }
}

/* Partner profile card, public Twitch channel styling. */
.shared-partner-name{color:var(--partner-color,#faff00)}
.shared-partner-card{width:375px;border-radius:0;font-size:14px}
.shared-partner-cover{height:70px;border-radius:0;object-fit:cover}
.shared-partner-body{padding:8px 10px 12px;gap:8px}
.shared-partner-heading{gap:10px;margin-top:-16px;align-items:center}
.shared-partner-avatar{width:88px;height:88px;border-color:var(--partner-color,#faff00);box-sizing:border-box}
.stream-name-row .shared-partner-display{font-size:18px;font-weight:400}
.shared-partner-stats{font-size:14px;color:#efeff1}
.shared-partner-description{font-size:14px;line-height:1.45;-webkit-line-clamp:2}
.shared-partner-followers{font-weight:700;color:#efeff1}
.shared-partner-socials{display:flex;flex-wrap:wrap;gap:4px 8px}
.shared-partner-socials a{display:inline-flex;align-items:center;gap:5px;color:#efeff1;text-decoration:none;font-size:14px}
.shared-partner-socials i{color:var(--partner-color,#faff00);font-size:16px}
.shared-partner-socials a:hover{text-decoration:underline}
.shared-partner-visit{background:var(--partner-color,#faff00);color:#000;font-size:14px;min-height:38px}
.shared-partner-visit:hover{background:var(--partner-color,#faff00);filter:brightness(.92)}
@media(max-width:650px){.shared-partner-card{width:auto}.shared-partner-cover{height:70px}}

/* Fit the whole Twitch frame on mobile instead of clipping its minimum layout. */
#livePlayer.mobile-twitch-scaled:not(.multistream-active) iframe[src*="player.twitch.tv"] {
 width: var(--twitch-frame-width) !important;
 height: var(--twitch-frame-height) !important;
 max-width: none;
 transform: scale(var(--twitch-frame-scale));
 transform-origin: top left;
}

.platform-tab[hidden]{display:none!important}
#livePlayer.multistream-active{aspect-ratio:32/9;max-height:none!important;height:auto!important;overflow:hidden}
.multistream-grid{display:grid;grid-template-columns:1fr 1fr;width:100%;height:100%;gap:4px;background:#000}
.multistream-pane{min-width:0;display:flex;flex-direction:column;height:100%;background:#000}
.multistream-label{height:28px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px;gap:8px;font-size:12px;color:#eee;background:#15161a}
.multistream-frame{position:relative;flex:1;min-height:0;overflow:hidden}
.multistream-select{max-width:65%;border:0;background:#25262b;color:#fff;font-size:11px;padding:3px;border-radius:4px}
#livePlayer.multistream-active iframe[src*="player.twitch.tv"]{width:var(--multi-width)!important;height:var(--multi-height)!important;transform:none;zoom:var(--multi-scale,1);transform-origin:top left}
@media(max-width:650px){body.live-page.multistream-mode{--app-video-height:calc(100vw * 9 / 8 + 56px)}#livePlayer.multistream-active{aspect-ratio:auto;height:100%!important}.multistream-grid{grid-template-columns:1fr;grid-template-rows:1fr 1fr}}

body.multistream-mode .vod-sidebar{display:none!important}
body.multistream-mode .multistream-label{display:none}
body.multistream-mode .multistream-grid{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
@media(min-width:651px) and (min-height:521px){
 body.multistream-mode .live-main{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:10px;height:calc(100dvh - var(--top-h,64px));box-sizing:border-box;padding:10px}
 body.multistream-mode .live-stage{grid-column:2;grid-row:1;min-width:0;min-height:0;height:100%;width:100%}
 body.multistream-mode #livePlayer.multistream-active{height:100%!important;width:100%;aspect-ratio:auto;max-height:none!important}
 body.multistream-mode .stream-card{grid-column:1;grid-row:1;display:block!important;min-width:0;margin:0;padding:8px;overflow-y:auto;background:#111216;border-radius:12px}
 body.multistream-mode .stream-channel-row,body.multistream-mode .stream-main-info{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%}
 body.multistream-mode .stream-copy{width:100%;min-width:0}
 body.multistream-mode .stream-title-row h1{white-space:normal;font-size:14px;overflow-wrap:anywhere}
 body.multistream-mode .stream-meta{flex-wrap:wrap;gap:8px;font-size:12px}
 body.multistream-mode .stream-viewers-platforms{flex-wrap:wrap;font-size:12px}
 body.multistream-mode .livepix-card{display:flex!important;width:100%;max-width:100%;min-width:0;flex:none;height:auto;min-height:70px;box-sizing:border-box;margin:14px 0;flex-wrap:wrap;padding:12px}
 body.multistream-mode .livepix-brand{width:85px;flex:none}
 body.multistream-mode .livepix-brand img{width:85px;max-width:100%}
 body.multistream-mode .livepix-copy{min-width:0}
 body.multistream-mode .livepix-cta{margin-left:auto}
 body.multistream-mode .stream-actions{display:flex;flex-wrap:wrap;width:100%;gap:8px}
 body.multistream-mode .multistream-select{max-width:100%;width:100%;margin-top:12px}
 body.multistream-mode.original-theater-mode .live-main{height:100dvh;grid-template-columns:minmax(0,1fr);gap:0;padding:0}
 body.multistream-mode.original-theater-mode .stream-card{display:none!important}
 body.multistream-mode.original-theater-mode .live-stage{grid-column:1}
}
@media(max-width:650px){body.live-page.multistream-mode{--app-video-height:calc(100vw * 9 / 8)}}

@media(min-width:651px) and (min-height:521px){
 body.multistream-mode .live-main{grid-template-columns:260px minmax(0,1fr)}
 body.multistream-mode .stream-card{padding:12px}
 body.multistream-mode .stream-title-row h1{font-size:16px;line-height:1.4}
 body.multistream-mode .stream-meta{font-size:14px;gap:10px}
 body.multistream-mode .stream-viewers-platforms{font-size:14px;gap:8px}
 body.multistream-mode .livepix-card{display:grid!important;grid-template-columns:84px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:12px;height:auto;min-height:76px;overflow:hidden}
 body.multistream-mode .livepix-brand{display:flex;align-items:center;justify-content:center;width:84px;height:38px;box-sizing:border-box;padding:5px;background:#fff;border-radius:9px}
 body.multistream-mode .livepix-brand img{display:block;width:74px;max-width:100%;height:auto}
 body.multistream-mode .livepix-copy{display:flex;flex-direction:column;min-width:0;gap:4px}
 body.multistream-mode .livepix-copy strong{font-size:14px;line-height:1.2}
 body.multistream-mode .livepix-copy>span{display:block;white-space:normal;font-size:11px;line-height:1.3}
 body.multistream-mode .livepix-cta{display:flex;align-items:center;width:18px;min-width:18px;margin:0;font-size:0;overflow:hidden}
 body.multistream-mode .livepix-cta svg{width:18px;height:18px;flex:none}
}

/* Match the reference embed: rectangular, unobscured frames. */
body.multistream-mode .live-player{border-radius:0!important;overflow:visible!important;box-shadow:none!important}
body.multistream-mode .multistream-frame{overflow:visible}
.platform-tab.multistream{gap:8px}
.platform-tab .multistream-icon{width:22px;height:22px;flex:none;color:currentColor}
.platform-tab.multistream.active .multistream-icon{color:#b9e975}

/* Keep adjacent navigation and chat shadows off the Twitch frames. */
body.multistream-mode .platform-tabs,body.multistream-mode .live-chat{box-shadow:none!important}


