/* ==========================================================
   GAYZZEE MOBILE PROFILE + BOTTOM NAV FINAL
   11 augustus 2026
========================================================== */

.gz-mobile-bottom-nav,
.gz-mobile-profile-backdrop {
  display: none;
}

@media (max-width: 979px) {
  :root {
    --gz-mobile-bottom-nav-height: 64px;
  }

  body.gz-mobile-shell-ready.gayzzee-no-statusbar-layout .app-shell {
    padding-bottom:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom)
      ) !important;
  }

  body.gz-mobile-shell-ready:not(.gayzzee-no-statusbar-layout) {
    padding-bottom:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom)
      );
  }

  .gz-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147481800;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom)
      );
    padding: 0 5px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, .10);
    background:
      linear-gradient(
        180deg,
        rgba(13, 8, 21, .985),
        rgba(6, 4, 11, .995)
      );
    box-shadow:
      0 -12px 34px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
  }

  .gz-mobile-bottom-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 11px;
    color: rgba(255, 255, 255, .55);
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .gz-mobile-bottom-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: transparent;
    transform: translateX(-50%);
  }

  .gz-mobile-bottom-nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-family:
      "Segoe UI Emoji",
      "Apple Color Emoji",
      system-ui,
      sans-serif;
    font-size: 18px;
    line-height: 1;
    filter: saturate(.72);
  }

  .gz-mobile-bottom-nav-item strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gz-mobile-bottom-nav-item.is-active {
    color: #ffffff;
    background:
      linear-gradient(
        180deg,
        rgba(155, 73, 255, .13),
        rgba(255, 48, 182, .055)
      );
  }

  .gz-mobile-bottom-nav-item.is-active::before {
    background:
      linear-gradient(
        90deg,
        #8f52ff,
        #ff36b7
      );
    box-shadow:
      0 0 12px rgba(221, 62, 255, .72);
  }

  .gz-mobile-bottom-nav-item.is-active .gz-mobile-bottom-nav-icon {
    filter: saturate(1.1);
    transform: translateY(-1px);
  }

  .gz-mobile-profile-backdrop {
    position: fixed;
    inset:
      var(--header-height, 58px)
      0
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom)
      )
      0;
    z-index: 2147482400;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .70);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
  }

  body.mobile-profile-open .gz-mobile-profile-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.mobile-profile-open #profilePanel {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom)
      ) !important;
    left: 8px !important;
    z-index: 2147482600 !important;
    display: grid !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height:
      calc(
        100dvh -
        var(--gz-mobile-bottom-nav-height) -
        16px -
        env(safe-area-inset-bottom)
      ) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: rgba(10, 7, 17, .995) !important;
    box-shadow: 0 -26px 70px rgba(0, 0, 0, .62) !important;
    transform: translateY(0) !important;
  }

  body.mobile-profile-open #profilePanel .profile-panel-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    background: rgba(10, 7, 17, .985);
    backdrop-filter: blur(14px);
  }

  body.mobile-profile-open #profilePanel .profile-scroll {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-bottom:
      calc(18px + env(safe-area-inset-bottom)) !important;
  }

  body.mobile-profile-open #profilePanel .profile-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.mobile-profile-open #profilePanel .profile-actions button {
    min-height: 44px !important;
  }

  .gayzzee-final-toast-region,
  .toast-region {
    bottom:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        10px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  .gz-twink:not(.gz-twink-mobile-positioned) {
    bottom:
      calc(
        var(--gz-mobile-bottom-nav-height) +
        14px +
        env(safe-area-inset-bottom)
      ) !important;
  }
}

@media (max-width: 380px) {
  .gz-mobile-bottom-nav-item strong {
    font-size: 7px;
  }

  .gz-mobile-bottom-nav-icon {
    font-size: 17px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 979px) {
  :root {
    --gz-mobile-bottom-nav-height: 56px;
  }

  .gz-mobile-bottom-nav-item {
    min-height: 48px;
    gap: 1px;
  }

  .gz-mobile-bottom-nav-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  body.mobile-profile-open #profilePanel {
    max-height:
      calc(
        100dvh -
        var(--gz-mobile-bottom-nav-height) -
        8px
      ) !important;
  }
}

/* ==========================================================
   GAYZZEE MOBILE IN-PAGE GLOBAL CHAT DRAWER
   Media blijft actief achter de chat.
========================================================== */

.gz-mobile-chat-window-actions {
  display: none;
}

@media (max-width: 979px) {
  body.gz-mobile-chat-open .chat-panel {
    position: fixed !important;
    inset: auto 8px
      calc(
        var(--gz-mobile-bottom-nav-height) +
        env(safe-area-inset-bottom) +
        8px
      )
      8px !important;
    top: clamp(150px, 28dvh, 235px) !important;
    z-index: 2147482200 !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 10px 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(197, 82, 255, .42) !important;
    border-radius: 18px !important;
    background: rgba(9, 6, 15, .985) !important;
    box-shadow:
      0 -18px 55px rgba(0, 0, 0, .56),
      0 0 30px rgba(173, 65, 255, .16) !important;
    backdrop-filter: blur(18px);
  }

  body.gz-mobile-chat-open .chat-panel .chat-heading {
    position: relative;
    min-height: 52px !important;
    padding-right: 74px;
  }

  body.gz-mobile-chat-open .chat-panel .chat-title-icon {
    font-size: 20px !important;
  }

  body.gz-mobile-chat-open .chat-panel .chat-title h1 {
    font-size: 13px !important;
  }

body.gz-mobile-chat-open .chat-panel .chat-title > div {
  display: none !important;
}

  body.gz-mobile-chat-open .chat-panel .chat-title p {
    max-width: 180px;
    overflow: hidden;
    font-size: 8px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.gz-mobile-chat-open .chat-panel .gz-mobile-chat-window-actions {
    position: absolute;
    top: 8px;
    right: 0;
    z-index: 4;
    display: flex;
    gap: 6px;
  }

  .gz-mobile-chat-window-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .055);
    font: 900 18px/1 system-ui, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .gz-mobile-chat-window-button:active {
    transform: scale(.95);
  }

  .gz-mobile-chat-close {
    color: #ff91cf;
    border-color: rgba(255, 72, 178, .22);
    background: rgba(255, 46, 164, .08);
  }

  body.gz-mobile-chat-open .chat-panel .messages {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.gz-mobile-chat-open .chat-panel .chat-composer {
    position: relative !important;
    bottom: auto !important;
    min-height: 54px;
  }

  body.gz-mobile-chat-minimized .chat-panel {
    top: auto !important;
    height: 54px !important;
    min-height: 54px !important;
    grid-template-rows: 54px !important;
    padding-bottom: 0 !important;
  }

  body.gz-mobile-chat-minimized .chat-panel .moderator-notice,
  body.gz-mobile-chat-minimized .chat-panel .messages,
  body.gz-mobile-chat-minimized .chat-panel .chat-composer,
  body.gz-mobile-chat-minimized .chat-panel .chat-tools {
    display: none !important;
  }

  body.gz-mobile-chat-minimized .chat-panel .chat-heading {
    min-height: 54px !important;
  }

  body.gz-mobile-chat-minimized .chat-panel .gz-mobile-chat-window-button:first-child {
    transform: rotate(180deg);
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 979px) {
  body.gz-mobile-chat-open .chat-panel {
    top: 72px !important;
  }
}



/* ==========================================================
   GAYZZEE MOBILE MEDIA TOOLS + TOUCH PIP
   20260811-mobile-media-tools-v3
========================================================== */
.gz-mobile-tools-header {
  display: none;
}

@media (max-width: 979px) {
  .gayzzee-mobile-view-tabs .gz-mobile-tools-tab {
    border-color: rgba(213, 74, 255, .36);
    background:
      linear-gradient(
        135deg,
        rgba(122, 51, 212, .20),
        rgba(239, 58, 191, .11)
      );
    font-weight: 900;
  }

  body[data-mobile-tab="more"] .gz-mobile-tools-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding:
      calc(10px + env(safe-area-inset-top))
      12px
      10px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background:
      linear-gradient(
        180deg,
        rgba(15, 9, 24, .995),
        rgba(10, 6, 17, .97)
      );
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
  }

  .gz-mobile-tools-header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .gz-mobile-tools-header strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gz-mobile-tools-header small {
    overflow: hidden;
    color: rgba(255, 255, 255, .56);
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gz-mobile-tools-back {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 11px;
    border: 1px solid rgba(220, 91, 255, .32);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(122, 52, 193, .17);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
  }

  /* De bestaande LiveKit code ondersteunt pointer-drag al.
     Op touchscreens ontbrak alleen een echte drag-surface. */
  .cinema247-live-pip-top,
  .cinema-live-pip-top,
  .livestream-pip-top {
    cursor: grab !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
  }

  .cinema247-live-pip-top:active,
  .cinema-live-pip-top:active,
  .livestream-pip-top:active {
    cursor: grabbing !important;
  }

  #cinema247CamPip,
  #cinemaCamPip,
  .livestream-cam-pip {
    max-width: calc(100vw - 16px) !important;
    max-height:
      calc(
        100dvh -
        var(--gz-mobile-bottom-nav-height, 64px) -
        env(safe-area-inset-bottom) -
        16px
      ) !important;
  }

  /* On Demand was absoluut in de arena; voor viewport-drag
     moet de PiP op mobiel net als de andere twee fixed zijn. */
  #cinemaCamPip {
    position: fixed !important;
    right: 8px !important;
    bottom:
      calc(
        var(--gz-mobile-bottom-nav-height, 64px) +
        env(safe-area-inset-bottom) +
        12px
      ) !important;
  }

  #cinema247CamPip,
  .livestream-cam-pip {
    right: 8px;
    bottom:
      calc(
        var(--gz-mobile-bottom-nav-height, 64px) +
        env(safe-area-inset-bottom) +
        12px
      );
  }
}


/* ==========================================================
   GAYZZEE MOBILE CAMROOM SATELLITES + SAFE TOUCH PIP
   20260811-mobile-cam-pip-v4
========================================================== */
@media (max-width: 979px) {
  /* Latere desktop-orbitregels stonden na de mobiele layout.
     Deze laatste shared override maakt de kleine Camroom-cams
     opnieuw een echte horizontale mobiele strip. */
  #satelliteCams {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    left: 8px !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    height: 86px !important;
    min-height: 86px !important;
    padding: 5px 3px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    pointer-events: auto !important;
    animation: none !important;
    transform: none !important;
  }

  #satelliteCams:empty {
    display: none !important;
  }

  #satelliteCams::-webkit-scrollbar {
    display: none;
  }

  #satelliteCams .satellite-cam {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 0 74px !important;
    width: 74px !important;
    height: 74px !important;
    margin: 0 !important;
    animation: none !important;
    transform: none !important;
    translate: none !important;
    scroll-snap-align: center;
  }

  #satelliteCams .satellite-cam:hover,
  #satelliteCams .satellite-cam.is-focus,
  #satelliteCams .satellite-cam.is-speaking {
    transform: none !important;
    translate: none !important;
  }

  #satelliteCams .satellite-label {
    bottom: 3px !important;
    max-width: 64px;
    padding: 2px 5px !important;
    overflow: hidden;
    font-size: 7px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #satelliteCams .satellite-mic-state {
    top: 4px !important;
    right: 4px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
  }

  /* Op mobiel is de videokop de dragzone. De controls en
     volume-slider blijven gewone tik/slide-controls. */
  .cinema247-live-pip-video,
  .cinema247-live-pip-top,
  .cinema-live-pip-video,
  .cinema-live-pip-top,
  .livestream-pip-media,
  .livestream-pip-top {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }

  /* Een gesloten PiP mag absoluut niets meer onderscheppen. */
  #cinema247CamPip[hidden],
  #cinemaCamPip[hidden],
  .livestream-cam-pip[hidden] {
    display: none !important;
    pointer-events: none !important;
  }

  #cinema247CamPip:not([hidden]),
  #cinemaCamPip:not([hidden]),
  .livestream-cam-pip:not([hidden]) {
    pointer-events: auto !important;
  }
}


/* ==========================================================
   GAYZZEE MOBILE CAMROOM 4+4 + NATIVE SAFE PIP V6
   20260811-mobile-cams-pip-v6
========================================================== */
@media (max-width: 979px) {
  #camArena {
    overflow: hidden !important;
  }

  /* Max 8 actieve cams: 4 boven, 4 onder de grote focuscam. */
  #satelliteCams {
    position: absolute !important;
    inset: 8px !important;
    z-index: 30 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 72px minmax(0, 1fr) 72px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 6px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    animation: none !important;
    transform: none !important;
  }

  #satelliteCams:empty {
    display: none !important;
  }

  #satelliteCams .satellite-cam {
    position: relative !important;
    inset: auto !important;
    width: clamp(54px, 16vw, 72px) !important;
    height: clamp(54px, 16vw, 72px) !important;
    aspect-ratio: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
    transform: none !important;
    translate: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  #satelliteCams .satellite-cam:nth-child(n + 9) {
    display: none !important;
  }

  #satelliteCams .satellite-cam:nth-child(-n + 4) {
    grid-row: 1 !important;
  }

  #satelliteCams .satellite-cam:nth-child(n + 5):nth-child(-n + 8) {
    grid-row: 3 !important;
  }

  #satelliteCams .satellite-cam:nth-child(1),
  #satelliteCams .satellite-cam:nth-child(5) { grid-column: 1 !important; }
  #satelliteCams .satellite-cam:nth-child(2),
  #satelliteCams .satellite-cam:nth-child(6) { grid-column: 2 !important; }
  #satelliteCams .satellite-cam:nth-child(3),
  #satelliteCams .satellite-cam:nth-child(7) { grid-column: 3 !important; }
  #satelliteCams .satellite-cam:nth-child(4),
  #satelliteCams .satellite-cam:nth-child(8) { grid-column: 4 !important; }

  #satelliteCams .satellite-label {
    bottom: 2px !important;
    max-width: calc(100% - 8px) !important;
    padding: 2px 4px !important;
    font-size: 7px !important;
  }

  #satelliteCams .satellite-mic-state {
    top: 3px !important;
    right: 3px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 7px !important;
  }

  #focusCam {
    top: 50% !important;
    width: min(64vw, 300px) !important;
    max-height: min(43dvh, 300px) !important;
    z-index: 20 !important;
  }

  /* Alleen de bovenbalk sleept; video + knoppen blijven gewone touch-controls. */
  .cinema247-live-pip-video,
  .cinema-live-pip-video,
  .livestream-pip-media {
    touch-action: manipulation !important;
  }

  .cinema247-live-pip-top,
  .cinema-live-pip-top,
  .livestream-pip-top {
    touch-action: none !important;
    cursor: grab !important;
  }

  #cinema247CamPip,
  #cinemaCamPip,
  .livestream-cam-pip {
    position: fixed !important;
    z-index: 10050 !important;
    width: min(292px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - var(--gz-mobile-bottom-nav-height, 64px) - 24px) !important;
    overflow: hidden !important;
  }

  #cinema247CamPip[hidden],
  #cinemaCamPip[hidden],
  .livestream-cam-pip[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #cinema247CamPip:not([hidden]),
  #cinemaCamPip:not([hidden]),
  .livestream-cam-pip:not([hidden]) {
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .cinema247-live-pip-controls,
  .cinema-live-pip-controls,
  .livestream-pip-controls {
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  #cinema247CamPipVolume,
  #cinemaCamPipVolume,
  .livestream-pip-volume {
    min-width: 52px !important;
    width: 72px !important;
  }
}

@media (max-width: 479px) {
  #satelliteCams {
    grid-template-rows: 62px minmax(0, 1fr) 62px !important;
    gap: 4px !important;
  }

  #satelliteCams .satellite-cam {
    width: clamp(48px, 15vw, 62px) !important;
    height: clamp(48px, 15vw, 62px) !important;
  }

  #focusCam {
    width: min(62vw, 270px) !important;
    max-height: min(40dvh, 270px) !important;
  }

  #cinema247CamPip,
  #cinemaCamPip,
  .livestream-cam-pip {
    width: min(268px, calc(100vw - 16px)) !important;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 979px) {
  #satelliteCams {
    grid-template-rows: 50px minmax(0, 1fr) 50px !important;
  }

  #satelliteCams .satellite-cam {
    width: 48px !important;
    height: 48px !important;
  }

  #focusCam {
    top: 50% !important;
    width: min(42vw, 230px) !important;
    max-height: 54dvh !important;
  }
}


/* ==========================================================
   GAYZZEE MOBILE CAMROOM SATELLITE SLOTS V7
   4 boven + 4 onder, ook zichtbaar wanneer plaatsen vrij zijn
========================================================== */
@media (max-width: 979px) {
  #satelliteCams .satellite-cam[data-mobile-slot="1"],
  #satelliteCams .satellite-cam[data-mobile-slot="2"],
  #satelliteCams .satellite-cam[data-mobile-slot="3"],
  #satelliteCams .satellite-cam[data-mobile-slot="4"] {
    grid-row: 1 !important;
  }

  #satelliteCams .satellite-cam[data-mobile-slot="5"],
  #satelliteCams .satellite-cam[data-mobile-slot="6"],
  #satelliteCams .satellite-cam[data-mobile-slot="7"],
  #satelliteCams .satellite-cam[data-mobile-slot="8"] {
    grid-row: 3 !important;
  }

  #satelliteCams .satellite-cam[data-mobile-slot="1"],
  #satelliteCams .satellite-cam[data-mobile-slot="5"] {
    grid-column: 1 !important;
  }

  #satelliteCams .satellite-cam[data-mobile-slot="2"],
  #satelliteCams .satellite-cam[data-mobile-slot="6"] {
    grid-column: 2 !important;
  }

  #satelliteCams .satellite-cam[data-mobile-slot="3"],
  #satelliteCams .satellite-cam[data-mobile-slot="7"] {
    grid-column: 3 !important;
  }

  #satelliteCams .satellite-cam[data-mobile-slot="4"],
  #satelliteCams .satellite-cam[data-mobile-slot="8"] {
    grid-column: 4 !important;
  }

  #satelliteCams .mobile-satellite-placeholder {
    border: 1px dashed rgba(190, 119, 255, 0.42) !important;
    background: rgba(15, 8, 28, 0.74) !important;
    box-shadow: inset 0 0 18px rgba(148, 75, 214, 0.08) !important;
    opacity: 0.72;
    pointer-events: none !important;
  }

  #satelliteCams .mobile-satellite-placeholder .satellite-visual {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: radial-gradient(circle at 50% 42%, rgba(129, 60, 184, 0.18), rgba(8, 5, 16, 0.76)) !important;
  }

  #satelliteCams .mobile-satellite-placeholder-icon {
    color: rgba(222, 185, 255, 0.68);
    font-size: 17px;
    line-height: 1;
  }

  #satelliteCams .mobile-satellite-placeholder .satellite-label {
    color: rgba(238, 222, 255, 0.72) !important;
  }
}


/* ==========================================================
   GAYZZEE FINAL UI FIX V8
   profielmedia + welkom composer + mobiele Camroom satellites
========================================================== */

/* Echte profielthumbs mogen nooit het oude silhouet erover tonen. */
#profilePanel .photo-thumbnail::before,
#profilePanel .photo-thumbnail::after {
  display: none !important;
  content: none !important;
}

#profilePanel .photo-thumbnail {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

#profilePanel .profile-main-photo.has-image::before,
#profilePanel .profile-main-photo.has-image::after {
  display: none !important;
  content: none !important;
}

/* De chatcomposer moet altijd binnen de beschikbare chatkolom blijven. */
.chat-panel {
  min-height: 0 !important;
  overflow: hidden !important;
}

.chat-panel .messages,
.chat-panel .global-chat-message-list {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.chat-panel .chat-composer,
.chat-panel .gayzzee-global-chat-composer {
  position: relative !important;
  inset: auto !important;
  align-self: end !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.chat-panel .gayzzee-global-chat-input,
.chat-panel textarea,
.chat-panel input[type="text"] {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 979px) {
  /* V8 gebruikt één eigen, echte mobiele satellietlaag. */
  #satelliteCams {
    display: none !important;
  }

  #mobileSatelliteCams {
    position: absolute !important;
    inset: 10px 8px 78px !important;
    z-index: 32 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: 64px minmax(0, 1fr) 64px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    pointer-events: none !important;
  }

  #mobileSatelliteCams[hidden] {
    display: none !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam {
    position: relative !important;
    display: block !important;
    width: clamp(48px, 15vw, 64px) !important;
    height: clamp(48px, 15vw, 64px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 2px solid rgba(190, 104, 255, .56) !important;
    border-radius: 50% !important;
    background: #0a0611 !important;
    box-shadow: 0 0 18px rgba(148, 68, 255, .20) !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam.is-focus {
    border-color: #ff62d2 !important;
    box-shadow: 0 0 0 3px rgba(255, 98, 210, .10), 0 0 22px rgba(255, 98, 210, .32) !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="1"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="2"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="3"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="4"] {
    grid-row: 1 !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="5"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="6"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="7"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="8"] {
    grid-row: 3 !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="1"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="5"] { grid-column: 1 !important; }
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="2"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="6"] { grid-column: 2 !important; }
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="3"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="7"] { grid-column: 3 !important; }
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="4"],
  #mobileSatelliteCams .mobile-direct-satellite-cam[data-mobile-slot="8"] { grid-column: 4 !important; }

  #mobileSatelliteCams .mobile-direct-satellite-visual,
  #mobileSatelliteCams .mobile-direct-satellite-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-video {
    object-fit: cover !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-initial {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    background: radial-gradient(circle at 50% 35%, rgba(150, 74, 229, .38), rgba(10, 6, 17, .96)) !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-label {
    position: absolute !important;
    right: 4px !important;
    bottom: 3px !important;
    left: 4px !important;
    z-index: 3 !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: 7px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 4px #000 !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-mic {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    z-index: 3 !important;
    font-size: 8px !important;
    filter: drop-shadow(0 1px 3px #000) !important;
  }
}

@media (max-width: 420px) {
  #mobileSatelliteCams {
    grid-template-rows: 56px minmax(0, 1fr) 56px !important;
  }

  #mobileSatelliteCams .mobile-direct-satellite-cam {
    width: clamp(44px, 14vw, 56px) !important;
    height: clamp(44px, 14vw, 56px) !important;
  }
}
