/* NAV - Profile avatar next to Live tab */
.profile-link {
  display: flex;
  align-items: center;
  margin-right: 10px;
  text-decoration: none;
}

.profile-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  border: 2px solid #ffffff;   /* default = offline gray */
}

/* OFFLINE = gray border */
.profile-circle.offline {
  border-color: #ffffff;
}

/* ONLINE = your electric blue */
.profile-circle.online {
  border-color: #04aaff;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Viewer avatar: a bit smaller + blue border so it feels like "you" */
.viewer-profile {
  width: 32px;
  height: 32px;
  border: 2px solid #ffffff;
}

.icon-link {
  padding: 6px 10px;
  font-size: 16px;
}

.top-login-area,
.nav-login-area {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

/* Logged-out: tiny round icon button */
.nav-login-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Logged-in: same size, but as a div */
.nav-login-pill {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* The emoji inside */
.nav-login-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Dropdown for logout (same as before) */
.nav-login-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #111;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 0;
  min-width: 140px;
  z-index: 1000;
}

.nav-login-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.nav-login-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* HOME BUTTON: always locked to left on all screens */
#mainSiteLink {
  order: -1 !important;     /* ensures it is always first */
  margin-right: 8px;
  flex-shrink: 0;           /* never let it collapse */
}

/* --- Mobile nav: single-row, horizontally scrollable --- */
@media screen and (max-width: 720px) {
  .top-bar-inner {
    display: flex;
    flex-wrap: nowrap;          /* force single row */
    overflow-x: auto;           /* enable horizontal scroll */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    scrollbar-width: none;      /* hide scrollbar (Firefox) */



    @media screen and (max-width: 720px) {
  /* ... your existing mobile nav stuff ... */

  /* Make the Connect / Disconnect menu a fixed dropdown on mobile */
  .nav-login-menu {
    position: fixed;      /* detach from the tiny pill */
    top: 52px;            /* just under the nav bar */
    right: 8px;
    z-index: 9999;        /* always above video, etc */
  }
}



  }

  .top-bar-inner::-webkit-scrollbar {
    display: none;              /* hide scrollbar (Chrome/Safari) */
  }

  /* All items stay on a single row; no wrapping */
  .top-right,
  .profile-link,
  .top-link,
  #viewerProfile,
  .top-login-area {
    flex-shrink: 0;
  }

  /* Shrink links on tiny screens */
  .top-link {
    padding: 3px 6px;
    font-size: 0.82rem;
  }

  /* Slightly shrink avatars for mobile */
  .profile-circle {
    width: 30px;
    height: 30px;
  }

  .viewer-profile {
    width: 26px;
    height: 26px;
  }

  /* Push login pill to the far right of the row */
  .top-login-area {
    margin-left: auto;
  }
}
