/**
 * BYMS hub pages — Stream, Socials, Partners
 */
:root {
  --bg: #000000;
  --surf: #111111;
  --bo: #2a2a2a;
  --bo2: #1a1a1a;
  --tx: #e0e0e0;
  --dim: #9a9a9a;
  --mu: #6a6a6a;
  --gold: #e8e8e8;
  --amb: #a0a0a0;
  --rust: #888888;
  --byms-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --VT: var(--byms-font);
  --SM: var(--byms-font);
}

body.byms-hub-page {
  background: transparent !important;
  color: var(--tx) !important;
  font-family: var(--SM);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.byms-hub-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px calc(100px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .byms-hub-wrap {
    padding: 32px 20px 48px;
  }
}

.byms-hub-shell {
  background: #111111;
  border: 1px solid var(--bo);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.byms-hub-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--bo2);
  background: rgba(0, 0, 0, 0.26);
}
.byms-hub-title {
  font-family: var(--VT);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--gold);
  line-height: 1.25;
}
.byms-hub-sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(150, 150, 150, 0.65);
  text-transform: none;
  margin-top: 6px;
  line-height: 1.45;
}

/* live banner */
#live-banner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(100, 100, 100, 0.1);
  border: 1px solid var(--rust);
  padding: 4px 16px;
  font-family: var(--VT);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbbbbb;
  white-space: nowrap;
  max-width: min(calc(100vw - 24px), 520px);
}
body.is-live #live-banner {
  display: flex;
}
.ld-dot {
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
}

/* TV */
.tv-wrap {
  margin: 11px 11px 7px;
}
.tv {
  background: #000000;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.82);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}
.tv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.07) 0,
    rgba(0, 0, 0, 0.07) 1px,
    transparent 1px,
    transparent 3px
  );
}
.tv-line {
  display: none;
}
.tv-chan {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 6;
  font-family: var(--VT);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
}
.tv-live-dot {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 6;
  display: none;
  align-items: center;
  gap: 3px;
  font-family: var(--VT);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.tv-live-dot.on {
  display: flex;
}
.tv-dot {
  width: 5px;
  height: 5px;
  background: var(--rust);
  border-radius: 50%;
}
#tv-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
}
.tv-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}
#yt-live-frame {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
#yt-live-frame.is-on {
  display: block;
}
.tv-pname {
  font-family: var(--VT);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx);
}
.tv-psub {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(200, 200, 200, 0.35);
  text-transform: uppercase;
  text-align: center;
  max-width: 100%;
}
.tv-stand {
  height: 6px;
  background: linear-gradient(to right, transparent 28%, #1a1a1a 28%, #1a1a1a 72%, transparent 72%);
  margin: 0 11px;
}
.tv-foot {
  height: 3px;
  background: linear-gradient(to right, transparent 34%, #0a0a0a 34%, #0a0a0a 66%, transparent 66%);
  margin: 0 7px;
}
.tv-channels {
  display: flex;
  gap: 5px;
  margin: 6px 11px 11px;
  flex-wrap: wrap;
}
.tv-ch {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--bo2);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition: background 0.14s, border-color 0.14s;
}
.tv-ch:hover,
.tv-ch:active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold);
}
.tv-ch svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.tv-ch-nm {
  font-family: var(--VT);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-ch:hover .tv-ch-nm,
.tv-ch:active .tv-ch-nm {
  color: var(--gold);
}
.tv-ch-live {
  display: none;
  width: 4px;
  height: 4px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
}
.tv-ch-live.on {
  display: block;
}
.stream-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 11px 11px;
}
.tip-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bo);
  color: var(--gold);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.14s, border-color 0.14s, transform 0.14s;
  min-width: 0;
}
.tip-cta:hover,
.tip-cta:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.tip-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tip-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.tip-lbl {
  font-family: var(--VT);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
}
.tip-sub {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mu);
  text-transform: none;
  line-height: 1.6;
  text-align: center;
  padding: 0 6px 2px;
}

/* Socials */
.slinks {
  padding: 4px 11px 14px;
  display: flex;
  flex-direction: column;
}
.sg-label {
  font-family: var(--VT);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 150, 150, 0.55);
  padding: 8px 5px 3px;
  border-bottom: 1px solid var(--bo2);
}
.lrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 5px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.42);
  text-decoration: none;
  color: var(--dim);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.1s;
}
.lrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 50%, transparent);
  transform: translateX(-110%);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.lrow:hover::after,
.lrow:active::after {
  transform: translateX(0);
}
.lrow:hover,
.lrow:active {
  color: var(--tx);
}
.lrow:hover .picon,
.lrow:active .picon {
  opacity: 1;
  filter: brightness(1.18) saturate(1.12);
}
.lrow:hover .larr,
.lrow:active .larr {
  opacity: 1;
  transform: translateX(0);
}
.picon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(1.06) saturate(1.08);
  transition: opacity 0.1s, filter 0.1s;
}
.picon svg {
  width: 18px;
  height: 18px;
}
.lname {
  font-family: var(--VT);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  flex: 1;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.larr {
  font-family: var(--VT);
  font-size: 13px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.1s, transform 0.1s;
  flex-shrink: 0;
}
.sg-gap {
  height: 2px;
}

/* Partners */
.partner-body {
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.p-name {
  font-family: var(--VT);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}
.p-desc {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mu);
  text-transform: none;
  margin-top: 2px;
  line-height: 1.8;
}
.p-div {
  height: 1px;
  background: var(--bo2);
}
.p-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--bo);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.14s, background 0.14s;
}
.p-tile:hover,
.p-tile:active {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.055);
}
.p-tile:hover .p-arr,
.p-tile:active .p-arr {
  opacity: 1;
  transform: translateX(0);
}
.p-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--bo2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-ico.p-ico--etsy {
  background: #f16521;
  border: none;
}
.p-ico--etsy .p-ico__etsy {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}
.p-txt {
  flex: 1;
  min-width: 0;
}
.p-tname {
  font-family: var(--VT);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-tsub {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mu);
  text-transform: none;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-arr {
  font-family: var(--VT);
  font-size: 15px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.11s, transform 0.11s;
  flex-shrink: 0;
}
.col-hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stream-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--bo2);
  font-family: var(--VT);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.stream-status.online {
  color: #bbbbbb;
  border-color: rgba(100, 100, 100, 0.42);
  background: rgba(100, 100, 100, 0.08);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.16);
}
.stream-status.offline {
  color: rgba(240, 240, 240, 0.34);
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: none;
}
.ss-lbl {
  letter-spacing: 0.14em;
}
.ss-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}
