/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}



html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}



/* Generic page container for FAQ, videos, top-up, etc. */
.page-container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 10px 40px;
}

/* Generic stacked cards layout */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #111;
  border-radius: 10px;
  border: 1px solid #222;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 4px 0;
  font-size: 14px;
  color: #ccc;
}

/* Optional: list styling inside cards */
.card .instructions-list {
  margin: 8px 0 4px;
  padding-left: 18px;
  font-size: 13px;
  color: #ccc;
}








h2 {
  text-align: center;
  color: #fff;
  margin-top: 20px;
  font-size: 2rem;
  font-weight: 800;
}








.stream-container {
  max-width: 1900px;       /* was 1400px */
  margin: 20px auto;
  text-align: left;
  color: white;
  font-family: sans-serif;
  padding: 0 10px;         /* tiny edge padding */
}






/* Video Styling */


#offline-image.half-size {
  max-width: 50vw;           /* only changes size when you add .half-size */
}


/* Stream Controls */
#stream-controls {
  margin-top: 20px;
  display: none;
}

/* Streaming Links Section */
.streaming-links {
  margin-top: 15px;
  text-align: center;
}

.streaming-title {
  font-size: 16px;
}

.streaming-icons {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}


















/* Top Bar */
.top-bar {
  width: 100%;
  background: #111;
  border-bottom: 1px solid #333;
}

.top-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between; /* left vs right */
  align-items: center;
}

/* Left & right groups */
.top-left,
.top-right {
  display: flex;
  align-items: center;
}

/* Add spacing between the buttons on the right */
.top-right a {
  margin: 0 8px;   /* bump to 12/16 if you want more space */
}



/* Button style */


.top-link:hover {
  background: #fff;
  color: #000;
}

/* Active tab */
.top-link.active,
.top-link.active:hover {
  background: #fff;
  color: #000;
  font-weight: bold;
}






.top-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  background: #000;
  cursor: pointer;
}



/* === Bottom Link Buttons === */
.bottom-links {
  text-align: center;
  margin: 25px 0;
  font-size: 16px;
}

.bottom-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #000;
  margin: 0 6px;
  display: inline-block;
  transition: 0.2s;
}

.bottom-links a:hover {
  background: #fff;
  color: #000;
}





/* Make sure the video and offline image center nicely inside */

/* Video + offline image: keep 16:9 and centered */
#stream,
#offline-image {
  width: 100%;
  display: block;
  border: 2px solid #fff;
  border-radius: 10px;

  aspect-ratio: 16 / 9;   /* keep a nice player shape */
  object-fit: contain;    /* no weird cropping */
  max-height: 80vh;       /* never exceed viewport */
}







/* No desktop grid override anymore – cards stay stacked on all sizes */


.footer {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 14px;
  opacity: 0.6;
}


.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}










/* === ZAP STATS BAR (clean reset) === */
.stats-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 15px;
}

/* Each box: same visible height */
.stats-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0 8px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
 height: 40px;        /* clamp height – matches widget-base */
  overflow: hidden;    /* clip anything taller inside */
}


/* Top zappers: fill the remaining space */
.stats-box--top {
  flex: 1 1 auto;
    overflow: hidden; /* keep nice rounded corners */
}

/* Zap button pill on the right */
.stats-box--zap {
  flex: 0 0 auto;
  justify-content: center;
}

/* Pulse and Zap share one compact action group. */
.stats-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  height: 40px;
}

.stats-actions .stats-box {
  height: 40px;
}

.stats-box--pulse {
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: center;
  overflow: visible;
}

.stats-box--zap {
  width: 120px;
}

.pulse-live-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 36px;
  padding: 2px 6px;
  border: 1px solid #46505d;
  border-radius: 999px;
  background: linear-gradient(180deg, #20262e, #12171d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .28);
  box-sizing: border-box;
  color: #eef4fb;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pulse-live-link:visited { color: #eef4fb; }
.pulse-live-link:hover {
  border-color: #7a8797;
  color: #fff;
  transform: translateY(-1px);
}

.pulse-live-link.is-active {
  border-color: #398de2;
  background: linear-gradient(180deg, #173c63, #102945);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 0 12px rgba(74, 163, 255, .2);
}

.pulse-live-heart-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 26px;
  font-size: 20px;
}

.pulse-live-zap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-48%, -50%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px #06447f;
}

.pulse-live-zap[hidden] { display: none; }

.pulse-live-count {
  min-width: 12px;
  padding: 0;
  color: #f4f7fa;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pulse-live-link.is-active .pulse-live-count {
  color: #fff;
}

/* Iframes inside the first two boxes */
.stats-box iframe {
  width: 100%;
  height: 40px;
  border: none;
  display: block;
  margin: 0;
}


.stats-row > .stats-box {
  min-width: 0; /* 🔑 REQUIRED for flex + iframe overflow */
}





/* Zap icon + text button */
.zap-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 100%;
  height: 100%;

  text-decoration: none;
  font-weight: 600;
  font-size: 20px;

  /* force same color for normal + visited */
  color: #ffd65a;
}

.zap-link:visited {
  color: #ffd65a;
}

.zap-link:hover {
  color: #fff;
}



/* Zap icon/link */
.zap-icon {
  font-size: 18px;
  text-decoration: none;
  color: #ffd65a;
  font-weight: 600;
}

/* Only apply hover on real hover devices (desktop mouse) */
@media (hover: hover) and (pointer: fine) {
  .zap-icon:hover {
    color: #fff;
  }
}


.zap-icon {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}



/* Make the zap button clickable across the full width/height of its box */
.stats-box--zap .zap-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  text-decoration: none;    /* keep it looking like a button */
}




/* Stack on mobile */
@media screen and (max-width: 700px) {
  .stats-row {
    flex-direction: column;
  }

  .stats-box {
    width: 100%;
  }

  .stats-actions {
    display: flex;
    width: 100%;
  }

  .stats-actions .stats-box--pulse {
    flex: 0 0 calc(30% - 5px);
    width: auto;
  }

  .stats-actions .stats-box--zap {
    flex: 1 1 calc(70% - 5px);
    width: auto;
  }
}








@media screen and (max-width: 720px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }
}



@media screen and (max-width: 720px) {
  .page-container,
  .stream-container {
    padding-left: 4px;
    padding-right: 4px;
  }
}





/* === Global link style (kills default purple/blue) === */
a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: #fff;
}

a:hover {
  opacity: 0.9;
}



/* Buttons / pills shouldn't look like normal links */
.top-link,
.bottom-links a,
.note-pill,
.note-img-click,
.note-img-source a,
.zap-link,
.zap-icon {
  text-decoration: none;
}

.top-link:hover,
.bottom-links a:hover,
.note-pill:hover {
  text-decoration: none;
}


/* === Live stream category pills === */
.live-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 0 7px;
}

.live-categories[hidden] {
  display: none;
}

.live-category-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid #555;
  border-radius: 999px;
  background: #1b1b1b;
  color: #ddd;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
