: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;

  /* was: overflow: hidden; */
  overflow-x: hidden;
  overflow-y: auto;

  /* IMPORTANT: don't set overscroll-behavior-y: contain/none,
     those can disable pull-to-refresh in many browsers */
  overscroll-behavior-y: auto;

  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: 2px 20px;
  background: var(--overlay);
  color: #fff;
  border-bottom: 0px;
}

.seo-intro{
  margin: 0 0 6px;
}

.seo-intro p{
  display: inline-block;      /* makes it a pill */
  padding: 8px 14px;
  border-radius: 999px;

  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;

  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);

  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  box-shadow: inset 0 -2px 0 rgba(240,185,11,.55);
}
.rail{
  /* center the whole intro content (titleRow + videoRow) */
  width: 100%;
  max-width: 1380px;      /* adjust if you want wider/narrower */
  margin: 0 auto;         /* centers horizontally */
  display: block;
}


/* Title row aligned to the same "rail" as the video gallery */
/* Title row aligned to the same "rail" as the video gallery */
.titleRow{
  display: grid;
  grid-template-columns: 1fr auto; /* text | button */
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 10px;
}


/* left column */
.titleRow > p{
  justify-self: start;
  display: inline-block;  /* shrink-wrap -> no stretching background */
  max-width: 100%;        /* but never exceed available grid space */
  min-width: 0;           /* important in grid */
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;       /* marquee viewport */
}


@media (max-width: 1200px){
  .titleRow > p{
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }

  .marqueeText{
    display: inline-block;
    padding-left: 100%;
    will-change: transform;
    animation: marquee 12s linear infinite;
  }
}


@keyframes marquee{
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .marqueeText{ animation: none; padding-left: 0; }
}



/* right column */

.btnPrimary{
  background: linear-gradient(180deg, #f0b90b 0%, #d89a00 100%);
  border: 1px solid rgba(240,185,11,.65);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  font-size: 19px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: black;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
margin-left: 15px;
}

.btnPrimary:hover{
  background: linear-gradient(
    180deg,
    rgba(240,185,11, 0.92) 0%,
    rgba(216,154,0, 0.92) 100%
  );
}



.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 1-line video gallery */
.videoRow {
  margin-top: 0px;
  margin-left: 0px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 0;
  margin-bottom: 0;
}

.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: calc(50% + 60px);
  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%);
}

.sidePanel.slow {
  transition-duration: 1.1s;
}

/* 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);
}





/* --- Referral CTA inside sidePanel --- */
.sidePanel .panelTitle{
  font-size: 12px;
  opacity: .75;
  padding: 2px 2px 0;
  letter-spacing: .2px;
}

.sidePanel .panelHint{
  font-size: 11px;
  opacity: .7;
  padding: 0 2px 6px;
}

.sidePanel .panelDivider{
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 8px 0;
}

.sidePanel a.sideCta{
  display: block;
  
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(240,185,11,.95), rgba(216,154,0,.95));
  color: #000;
  font-weight: 700;
}

.sidePanel a.sideCta:hover{
  filter: brightness(1.03);
}

.sidePanel a.sideCta.sideCtaBlue{
  background: linear-gradient(180deg, rgba(22, 57, 94, 0.95), rgba(25, 95, 210, .95));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.sidePanel a.sideCta.sideCtaBlue:hover{
  filter: brightness(1.06);
}