:root {
        --overlay: rgba(0, 0, 0, 0.6);
        --border: rgba(255, 255, 255, 0.12);
        --tile-border: rgba(255, 255, 255, 0.14);
      }

      html,
      body {
        height: 100%;
        margin: 0;
        overflow: hidden; /* page itself never scrolls */
        font-family: system-ui, Arial, sans-serif;
      }

      /* Background matching the tribe page (optional; keep/remove) */
      body {
        background-image:
          url("https://tribe.zoreonx.com/assets/zoreonx_web/assets/img/unleashing-bg.png"),
          linear-gradient(180deg, #061F46 0%, #020A22 100%);
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        background-attachment: fixed;
      }

      /* Top intro area */
      .intro {
        padding: 16px 20px;
        background: var(--overlay);
        color: #fff;
        border-bottom: 0px;
      }

      .introTop {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
      }

      .introText h1 {
        margin: 0 0 6px 0;
        font-size: 16px;
        font-weight: 600;
      }

      .introText p {
        margin: 0;
        font-size: 13px;
        opacity: 0.9;
        max-width: 900px;
      }

      .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .btn {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        padding: 8px 10px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 13px;
        white-space: nowrap;
      }

      .btn:hover {
        background: rgba(255, 255, 255, 0.12);
      }

      /* 1-line video gallery */
      .videoRow {
        margin-top: 14px;
		margin-left: 260px;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
      }

      .videoRow::-webkit-scrollbar {
        height: 6px;
      }

      .videoRow::-webkit-scrollbar-thumb {
        border-radius: 6px;
        background: radial-gradient(at top, #F0B90B, #FD2A00);
      }

      .videoRow::-webkit-scrollbar-track {
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.12);
      }

      .videoTile {
        flex: 0 0 auto;
        width: 220px;
        height: 124px; /* 16:9-ish */
        border-radius: 14px;
        border: 0px solid var(--tile-border);
        background: rgba(0, 0, 0, 0.35);
        position: relative;
        cursor: pointer;
        overflow: hidden;
		padding: 0;                 /* remove default button padding */
		appearance: none;           /* remove native button styling */
		-webkit-appearance: none;   /* same, Safari/Chromium */
      }

      .videoTile:focus-visible {
        outline: 2px solid rgba(240, 185, 11, 0.9);
        outline-offset: 2px;
      }

      /* Preview fills tile */
      .videoTile video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: brightness(0.9);
      }

      /* Play overlay */
      .videoTile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          circle at 50% 50%,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 0.35) 65%,
          rgba(0, 0, 0, 0.55) 100%
        );
        pointer-events: none;
      }

      .playBadge {
        position: absolute;
        left: 12px;
        bottom: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        z-index: 1;
      }

      .playIcon {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.18);
        display: grid;
        place-items: center;
        backdrop-filter: blur(6px);
      }

      .playIcon svg {
        width: 14px;
        height: 14px;
        fill: white;
        transform: translateX(1px);
      }

      .tileLabel {
        font-size: 12px;
        opacity: 0.95;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 150px;
      }

      /* Iframe takes remaining viewport */
      .frameWrap {
        height: calc(100vh - var(--introH, 0px));
      }

      iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: transparent;
      }

      /* Modal */
      .modalBackdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 18px;
        z-index: 99999;
      }

      .modalBackdrop.open {
        display: flex;
      }

      .modal {
        width: min(960px, 96vw);
        max-height: calc(100vh - 36px); /* backdrop padding*2 */
        display: flex;
        flex-direction: column;

        background: rgba(10, 10, 10, 0.95);
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      }

      .modalHeader {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 14px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .modalTitle {
        font-size: 13px;
        opacity: 0.9;
      }

      .closeBtn {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        border-radius: 10px;
        padding: 6px 10px;
        cursor: pointer;
        font-size: 13px;
      }

      .closeBtn:hover {
        background: rgba(255, 255, 255, 0.12);
      }

      .modalBody {
        background: #000;
        display: grid;
        place-items: center;
        padding: 14px;
        box-sizing: border-box;

        flex: 1;
        min-height: 240px;
        max-height: calc(100vh - 140px);
      }

     .modalBody iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 12px;
}

/* IMPORTANT: don't force height:100% on video */
.modalBody video {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 240px; /* <-- ADD THIS LINE */
  display: block;
  border: 0;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}



/* === Social Side Panel Styles === */
.sidePanel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 220px;
  background: rgba(0, 0, 0, 0.85);
  border-left: 1px solid var(--border);
  border-radius: 12px 0 0 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 99999;
  transition: transform 0.3s ease;
}

/* Closed state: slide panel out of view */
.sidePanel.closed {
  transform: translate(100%, -50%);
}

/* Toggle button (always visible) */
.togglePanelBtn {
  position: absolute;
  left: -40px;
  top: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 26px; /* Adjust this to desired emoji size */
  line-height: 1;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.panelContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidePanel a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
  white-space: nowrap;
}

.sidePanel a:hover {
  background: rgba(255, 255, 255, 0.15);
}

