
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --panel: #15171c;
  --panel-2: #1c1f25;
  --text: #f6f7f9;
  --muted: #a4a8b1;
  --line: rgba(255,255,255,.09);
  --accent: #f5c518;
  --green: #16d65b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 110px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, a {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 18px;
  background: rgba(12,13,16,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  margin-right: auto;
  margin-left: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 42px;
  padding: 7px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  border-radius: 4px;
  background: white;
}

.header-live {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-live-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}


.live-avatar-ring {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(22,214,91,.5);
  animation: ringGlow 1.8s infinite;
}

.live-avatar-ring img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 2px solid var(--bg);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}


#liveNavImage[hidden],
#liveNavFallback[hidden] {
  display: none;
}

#liveNavFallback {
  color: #07130a;
  font-size: 9px;
  font-weight: 900;
}

@keyframes ringGlow {
  50% {
    box-shadow: 0 0 18px rgba(22,214,91,.9);
  }
}

/* INTRO */

.intro {
  padding: 35px 16px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -1px;
}

.intro-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* LIVE SECTION */

.content-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 18px 30px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
}

.section-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  vertical-align: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,214,91,.12);
}

.text-button {
  padding: 9px 0 9px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.text-button:hover {
  color: var(--accent);
}

.text-button:disabled {
  opacity: .5;
  cursor: wait;
}

.status-message {
  min-height: 18px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

/* VERTICAL LIVE PROFILE LIST */

.live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: background .2s, border-color .2s;
}

.live-profile:hover {
  background: var(--panel-2);
  border-color: rgba(255,255,255,.2);
}

.profile-image-wrap {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(22,214,91,.35);
}

.profile-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--panel);
  border-radius: 50%;
  object-fit: cover;
  background: #252830;
}

.profile-image-wrap .thumb-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: #252830;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.profile-live-dot {
  position: absolute;
  right: 1px;
  bottom: 5px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--green);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-status {
  margin: 7px 0 0;
  color: var(--green);
  font-size: 11px;
}

.profile-viewers {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-open {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 21px;
  padding-right: 5px;
}

/* PRIVATE CALL BAR */

.call-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(12,13,16,.98) 25%);
}

.private-call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 540px);
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 5px 22px rgba(0,0,0,.3);
}

.private-call-button:hover {
  background: #ffda45;
}

.call-icon {
  font-size: 19px;
}

/* FOOTER */

.site-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  color: #777b85;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.site-footer span {
  font-weight: 400;
  letter-spacing: 0;
}

/* SIDE MENU */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: min(310px, 85vw);
  height: 100dvh;
  padding: 22px 20px;
  overflow-y: auto;
  background: #111116;
  box-shadow: 10px 0 35px rgba(0,0,0,.3);
  transform: translateX(-105%);
  transition: transform .3s ease;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  font-size: 21px;
  font-weight: 800;
}

#menuClose {
  border: 0;
  background: transparent;
  color: white;
  font-size: 32px;
}

.side-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 4px;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
  font-size: 15px;
}

.side-menu-link:hover,
.country-link:hover {
  color: var(--accent);
}

.side-menu-divider {
  height: 1px;
  background: var(--line);
}

.join-arrow {
  transition: transform .2s;
}

.join-toggle[aria-expanded="true"] .join-arrow {
  transform: rotate(180deg);
}

.country-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 10px 12px;
}

.country-list[hidden] {
  display: none;
}

.country-link {
  display: block;
  padding: 11px 8px;
  color: #d8d8df;
  font-size: 14px;
}

/* PLAYER MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0,0,0,.96);
}

.modal.hidden {
  display: none !important;
}

.modal-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  max-height: 95dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080808;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 15px;
  border-bottom: 1px solid #292929;
}

.modal-topbar p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.close-button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 50%;
  background: #292929;
  color: white;
  font-size: 28px;
}

.player-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-details {
  padding: 12px 15px 18px;
}

.player-help {
  margin: 0;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.5;
}

.provider-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
}

.provider-link[hidden] {
  display: none !important;
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* MOBILE */

@media (max-width: 480px) {
  .site-header {
    height: 62px;
    padding: 0 14px;
  }

  .intro {
    padding-top: 28px;
  }

  .content-section {
    padding-right: 13px;
    padding-left: 13px;
  }

  .live-profile {
    min-height: 94px;
    gap: 12px;
    padding: 9px;
  }

  .profile-image-wrap {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 14px;
  }

  .private-call-button {
    min-height: 50px;
  }

  .modal {
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

/* NEAR FULL-SCREEN LIVE PLAYER */

#playerModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.96);
}

#playerModal.hidden {
  display: none;
}

#playerModal .player-content {
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #080808;
}

#playerFrame {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #000;
}

/* MOBILE: ALMOST THE ENTIRE SCREEN */

@media (max-width: 600px) {
  #playerModal {
    padding: 0;
  }

  #playerModal .player-content {
    width: 100%;
    height: 96vh;
    height: 96dvh;
    max-height: 100%;
    border-radius: 0;
  }

  #playerFrame {
    width: 100%;
    height: 100%;
    flex: 1;
  }
}

/* REMOVE BRANDING */
.brand,
.intro,
.site-footer {
  display: none !important;
}

/* LARGER LIVE PROFILES ON MOBILE */
@media (max-width: 600px) {
  .content-section {
    width: 100%;
    padding: 8px 10px 25px;
  }

  .section-heading {
    padding: 0 5px;
  }

  .live-list {
    gap: 14px;
  }

  .live-profile {
    min-height: 145px;
    padding: 12px;
    gap: 17px;
    border-radius: 15px;
  }

  .profile-image-wrap {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
  }

  .profile-name {
    font-size: 17px;
  }

  .profile-status {
    font-size: 13px;
  }

  .profile-viewers {
    font-size: 12px;
  }

  .profile-open {
    font-size: 25px;
  }
}

/* EXTRA LARGE PREVIEWS ON SMALL PHONES */
@media (max-width: 380px) {
  .profile-image-wrap {
    flex-basis: 105px;
    width: 105px;
    height: 105px;
  }

  .live-profile {
    min-height: 132px;
  }
}

/* FULL-SCREEN LIVE PLAYER */

#playerModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #000;
}

#playerModal.hidden {
  display: none !important;
}

#playerModal .modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
}

/* Player takes all available space */

#playerModal .player-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  background: #000;
  overflow: hidden;
}

#playerModal .player-frame-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Keep title and close button accessible */

#playerModal .modal-topbar {
  flex: 0 0 58px;
  min-height: 58px;
  padding: 8px 15px;
  background: #080808;
}

/* Keep provider information compact */

#playerModal .player-details {
  flex: 0 0 auto;
  padding: 8px 15px calc(10px + env(safe-area-inset-bottom));
  background: #080808;
}

#playerModal .player-help {
  font-size: 11px;
}

#playerModal .provider-link {
  margin-top: 6px;
}

/* Mobile adjustments */

@media (max-width: 600px) {
  #playerModal .modal-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }

  #playerModal .player-frame-wrap {
    flex: 1 1 0;
  }

  #playerModal .modal-topbar {
    flex-basis: 58px;
  }
}
/* PRIVATE VIDEO CALL BUTTON INSIDE LIVE PLAYER */

#modalPrivateCallButton {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #111;
  font-size: 15px;
  font-weight: 800;
}

#modalPrivateCallButton:hover {
  background: #ffda45;
}

/* Hide the player explanation */
#playerHelp[hidden] {
  display: none !important;
}
#openProvider {
  display: none !important;
}
/* DISABLE PINCH ZOOM AND DOUBLE-TAP ZOOM */

html,
body {
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

button,
a,
#playerFrame {
  touch-action: manipulation;
}

/* Prevent gestures on the main page */
* {
  -webkit-tap-highlight-color: transparent;
}