/* ─── Boomer Night — Design System ───────────────────────────────────────── */

:root {
  --bg: #08080c;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --text: #f4f0ea;
  --text-muted: #8a8698;
  --pink: #ff2d6a;
  --pink-glow: rgba(255, 45, 106, 0.45);
  --cyan: #00e8ff;
  --cyan-glow: rgba(0, 232, 255, 0.35);
  --yellow: #ffe600;
  --purple: #9146ff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 4px;
  --radius-lg: 12px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-fancy: 'Dancing Script', 'Segoe Script', cursive;
  --font-body: 'Syne', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }

img, video { max-width: 100%; display: block; }

/* ─── Atmosphere ─────────────────────────────────────────────────────────── */

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: cover;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow--pink {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: var(--pink-glow);
  top: -10%;
  right: -10%;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow--cyan {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--cyan-glow);
  bottom: 10%;
  left: -15%;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  to { transform: translate(40px, 30px) scale(1.1); }
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.5rem, 2vw, 1.25rem);
  min-height: var(--header-h);
  padding: 0.35rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  grid-column: 1;
  justify-self: start;
}

.site-header__social {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-header__social-toggle,
.header-mobile-login {
  display: none;
}

.site-header .site-header__tools .header-mobile-login {
  display: none;
}

.site-header .site-nav {
  grid-column: 3;
  justify-self: end;
}

@media (min-width: 721px) {
  body.bn-user-authenticated .site-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  body.bn-user-authenticated .site-header__social {
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
  }

  body.bn-user-authenticated .site-header .site-nav {
    grid-column: 3;
  }
}

.jessu-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.jessu-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.site-header__social .jessu-social-link__label {
  display: none;
}

.jessu-social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.jessu-social-link--twitch:hover {
  border-color: rgba(145, 70, 255, 0.55);
  background: rgba(145, 70, 255, 0.18);
  color: #bf9bff;
}

.jessu-social-link--instagram:hover {
  border-color: rgba(255, 45, 106, 0.5);
  background: rgba(255, 45, 106, 0.14);
  color: #ff7aa3;
}

.jessu-social-link--soundcloud:hover {
  border-color: rgba(255, 119, 0, 0.55);
  background: rgba(255, 119, 0, 0.14);
  color: #ffb366;
}

.jessu-social-link--facebook:hover {
  border-color: rgba(24, 119, 242, 0.55);
  background: rgba(24, 119, 242, 0.16);
  color: #7eb8ff;
}

.jessu-social-link--throne:hover {
  border-color: rgba(255, 230, 0, 0.5);
  background: rgba(255, 230, 0, 0.12);
  color: var(--yellow);
}

.jessu-social-link--discord:hover {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.18);
  color: #a7b0ff;
}

.social-modal[hidden] {
  display: none !important;
}

.social-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 2rem);
}

.social-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.social-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 18, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}

.social-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.social-modal__title {
  margin: 0 2.25rem 1rem 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-modal__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.social-modal__links .jessu-social-link {
  width: auto;
  height: auto;
  min-height: 3rem;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
}

.social-modal__links .jessu-social-link__label {
  display: inline;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 430px) {
  .social-modal__links {
    grid-template-columns: 1fr;
  }
}

/* ─── Development guest-access banner ───────────────────────────────────── */

body.bn-dev-access-active {
  --dev-access-banner-h: 3.25rem;
  padding-top: var(--dev-access-banner-h);
}

body.bn-dev-access-active .site-header {
  top: var(--dev-access-banner-h);
}

body.bn-dev-access-active.page-watch--theater .site-header--minimal {
  top: var(--dev-access-banner-h);
}

body.birthday-splash-active .dev-access-banner {
  display: none;
}

.dev-access-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12000;
  height: var(--dev-access-banner-h, 3.25rem);
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: 2px solid rgba(255, 230, 0, 0.72);
  background: rgba(255, 45, 106, 0.96);
  color: #08080c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dev-access-banner__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: dev-access-marquee 56s linear infinite;
}

.dev-access-banner__track span {
  padding-right: 3rem;
}

.dev-access-banner__timer-wrap {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transform: translateY(-50%);
  box-shadow: -12px 0 20px rgba(255, 45, 106, 0.96);
}

.dev-access-banner__timer-title {
  height: 2.74rem;
  min-width: 3.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid rgba(255, 230, 0, 0.42);
  border-radius: 0.5rem;
  background: rgba(8, 8, 12, 0.78);
  color: #ffe600;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dev-access-banner__flip-clock {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.22rem 0.3rem;
  border: 1px solid rgba(255, 230, 0, 0.42);
  border-radius: 0.5rem;
  background: rgba(8, 8, 12, 0.78);
  color: #fff;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  perspective: 260px;
}

.dev-access-banner__flip-card {
  position: relative;
  min-width: 2.55rem;
  height: 2.28rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.34rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 48%, rgba(0, 0, 0, 0.32) 50%, rgba(0, 0, 0, 0.24)),
    #14141c;
  color: #ffe600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  transform-origin: center center;
}

.dev-access-banner__flip-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.62);
}

.dev-access-banner__flip-value {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.dev-access-banner__flip-label {
  position: relative;
  z-index: 1;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.43rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dev-access-banner__flip-sep {
  color: #ffe600;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-0.18rem);
}

@media (max-width: 560px) {
  .dev-access-banner__timer-wrap {
    right: 0.35rem;
    gap: 0.18rem;
  }

  .dev-access-banner__timer-title {
    min-width: 4.7rem;
    padding: 0 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .dev-access-banner__flip-card {
    min-width: 2.08rem;
  }

  .dev-access-banner__flip-value {
    font-size: 0.96rem;
  }
}

@keyframes dev-access-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "lead tools"
      "session session"
      "social social";
    row-gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-header .logo {
    grid-area: lead;
    justify-self: start;
  }

  .site-header__lead {
    grid-area: lead;
    max-width: calc(100vw - 5.5rem);
  }

  .watch-header-title {
    max-width: min(52vw, 14rem);
    font-size: 0.95rem;
  }

  .site-header .site-nav {
    display: contents;
  }

  .site-header .site-header__tools {
    display: flex;
    grid-area: tools;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .site-header .site-header__session {
    display: flex;
    grid-area: session;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    width: 100%;
  }

  .site-header__session .auth-slot,
  .site-header__session .guest-pass-mount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    width: 100%;
  }

  .site-header__session .guest-pass-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .site-header__social {
    display: none;
  }

  .site-header__social-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  body.page-watch--theater .site-header__social {
    display: none;
  }

  body.page-watch--theater .site-header {
    grid-template-areas:
      "lead tools"
      "session session";
    grid-template-rows: auto auto;
  }

  .jessu-social-link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .jessu-social-link svg {
    width: 1.26rem;
    height: 1.26rem;
  }

  .site-header__tools .nav-broadcaster-mount:not([hidden]) {
    display: inline-flex;
    order: 60;
  }

  .site-header .nav-broadcaster-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-header__tools .header-mobile-login {
    order: 45;
  }

  .site-header__session .btn--twitch-login,
  .site-header__session .auth-session__logout,
  .site-header__session .auth-slot [data-action='logout'] {
    min-height: 2.75rem;
  }

  .site-header__tools .header-mobile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 50;
    min-height: 2.75rem;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.7rem !important;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header__session .auth-session__logout,
  .site-header__session .auth-slot > [data-action='logout'] {
    display: none;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .site-header__tools .header-mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
  }

  body.bn-user-login-required .site-header__session .auth-slot {
    display: none;
  }
}

.site-header--minimal {
  position: relative;
  background: transparent;
  border-bottom: none;
}

.site-header__lead {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.35rem);
  min-width: 0;
  max-width: 100%;
  justify-self: start;
}

.site-header--watch .site-header__lead .logo {
  flex-shrink: 0;
}

.watch-header-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: min(42vw, 28rem);
}

.site-nav--watch {
  margin-left: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  text-decoration: none;
}

.logo__boomer {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.logo__night {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.35em;
  color: var(--pink);
}

.logo--small .logo__boomer { font-size: 1.65rem; }
.logo--small .logo__night { font-size: 1.275rem; }

.logo--inline {
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
  white-space: nowrap;
}

.logo--inline .logo__boomer,
.logo--inline .logo__night {
  font-size: clamp(1.425rem, 3.3vw, 1.8rem);
  line-height: 1;
}

.logo--inline .logo__night {
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__tools,
.site-header__session {
  display: contents;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }
.nav-link--dim { opacity: 0.5; }

.nav-broadcaster-mount {
  display: contents;
}

.nav-broadcaster-mount[hidden] {
  display: none !important;
}

.nav-broadcaster-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-broadcaster-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 232, 255, 0.45);
  background: rgba(0, 232, 255, 0.12);
}

body.page-watch--theater .site-header--minimal .nav-broadcaster-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.nav-broadcaster-btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-vault-btn {
  display: none;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-vault-btn:not([hidden]) {
  display: inline-flex;
}

body.page-watch--theater .site-header--minimal .nav-vault-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.nav-vault-btn:hover,
.nav-vault-btn--active {
  color: var(--cyan);
  border-color: rgba(0, 232, 255, 0.5);
  background: rgba(0, 232, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 232, 255, 0.15);
}

.nav-link--support {
  color: var(--cyan);
  opacity: 0.85;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.nav-link--support:hover {
  color: var(--cyan);
  opacity: 1;
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.auth-session {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-session__logout {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
  white-space: nowrap;
}

.header-mobile-logout {
  display: none;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.auth-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  flex-shrink: 0;
}

.auth-user__name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.auth-user__tier {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  background: var(--pink);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-user__tier--locked {
  background: var(--text-muted);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn__icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 30px var(--pink-glow);
}

.btn--primary:hover {
  background: #ff4d80;
  color: #fff;
  box-shadow: 0 0 50px var(--pink-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--twitch {
  background: var(--purple);
  color: #fff;
}

.btn--twitch:hover {
  background: #7c3aed;
  color: #fff;
}

.btn--twitch-icon {
  padding: 0.5rem 0.55rem;
  min-width: 2.35rem;
}

.btn--twitch-login {
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.btn--twitch-login .btn__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn--twitch-icon .btn__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.site-header .site-header__tools .header-mobile-login {
  display: none;
}

@media (max-width: 720px) and (orientation: portrait) {
  .site-header .site-header__tools .header-mobile-login {
    display: inline-flex;
  }
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.85rem;
  width: 100%;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 80px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

@media (min-width: 1100px) {
  .hero { grid-template-columns: 0.85fr 1.15fr; }
}

/* Latest DROP is the main hero feature */
.hero--has-vod {
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  text-align: center;
  padding: max(116px, calc(((100vh - var(--header-h) - 26rem) / 4) * 0.77))
    clamp(1.25rem, 4vw, 3rem)
    clamp(1rem, 3vh, 2rem);
  min-height: auto;
  align-items: center;
  align-content: start;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .hero--has-vod {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
  }
}

@media (max-width: 899px) {
  .hero--has-vod {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: clamp(0.95rem, 3vh, 1.35rem);
    padding-top: clamp(1rem, 3.2vh, 1.5rem);
    padding-bottom: clamp(0.45rem, 1.4vh, 0.75rem);
  }

  .hero.hero--has-vod .hero__spotlight {
    order: 2;
    flex-shrink: 0;
    width: 100%;
    margin: 0 auto;
  }

  .hero.hero--has-vod .hero__content {
    order: 1;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero--has-vod .hero__eyebrow {
    justify-content: center;
  }

  .hero--has-vod .hero__title {
    text-align: center;
  }

  .hero--has-vod .hero__sub {
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 899px) and (orientation: landscape) {
  .hero--has-vod {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 4vw, 1.75rem);
    align-items: start;
    text-align: left;
    min-height: auto;
    padding: clamp(0.8rem, 3vh, 1.15rem) clamp(1rem, 4vw, 2rem);
  }

  .hero.hero--has-vod .hero__content {
    order: 1;
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .hero.hero--has-vod .hero__spotlight {
    order: 2;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero--has-vod .hero__eyebrow,
  .hero--has-vod .hero__cta {
    justify-content: flex-start;
  }

  .hero--has-vod .hero__title,
  .hero--has-vod .hero__sub {
    text-align: left;
  }

  .hero--has-vod .hero__sub {
    margin-inline: 0;
  }

  .hero--has-vod .hero__line {
    font-size: clamp(2rem, 11vh, 3.35rem);
  }

  .hero--has-vod .hero__brand {
    font-size: clamp(2.1rem, 10vh, 3.5rem);
  }

  .hero--has-vod .hero-spotlight__frame {
    max-height: min(52vh, 290px);
  }

  .hero.hero--has-vod .hero-vault-cta {
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero.hero--has-vod .hero-vault-cta__arrow-stack {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }

  .hero.hero--has-vod .hero-vault-cta__chev svg {
    width: 1.45rem;
    height: 0.9rem;
    transform: rotate(-90deg);
  }
}

.hero--has-vod .hero__spotlight {
  order: -1;
  grid-column: 1 / -1;
  max-width: 960px;
  width: 100%;
  margin: -50px auto 0;
}

@media (min-width: 900px) {
  .hero--has-vod .hero__spotlight {
    order: 2;
    grid-column: auto;
    max-width: none;
  }

  .hero--has-vod .hero__content {
    order: 1;
  }
}

.hero--has-vod .hero-spotlight__frame {
  max-height: min(40vh, 360px);
  box-shadow:
    0 0 0 1px rgba(255, 45, 106, 0.45),
    0 32px 100px rgba(0, 0, 0, 0.8),
    0 0 100px var(--pink-glow);
}

@media (min-width: 900px) {
  .hero--has-vod .hero-spotlight__frame {
    max-height: min(44vh, 400px);
  }
}

.hero--has-vod .hero-spotlight__title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.hero--has-vod .hero__eyebrow {
  margin-bottom: 0.65rem;
}

.hero--has-vod .hero__title {
  line-height: 0.92;
  margin-bottom: 0.5rem;
}

.hero--has-vod .hero__line {
  font-size: clamp(2.35rem, 7vw, 4.25rem);
}

.hero--has-vod .hero__sub {
  margin-bottom: 0;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.hero--has-vod .hero__cta {
  margin-top: 0.65rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.hero--has-vod .hero__cta {
  justify-content: center;
}

@media (min-width: 900px) {
  .hero--has-vod .hero__cta {
    justify-content: flex-start;
  }
}

.hero-vault-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  overflow: visible;
  padding-bottom: 0;
}

.hero-vault-cta__btn {
  position: relative;
  border-color: rgba(0, 232, 255, 0.55) !important;
  color: var(--cyan) !important;
  animation: vault-btn-glow 2.4s ease-in-out infinite;
}

.hero-vault-cta__btn:hover,
.hero-vault-cta__btn:focus-visible {
  color: #fff !important;
  border-color: var(--pink) !important;
}

.hero-vault-cta__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: color 0.2s;
}

.hero-vault-cta__arrow:hover,
.hero-vault-cta__arrow:focus-visible {
  color: var(--pink);
}

.hero-vault-cta__arrow:hover .hero-vault-cta__chev,
.hero-vault-cta__arrow:focus-visible .hero-vault-cta__chev {
  animation-play-state: paused;
}

.hero-vault-cta__arrow-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  padding: 0.15rem 0;
}

.hero-vault-cta__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
  opacity: 0.14;
  transform: scale(0.9);
  animation: vault-chev-chase 2.5s ease-in-out infinite;
  will-change: opacity, transform, filter;
}

.hero-vault-cta__chev svg {
  width: 2.85rem;
  height: 1.45rem;
  display: block;
}

.hero-vault-cta__chev:nth-child(1) {
  --chev-lit: #00e8ff;
  --chev-glow: rgba(0, 232, 255, 0.85);
  animation-delay: 0s;
}

.hero-vault-cta__chev:nth-child(2) {
  --chev-lit: #ff2d6a;
  --chev-glow: rgba(255, 45, 106, 0.85);
  animation-delay: 0.14s;
}

.hero-vault-cta__chev:nth-child(3) {
  --chev-lit: #00e8ff;
  --chev-glow: rgba(0, 232, 255, 0.85);
  animation-delay: 0.28s;
}

.hero-vault-cta__chev:nth-child(4) {
  --chev-lit: #ff2d6a;
  --chev-glow: rgba(255, 45, 106, 0.85);
  animation-delay: 0.42s;
}

.hero-vault-cta__chev:nth-child(5) {
  --chev-lit: #ffe600;
  --chev-glow: rgba(255, 230, 0, 0.8);
  animation-delay: 0.56s;
}

@keyframes vault-chev-chase {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.88);
    color: rgba(0, 232, 255, 0.35);
    filter: drop-shadow(0 0 2px rgba(0, 232, 255, 0.08));
  }
  7%, 16% {
    opacity: 1;
    transform: scale(1.14);
    color: var(--chev-lit);
    filter:
      drop-shadow(0 0 10px var(--chev-glow))
      drop-shadow(0 0 22px var(--chev-glow));
  }
  24%, 100% {
    opacity: 0.12;
    transform: scale(0.9);
    color: rgba(0, 232, 255, 0.35);
    filter: drop-shadow(0 0 2px rgba(0, 232, 255, 0.08));
  }
}

@keyframes vault-btn-glow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(0, 232, 255, 0.2),
      0 0 0 1px rgba(0, 232, 255, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 28px rgba(0, 232, 255, 0.45),
      0 0 0 1px rgba(255, 45, 106, 0.45);
    transform: scale(1.04);
  }
}

/* ─── Particle rain (hero PLAY NOW + Music vault) ─────────────────────────── */

.particle-rain-host {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.particle-rain-host--poster {
  display: block;
  width: 100%;
}

.particle-rain__canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 6;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 28%);
  mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.35) 12%, #000 28%);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 2px;
}

.badge--live {
  background: var(--pink);
  color: #fff;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 var(--pink-glow); }
  50% { box-shadow: 0 0 20px 4px var(--pink-glow); }
}

.hero__title {
  font-family: var(--font-display);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.hero__brand {
  display: none;
  font-family: var(--font-fancy);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.15rem;
  background: linear-gradient(118deg, #fff 8%, var(--cyan) 42%, var(--pink) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 232, 255, 0.22));
}

.hero__brand:not([hidden]) {
  display: block;
}

.hero--has-vod .hero__title {
  line-height: 0.92;
}

.hero__line {
  display: block;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero__line--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  text-stroke: 2px var(--pink);
  position: relative;
}

.hero__line--accent::after {
  content: 'VAULT';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
  opacity: 0.15;
  transform: translate(4px, 4px);
  -webkit-text-stroke: 0;
}

.hero__line--drop {
  color: var(--pink);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

html.bn-loading .hero__eyebrow-date,
html.bn-loading #hero-video-title.hero-spotlight__title--loading {
  opacity: 0.35;
}

html.bn-loading .auth-slot:empty {
  display: inline-block;
  width: 9.5rem;
  height: 2.25rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.video-grid--loading {
  min-height: 12rem;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

/* ─── Hero photo background (animated pan) ───────────────────────────────── */

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

.hero-bg__slides {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  min-width: 120vw;
  min-height: 120vh;
  min-height: 120dvh;
  transform-origin: center center;
  animation: hero-bg-sway 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-bg__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 35%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero-bg__slide.is-active {
  opacity: 1;
}

.hero-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 58% 38%, rgba(0, 232, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 35% 40% at 12% 55%, rgba(255, 45, 106, 0.18), transparent 70%);
  animation: hero-bg-neon 5s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.hero-bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      102deg,
      rgba(8, 8, 12, 0.94) 0%,
      rgba(8, 8, 12, 0.78) 38%,
      rgba(8, 8, 12, 0.35) 62%,
      rgba(8, 8, 12, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, transparent 28%, transparent 62%, rgba(8, 8, 12, 0.88) 100%);
}

@keyframes hero-bg-sway {
  0% {
    transform: translate3d(-2.8%, 0, 0) scale(1.08);
  }
  50% {
    transform: translate3d(0.5%, -1%, 0) scale(1.1);
  }
  100% {
    transform: translate3d(2.8%, 0.5%, 0) scale(1.08);
  }
}

@keyframes hero-bg-neon {
  0% { opacity: 0.65; filter: hue-rotate(0deg); }
  100% { opacity: 1; filter: hue-rotate(12deg); }
}

/* ─── Rave light show (SVG overlay) ──────────────────────────────────────── */

.lightshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lightshow__svg {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.lightshow__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 232, 255, 0.03) 45%,
    transparent 55%,
    rgba(255, 45, 106, 0.04) 100%
  );
  animation: ls-scan 6s linear infinite;
}

.lightshow__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(8, 8, 12, 0.75) 100%);
}

.ls-orb--1 { animation: ls-drift-1 14s ease-in-out infinite alternate; }
.ls-orb--2 { animation: ls-drift-2 18s ease-in-out infinite alternate; }
.ls-orb--3 { animation: ls-pulse 3s ease-in-out infinite; }

.ls-beams { transform-origin: 720px 0; animation: ls-sway 8s ease-in-out infinite alternate; }
.ls-beam--1 { animation: ls-beam-pulse 2.4s ease-in-out infinite; }
.ls-beam--2 { animation: ls-beam-pulse 3.1s ease-in-out infinite 0.3s; }
.ls-beam--3 { animation: ls-beam-pulse 2.8s ease-in-out infinite 0.6s; }
.ls-beam--4 { animation: ls-beam-pulse 3.5s ease-in-out infinite 0.2s; }
.ls-beam--5 { animation: ls-beam-pulse 2.6s ease-in-out infinite 0.8s; }

.ls-bar { transform-origin: center bottom; animation: ls-eq 0.8s ease-in-out infinite alternate; }
.ls-bar:nth-child(2n) { animation-duration: 0.65s; animation-delay: 0.1s; }
.ls-bar:nth-child(3n) { animation-duration: 0.95s; animation-delay: 0.2s; }

.ls-strobe { animation: ls-strobe 2s ease-in-out infinite; }
.ls-strobe--2 { animation-delay: 1s; }

@keyframes ls-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes ls-drift-1 {
  to { transform: translate(80px, -40px) scale(1.15); }
}

@keyframes ls-drift-2 {
  to { transform: translate(-60px, 50px) scale(1.1); }
}

@keyframes ls-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}

@keyframes ls-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

@keyframes ls-beam-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes ls-eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

@keyframes ls-strobe {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg__slides,
  .hero-bg__slide,
  .hero-bg__glow,
  .lightshow__scan,
  .ls-orb,
  .ls-beams,
  .ls-beam,
  .ls-bar,
  .ls-strobe,
  .hero-spotlight__ring,
  .hero-spotlight__play,
  .hero-spotlight__shine,
  .hero-vault-cta__btn,
  .hero-vault-cta__arrow,
  .hero-vault-cta__chev {
    animation: none !important;
  }
}

/* ─── Ambient audio toggle ───────────────────────────────────────────────── */

.audio-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.audio-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 45, 106, 0.4);
}

.audio-toggle--on {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.audio-toggle__icon {
  width: 18px;
  height: 18px;
}

/* ─── Hero spotlight (featured video) ────────────────────────────────────── */

.hero__spotlight {
  order: -1;
}

@media (min-width: 900px) {
  .hero__spotlight { order: 2; }
}

.hero-spotlight {
  display: block;
  text-decoration: none;
  color: inherit;
  max-width: 720px;
  margin: 0 auto;
}

.hero-spotlight__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 45, 106, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 232, 255, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 60px var(--pink-glow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  background-color: var(--bg-card);
  background-image: var(--hero-poster, none);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-spotlight:hover .hero-spotlight__frame,
.hero-spotlight:focus-visible .hero-spotlight__frame {
  transform: scale(1.02) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 232, 255, 0.35),
    0 32px 100px rgba(0, 0, 0, 0.75),
    0 0 80px var(--pink-glow),
    0 0 120px var(--cyan-glow);
}

.hero-spotlight__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-card);
  z-index: 0;
}

.hero-spotlight__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(8, 8, 12, 0.15) 0%, rgba(8, 8, 12, 0.55) 100%),
    linear-gradient(180deg, transparent 40%, rgba(8, 8, 12, 0.75) 100%);
  pointer-events: none;
  transition: background 0.3s;
}

.hero-spotlight:hover .hero-spotlight__scrim,
.hero-spotlight:focus-visible .hero-spotlight__scrim {
  background:
    radial-gradient(ellipse at center, rgba(8, 8, 12, 0.05) 0%, rgba(8, 8, 12, 0.45) 100%),
    linear-gradient(180deg, transparent 50%, rgba(8, 8, 12, 0.65) 100%);
}

.hero-spotlight__poster.skeleton {
  background: linear-gradient(110deg, var(--bg-card) 8%, #1e1e2a 18%, var(--bg-card) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.hero-spotlight__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  animation: hero-shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.hero-spotlight__rings {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-spotlight__ring {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 45, 106, 0.5);
  border-radius: 50%;
  animation: spin-slow 12s linear infinite;
}

.hero-spotlight__ring--2 {
  width: 38%;
  border-color: rgba(0, 232, 255, 0.35);
  animation-direction: reverse;
  animation-duration: 18s;
}

.hero-spotlight__play {
  position: relative;
  z-index: 4;
  z-index: 2;
  width: clamp(72px, 14vw, 110px);
  height: clamp(72px, 14vw, 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #ff5c8a);
  border-radius: 50%;
  box-shadow: 0 0 50px var(--pink-glow), 0 0 80px rgba(255, 45, 106, 0.25);
  animation: hero-play-pulse 2s ease-in-out infinite;
}

.hero-spotlight__play svg {
  width: 42%;
  height: 42%;
  margin-left: 6%;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-spotlight__label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow: 0 0 20px var(--pink-glow);
  pointer-events: none;
}

.hero-spotlight__title {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.hero-spotlight--featured .hero-spotlight__frame::after {
  content: 'LATEST DROP';
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 0.35rem 0.65rem;
  background: var(--pink);
  color: #fff;
  border-radius: 2px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes hero-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hero-spotlight--empty .hero-spotlight__play {
  opacity: 0.5;
  animation: none;
}

/* Legacy hero visual — removed from index, keep for reference */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__ring {
  position: absolute;
  inset: 10%;
  border: 2px solid var(--pink);
  border-radius: 50%;
  opacity: 0.4;
  animation: spin-slow 30s linear infinite;
}

.hero__ring--2 {
  inset: 20%;
  border-color: var(--cyan);
  animation-direction: reverse;
  animation-duration: 20s;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero__play {
  width: 80px;
  height: 80px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--pink-glow);
  animation: float 4s ease-in-out infinite;
}

.hero__play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Vault Grid ─────────────────────────────────────────────────────────── */

.vault {
  position: relative;
  z-index: 1;
  padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 899px) {
  .vault {
    padding-top: clamp(0.65rem, 2vh, 1rem);
  }
}

.vault__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.vault__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
}

.vault__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

/* ─── Video Card ─────────────────────────────────────────────────────────── */

.video-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  animation: card-in 0.6s var(--ease-out) both;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 106, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--pink-glow);
}

.video-card--current {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.35), 0 12px 40px rgba(0, 232, 255, 0.12);
}

.video-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}

.video-card:hover .video-card__thumb {
  transform: scale(1.06);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.video-card__duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  box-shadow: 0 0 30px var(--pink-glow);
}

.video-card__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  color: #fff;
}

.video-card:hover .video-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card__lock {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.video-card__lock svg {
  width: 12px;
  height: 12px;
}

.video-card__featured {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  background: var(--pink);
  color: #fff;
  border-radius: 2px;
}

.video-card__body {
  padding: 1.25rem;
}

.video-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.video-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.video-card__tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
}

.video-card__tag--boomer-night {
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.16);
  color: #ff8eb3;
  box-shadow: 0 0 12px rgba(255, 45, 106, 0.12);
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */

.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 2rem);
}

.modal::backdrop {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(8px);
}

.modal__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  animation: modal-in 0.4s var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.modal__lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--yellow);
}

.modal__lock-icon svg { width: 100%; height: 100%; }

.modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.modal__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── Watch Page ─────────────────────────────────────────────────────────── */

.page-watch {
  --watch-dock-h: 0px;
  background: #050508;
}

.watch-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 4rem;
}

.watch-stage--theater {
  position: relative;
  z-index: 200;
  max-width: none;
  margin: 0;
  padding: 0;
  height: calc(100vh - var(--dev-access-banner-h, 0px));
  height: calc(100dvh - var(--dev-access-banner-h, 0px));
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.page-watch--theater {
  overflow: hidden;
}

body.page-watch--theater .watch-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-watch--theater .site-header--minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 210;
  background: linear-gradient(rgba(0, 0, 0, 0.65), transparent);
}

body.page-watch--theater .watch-header-title {
  max-width: min(36vw, 24rem);
}

.watch-stage--theater .watch-player-wrap {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  justify-content: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
}

.watch-playback-bar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  grid-template-areas: "prev center next";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.65rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 12, 0.96);
}

.watch-playback-bar__nav {
  display: contents;
}

.watch-nav-btn--prev {
  grid-area: prev;
  justify-self: start;
}

.watch-nav-btn--next {
  grid-area: next;
  justify-self: end;
}

.watch-playback-bar__center {
  grid-area: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.watch-stage--theater .watch-playback-bar {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  z-index: 220;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.watch-stage--theater .watch-playback-bar[hidden] {
  display: none !important;
}

.watch-stage:not(.watch-stage--theater) .watch-playback-bar {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

body.page-watch--controls-docked:not(.page-watch--theater) .watch-main {
  padding-bottom: calc(var(--watch-dock-h, 0px) + 2rem + env(safe-area-inset-bottom, 0px));
}

body.page-watch--controls-docked:not(.page-watch--theater) .watch-player-wrap {
  margin-bottom: calc(var(--watch-dock-h, 0px) + 1rem + env(safe-area-inset-bottom, 0px));
}

body.page-watch--controls-docked:not(.page-watch--theater) .player {
  width: min(
    100%,
    calc((100dvh - var(--header-h) - var(--dev-access-banner-h, 0px) - var(--watch-dock-h, 0px) - 1.25rem) * 16 / 9)
  );
  margin-inline: auto;
}

body:not(.page-watch--theater) .watch-playback-bar--docked:not([hidden]) {
  position: fixed !important;
  left: clamp(0.75rem, 3vw, 2rem);
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: 0;
  z-index: 1200;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-color: rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.46);
}

.watch-stage--theater .watch-meta {
  display: none;
}

.watch-stage--theater .player {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.watch-stage--theater .player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.watch-stage--theater .player__chrome {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.watch-stage--theater .watch-loading {
  position: absolute;
  inset: 0;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 2rem;
}

.watch-stage--theater .watch-loading[hidden] {
  display: none !important;
}

.watch-loading,
.watch-denied {
  text-align: center;
  padding: 6rem 1rem;
}

.watch-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.watch-denied__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  color: var(--yellow);
}

.watch-denied h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.watch-denied p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.watch-denied__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.watch-denied__btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.watch-denied__btn-row .watch-denied__btn {
  flex: 1 1 9.5rem;
  min-height: 2.5rem;
  padding: 0.6rem 0.875rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.watch-denied__btn-row .btn--twitch-login {
  padding: 0.6rem 0.875rem;
  font-size: 0.8rem;
}

.watch-denied__btn-row .btn--twitch-login .btn__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.player {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the video fully opaque under the party overlay so the decoder stays
   live. Opacity 0 caused frame catch-up / scrub-like flashes on exit. */
.player--blackout .player__video {
  pointer-events: none;
}

.player__audio {
  display: none;
}

/* Blackout — Neonwave sunrise (mrange / Shadertoy 7dyyRy) */
.player__blackout {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #050508;
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.player__blackout-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.player--blackout .player__blackout {
  opacity: 1;
}

/* Party mode covers the entire page — controls, header, footer and all. */
body.bn-party-active .player__blackout {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

body.bn-party-active .player__blackout-label {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.player--crossfade .player__video,
.player--crossfade .player__blackout {
  transition-duration: 450ms;
}

.player--crossfade-out .player__video,
.player--crossfade-out .player__blackout {
  opacity: 0 !important;
}

.player__blackout-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 50%, transparent 25%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.player__blackout-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.player__skip-intro {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 45, 106, 0.62);
  border-radius: 4px;
  background: rgba(255, 45, 106, 0.16);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(255, 45, 106, 0.22),
    inset 0 0 10px rgba(255, 45, 106, 0.08);
  animation: skip-intro-glow 1.65s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.player__skip-intro:hover {
  background: rgba(255, 45, 106, 0.92);
  border-color: var(--pink);
  color: #fff;
  box-shadow:
    0 0 22px rgba(255, 45, 106, 0.55),
    0 0 44px rgba(255, 45, 106, 0.24),
    inset 0 0 14px rgba(255, 255, 255, 0.1);
}

@keyframes skip-intro-glow {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(255, 45, 106, 0.18),
      inset 0 0 10px rgba(255, 45, 106, 0.06);
  }
  50% {
    border-color: rgba(255, 45, 106, 0.95);
    background: rgba(255, 45, 106, 0.24);
    box-shadow:
      0 0 20px rgba(255, 45, 106, 0.48),
      0 0 36px rgba(255, 45, 106, 0.2),
      inset 0 0 12px rgba(255, 255, 255, 0.08);
  }
}

.player__chrome {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: auto;
}

.player--playing .player__chrome,
.player--fs-active .player__chrome,
.player--blackout .player__chrome {
  opacity: 1;
}

/* Autohide: fade the header and player controls after inactivity while playing. */
.site-header--watch {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.bn-chrome-hidden .site-header--watch {
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
}

/* Keep controls interactive while faded so the first tap both reveals and
   actuates the control that was tapped (no double-tap). */
body.bn-chrome-hidden .player__chrome {
  opacity: 0 !important;
}

body.bn-chrome-hidden .watch-stage--theater,
body.bn-chrome-hidden .watch-stage--theater .player {
  cursor: none;
}

.player:fullscreen,
.player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
}

.player:fullscreen .player__video,
.player:-webkit-full-screen .player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.player:fullscreen .player__chrome,
.player:-webkit-full-screen .player__chrome {
  opacity: 1;
  padding: 1rem 1.25rem 1.5rem;
}

.player__progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin-bottom: 0.85rem;
  cursor: pointer;
  position: relative;
}

.player__progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 6px;
  width: 0%;
  position: relative;
  z-index: 2;
  transition: width 0.1s linear;
}

.player__progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  width: 0%;
}

.player--buffering .player__progress-buffer {
  width: 35%;
  animation: player-buffer-pulse 1.4s ease-in-out infinite;
}

.player--buffering .player__btn#btn-play {
  opacity: 0.55;
}

@keyframes player-buffer-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.92); }
  50% { opacity: 0.7; transform: scaleX(1); }
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player__seek {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.player__seek-btn {
  min-width: 2.78rem;
  padding: 0.33rem 0.53rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.player__seek-btn:hover {
  background: rgba(255, 45, 106, 0.85);
  border-color: var(--pink);
  color: #fff;
}

@media (max-width: 720px) {
  .player__seek-btn[data-seek='-60'],
  .player__seek-btn[data-seek='60'],
  .player__seek-btn[data-seek='-30'],
  .player__seek-btn[data-seek='30'] {
    display: none;
  }

  .player__controls {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "play seek time volume fs"
      "skip skip skip skip skip";
    align-items: center;
    column-gap: 0.45rem;
    row-gap: 0.45rem;
  }

  .player__controls #btn-play {
    grid-area: play;
  }

  .player__controls .player__seek {
    grid-area: seek;
  }

  .player__controls .player__time {
    grid-area: time;
    justify-self: center;
    font-size: 0.7rem;
  }

  .player__controls .player__volume {
    grid-area: volume;
    justify-self: end;
  }

  .player__controls #btn-fullscreen {
    grid-area: fs;
    justify-self: end;
  }

  .player__controls #btn-skip-intro {
    grid-area: skip;
    justify-self: center;
    width: 100%;
    max-width: 16rem;
    min-height: 2.5rem;
  }

  .player__controls #btn-skip-intro[hidden] {
    display: none;
  }

  .player__controls .player__spacer {
    display: none;
  }

  .player__btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
  }

  .player__seek-btn {
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0.35rem 0.45rem;
  }

  .player__volume-slider {
    width: 3.25rem;
  }
}

.player__btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.player__btn svg { width: 24px; height: 24px; }
.player__btn .icon-pause { display: none; }
.player--playing .player__btn .icon-play { display: none; }
.player--playing .player__btn .icon-pause { display: block; }
.player__btn:hover { color: var(--pink); }

.player__share-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--pink);
  white-space: nowrap;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.player__spacer { flex: 1; }

.player__volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.player__volume-btn {
  flex-shrink: 0;
}

.player__volume-icon--muted {
  display: none;
}

.player__volume-btn--muted .player__volume-icon--high {
  display: none;
}

.player__volume-btn--muted .player__volume-icon--muted {
  display: block;
}

.player__volume-slider {
  width: 5.5rem;
  height: 4px;
  margin: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

@media (max-width: 640px) {
  .player__volume-slider {
    width: 3.75rem;
  }
}

.watch-meta {
  padding: 2rem 0;
}

.watch-meta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.watch-meta__desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
}

.watch-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ─── Watch vault slide-up panel ─────────────────────────────────────────── */

body.watch-vault-open {
  overflow: hidden;
}

.watch-vault {
  position: relative;
  z-index: 180;
  pointer-events: none;
  background: #000;
}

.watch-vault:not([hidden]) {
  pointer-events: auto;
}

/* When open, float above everything as a bottom sheet so it works regardless of
   page scroll (theater mode locks body scroll) and the list scrolls on its own. */
.watch-vault--open,
.watch-vault--minimized {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

.watch-vault__backdrop {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.watch-vault--open .watch-vault__backdrop,
.watch-vault--minimized .watch-vault__backdrop {
  display: block;
}

.watch-vault--open .watch-vault__backdrop {
  opacity: 1;
}

.watch-vault--minimized .watch-vault__backdrop {
  opacity: 0;
  pointer-events: none;
}

.watch-vault__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  min-height: min(74vh, 760px);
  background: #0c0c12;
  border-top: 1px solid rgba(0, 232, 255, 0.2);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(2rem);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
  outline: none;
}

.watch-vault--open .watch-vault__sheet {
  opacity: 1;
  transform: translateY(0);
}

.watch-vault--minimized .watch-vault__sheet {
  min-height: 0;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
}

.watch-vault__chrome {
  flex-shrink: 0;
  padding: 0.5rem 1rem 0;
}

.watch-vault__handle {
  width: 2.5rem;
  height: 4px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.watch-vault__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-vault__peek {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.watch-vault__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.watch-vault__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.watch-vault__icon-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.watch-vault__icon-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.watch-vault__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.watch-vault--minimized .watch-vault__body {
  visibility: hidden;
  pointer-events: none;
}

.watch-vault__grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Phones (portrait): two-up VOD list instead of a single column. */
@media (max-width: 640px) {
  .video-grid,
  .watch-vault__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.watch-vault__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Setup Page ─────────────────────────────────────────────────────────── */

.page-setup { background: var(--bg); }

.page-video-manager .setup-main {
  padding-top: 4rem;
}

.setup-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  padding: 2rem;
}

.setup-card {
  max-width: min(1560px, calc(100vw - 4rem));
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.setup-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  grid-template-areas:
    "intro sidebar"
    "vault sidebar"
    "disconnect disconnect";
  gap: 0.85rem;
  align-items: start;
  margin-top: 1.5rem;
}

.setup-dashboard__sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.setup-dashboard__section {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.18);
  text-align: left;
}

.setup-dashboard__section--intro {
  grid-area: intro;
}

.setup-dashboard__section--vault {
  grid-area: vault;
}

.setup-dashboard__disconnect {
  grid-area: disconnect;
  margin: 0 !important;
  font-size: 0.85rem !important;
}

.setup-broadcaster-disconnect-btn,
.setup-broadcaster-connect-btn {
  width: min(100%, 24rem);
  min-height: 3.1rem;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

.setup-broadcaster-disconnect-btn {
  border-color: rgba(255, 45, 106, 0.45) !important;
  color: #ff8fb0;
  background: rgba(255, 45, 106, 0.08);
}

.setup-broadcaster-disconnect-btn:hover {
  border-color: rgba(255, 45, 106, 0.72) !important;
  color: #fff;
  background: rgba(255, 45, 106, 0.16);
}

.setup-sidebar__hint {
  margin-bottom: 0.75rem !important;
  line-height: 1.4 !important;
}

.setup-player__hint.setup-sidebar__hint {
  font-size: 0.95rem !important;
}

.setup-dashboard__sidebar .setup-guest__title,
.setup-dashboard__sidebar .setup-player__title,
.setup-dashboard__sidebar .setup-activity__title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.setup-card__upload-btn {
  display: inline-flex;
}

@media (max-width: 980px) {
  .setup-main {
    padding: 1rem;
  }

  .setup-card {
    max-width: 760px;
    padding: 1.25rem;
  }

  .setup-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "vault"
      "sidebar"
      "disconnect";
  }

  .setup-dashboard__sidebar {
    grid-area: sidebar;
  }
}

.setup-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.setup-card__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.setup-card__title--video-manager {
  padding-top: 20px;
}

.setup-card__text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.setup-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.setup-status--pending {
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.3);
  color: var(--yellow);
}

.setup-status--ok {
  background: rgba(0, 232, 255, 0.08);
  border: 1px solid rgba(0, 232, 255, 0.3);
  color: var(--cyan);
}

.setup-status--off {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.setup-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-badge 2s infinite;
}

.setup-status--ok .setup-status__dot { animation: none; }

.setup-welcome-notice {
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 45, 106, 0.14) 0%, rgba(0, 232, 255, 0.1) 100%);
  border: 2px solid rgba(255, 45, 106, 0.45);
  box-shadow: 0 0 40px rgba(255, 45, 106, 0.12);
}

.setup-welcome-notice__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

.setup-welcome-notice__text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
}

.setup-welcome-notice__text:last-of-type {
  margin-bottom: 1.25rem;
}

.setup-welcome-notice__link {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.setup-welcome-notice__link:hover {
  color: var(--pink);
}

.setup-welcome-notice__dismiss {
  width: 100%;
  max-width: 14rem;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.setup-step {
  display: flex;
  gap: 1rem;
}

.setup-step__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--pink);
  opacity: 0.5;
  flex-shrink: 0;
}

.setup-step h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.setup-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.setup-step code {
  font-size: 0.75rem;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  color: var(--cyan);
}

.setup-vault {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.setup-dashboard .setup-vault,
.setup-dashboard .setup-guest,
.setup-dashboard .setup-player,
.setup-dashboard .setup-activity {
  margin: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: none;
}

.setup-vault__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.setup-vault__hint {
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  line-height: 1rem;
}

.setup-vault__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.setup-vault__error {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: rgba(255, 45, 106, 0.12);
  color: var(--pink);
  font-size: 0.85rem;
}

.setup-video-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setup-video-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.setup-video-item--latest {
  border-color: rgba(255, 230, 0, 0.38);
  background: rgba(255, 230, 0, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 0, 0.08);
}

.setup-video-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.setup-video-item__headline {
  min-width: 0;
}

.setup-video-item__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.setup-video-item__title-text {
  min-width: 0;
  word-break: break-word;
}

.setup-video-item__file-ref {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.setup-video-item__file-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.setup-video-item__file-name,
.setup-video-item__file-id code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.78rem;
  color: #c8d4ff;
  word-break: break-all;
}

.setup-video-item__file-id {
  color: var(--text-muted);
}

.setup-video-item__rename-file {
  margin: 0 0 0.5rem;
}

.setup-video-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255, 230, 0, 0.4);
  border-radius: 999px;
  background: rgba(255, 230, 0, 0.1);
  white-space: nowrap;
}

.setup-video-item__badge--theme {
  color: #ff8eb3;
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.14);
}

.setup-video-item__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.setup-video-item__flag input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pink);
  cursor: pointer;
}

.setup-video-item__flag-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8eb3;
}

.setup-video-item__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.setup-video-item__stat {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.setup-video-item__stat dt {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.setup-video-item__stat dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.5rem;
}

.setup-video-item__panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.setup-video-item__panel-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.setup-video-item__panel-hint {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.setup-poster-editor {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.setup-poster-editor__preview {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.setup-poster-editor__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.setup-poster-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.setup-poster-editor__upload {
  cursor: pointer;
}

.setup-poster-scenic {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.setup-poster-scenic__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.setup-poster-scenic__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.45rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.setup-poster-scenic__pick {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  font: inherit;
  line-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setup-poster-scenic__pick img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.setup-poster-scenic__pick:hover,
.setup-poster-scenic__pick.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.35);
}

.setup-video-item__intro-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.setup-video-item__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 4.5rem;
}

.setup-video-item__field-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.setup-video-item__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.setup-video-item__rename-btn,
.setup-video-item__delete,
.setup-video-item__latest-btn,
.setup-video-item__intro-save {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.68rem !important;
}

.setup-video-item__rename-btn {
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.setup-video-item__rename-btn:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.setup-video-item__rename {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.setup-video-item__rename-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.setup-video-item__rename-input:focus {
  outline: 2px solid rgba(255, 230, 0, 0.45);
  outline-offset: 1px;
}

.setup-video-item__rename-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.setup-video-item__rename-save,
.setup-video-item__rename-cancel {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.7rem !important;
}

.setup-video-item__intro-input {
  width: 100%;
  min-width: 3.5rem;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.setup-video-item__intro-input--seconds {
  max-width: 4.25rem;
}

.setup-video-item__latest-btn {
  color: var(--yellow) !important;
  border-color: rgba(255, 230, 0, 0.4) !important;
  background: rgba(255, 230, 0, 0.08) !important;
}

.setup-video-item__latest-btn:hover {
  background: rgba(255, 230, 0, 0.16) !important;
}

.setup-video-item__delete {
  color: var(--pink) !important;
  border-color: rgba(255, 45, 106, 0.35) !important;
}

.setup-video-item__delete:hover {
  background: rgba(255, 45, 106, 0.12) !important;
}

/* ─── Collapsible vault items + optimization badges ───────────────────────── */

details.setup-video-item {
  padding: 0;
  overflow: hidden;
}

.setup-video-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.setup-video-item__summary::-webkit-details-marker {
  display: none;
}

.setup-video-item__summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.setup-video-item__summary-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.setup-video-item__chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

details.setup-video-item[open] .setup-video-item__chevron {
  transform: rotate(45deg);
}

.setup-video-item__summary-title {
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}

.setup-video-item__summary-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.setup-video-item__summary-dur {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.setup-video-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.9rem;
}

.setup-video-item__title--body {
  font-size: 0.95rem;
}

.setup-opt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.setup-opt-badge--optimized {
  color: #7dffa8;
  border-color: rgba(70, 220, 130, 0.5);
  background: rgba(70, 220, 130, 0.14);
}

.setup-opt-badge--standard {
  color: var(--yellow);
  border-color: rgba(255, 230, 0, 0.45);
  background: rgba(255, 230, 0, 0.12);
}

.setup-opt-badge--sloppy {
  color: #ff8eb3;
  border-color: rgba(255, 45, 106, 0.5);
  background: rgba(255, 45, 106, 0.14);
}

.setup-video-item__reprocess-hint {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--yellow);
  border: 1px solid rgba(255, 230, 0, 0.28);
  border-radius: 6px;
  background: rgba(255, 230, 0, 0.06);
  text-align: center;
}

.setup-video-item__download {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.68rem !important;
  text-decoration: none;
  color: #9fd0ff !important;
  border-color: rgba(120, 180, 255, 0.35) !important;
}

.setup-video-item__download:hover {
  background: rgba(120, 180, 255, 0.12) !important;
}

.setup-video-item__download--attention {
  color: var(--yellow) !important;
  border-color: rgba(255, 230, 0, 0.5) !important;
}

.setup-video-item__download--attention:hover {
  background: rgba(255, 230, 0, 0.12) !important;
}

.setup-video-item--flash {
  animation: setup-item-flash 1.6s ease;
}

@keyframes setup-item-flash {
  0%, 100% { box-shadow: none; }
  25% { box-shadow: 0 0 0 2px rgba(255, 230, 0, 0.55); }
}

/* ─── Minimalist VOD calendar ─────────────────────────────────────────────── */

.setup-cal {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.setup-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.setup-cal__month {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.setup-cal__nav {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.setup-cal__nav:hover {
  border-color: rgba(255, 45, 106, 0.5);
  background: rgba(255, 45, 106, 0.12);
}

.setup-cal__legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.setup-cal__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.setup-cal__weekdays,
.setup-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.setup-cal__weekday {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 0.3rem;
}

.setup-cal__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.setup-cal__cell--empty {
  background: transparent;
}

.setup-cal__cell--vod {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
}

.setup-cal__cell--vod:hover {
  transform: translateY(-1px);
}

.setup-cal__cell--optimized {
  border-color: rgba(70, 220, 130, 0.5);
  background: rgba(70, 220, 130, 0.12);
}

.setup-cal__cell--optimized:hover {
  background: rgba(70, 220, 130, 0.2);
}

.setup-cal__cell--pending {
  border-color: rgba(255, 230, 0, 0.5);
  background: rgba(255, 230, 0, 0.1);
}

.setup-cal__cell--pending:hover {
  background: rgba(255, 230, 0, 0.18);
}

.setup-cal__day {
  font-size: clamp(1.5rem, 3.8vw, 2.4rem);
  line-height: 1;
}

.setup-cal__dot {
  position: absolute;
  bottom: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.setup-cal__cell--optimized .setup-cal__dot,
.setup-cal__dot--optimized {
  background: #46dc82;
}

.setup-cal__cell--pending .setup-cal__dot,
.setup-cal__dot--pending {
  background: var(--yellow);
}

.setup-cal__dot--optimized,
.setup-cal__dot--pending {
  position: static;
  transform: none;
  display: inline-block;
}

.setup-cal__count {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  min-width: 0.9rem;
  height: 0.9rem;
  padding: 0 0.18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 999px;
  color: #08080c;
  background: rgba(255, 255, 255, 0.85);
}

/* ─── HandBrake preset tip ────────────────────────────────────────────────── */

.setup-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 8px;
  background: rgba(157, 78, 221, 0.1);
}

.setup-tip__icon {
  flex: 0 0 auto;
  color: #c77dff;
}

.setup-tip a {
  color: #c8a8ff;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .setup-video-item__summary-title {
    max-width: 14ch;
  }

  .setup-video-item__actions {
    justify-content: flex-start;
  }

  .setup-video-item__stats {
    grid-template-columns: 1fr 1fr;
  }
}

.setup-activity {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-activity__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.setup-activity__hint {
  margin-bottom: 0.75rem !important;
  font-size: 0.78rem !important;
}

.setup-activity__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.setup-activity__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.setup-activity__visitors-btn {
  padding: 0.45rem 0.7rem !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.08em;
}

.setup-activity__stats-inline {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.setup-activity__stats-inline strong {
  color: var(--text);
  font-weight: 700;
}

.setup-activity__about {
  margin-bottom: 0.65rem;
}

.setup-activity__about summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  user-select: none;
}

.setup-activity__about[open] summary {
  margin-bottom: 0.35rem;
}

.activity-visitors-modal[hidden] {
  display: none !important;
}

.activity-visitors-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.activity-visitors-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.activity-visitors-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 70rem);
  max-height: min(82vh, 52rem);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 18, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}

.activity-visitors-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.activity-visitors-modal__title {
  margin: 0 2.5rem 0.25rem 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-visitors-modal__hint {
  margin: 0 2.5rem 0.9rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.activity-visitors-modal__body {
  min-height: 0;
  overflow: auto;
}

.activity-geo-map {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 232, 255, 0.11), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(255, 45, 106, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.activity-geo-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.8rem;
}

.activity-geo-map__title,
.activity-geo-map__subtitle {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-geo-map__title {
  font-size: 1.1rem;
}

.activity-geo-map__subtitle {
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.activity-geo-map__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.activity-heatmap {
  position: relative;
  min-height: clamp(15rem, 34vw, 24rem);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 232, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 24% 36%, rgba(0, 232, 255, 0.14), transparent 22%),
    radial-gradient(circle at 72% 50%, rgba(255, 45, 106, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(0, 232, 255, 0.07), rgba(255, 45, 106, 0.05)),
    rgba(2, 8, 18, 0.82);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}

.activity-heatmap::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 12.5% 20%;
  mask-image: radial-gradient(circle at 50% 50%, #000 28%, transparent 72%);
}

.activity-heatmap__world {
  position: absolute;
  inset: 5% 3%;
  width: 94%;
  height: 88%;
  z-index: 1;
  overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(0, 232, 255, 0.18))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4));
}

.activity-heatmap__world path {
  fill: rgba(86, 118, 150, 0.62);
  stroke: rgba(220, 244, 255, 0.42);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.activity-heatmap--empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.activity-heatmap__marker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 16%, rgba(255, 230, 0, calc(0.34 + var(--heat) * 0.5)) 17% 36%, rgba(255, 45, 106, calc(0.22 + var(--heat) * 0.58)) 62%, rgba(255, 45, 106, 0.04) 100%);
  box-shadow:
    0 0 calc(1.2rem + var(--heat) * 2.8rem) rgba(255, 45, 106, calc(0.22 + var(--heat) * 0.42)),
    0 0 calc(0.8rem + var(--heat) * 1.9rem) rgba(0, 232, 255, calc(0.16 + var(--heat) * 0.28));
}

.activity-heatmap__marker--region {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 14%, rgba(0, 232, 255, calc(0.38 + var(--heat) * 0.5)) 15% 44%, rgba(255, 45, 106, calc(0.2 + var(--heat) * 0.48)) 68%, rgba(0, 232, 255, 0.08) 100%);
}

.activity-heatmap__marker span {
  color: #08080c;
  font-size: clamp(0.48rem, calc(var(--size) * 0.22), 0.7rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.activity-heatmap__legend {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  font-size: 0.68rem;
}

.activity-heatmap__legend span {
  display: inline-block;
  width: 3rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 232, 255, 0.35), rgba(255, 230, 0, 0.72), rgba(255, 45, 106, 0.95));
}

.activity-heatmap__unmapped {
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.activity-geo-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.activity-geo-map__panel {
  min-width: 0;
}

.activity-geo-map__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.8fr) minmax(5rem, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0;
  font-size: 0.75rem;
}

.activity-geo-map__label {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-geo-map__bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.activity-geo-map__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.activity-geo-map__meta,
.activity-geo-map__empty {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.activity-geo-map__empty {
  margin: 0;
  white-space: normal;
}

.activity-visitors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.activity-visitors-table th,
.activity-visitors-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.activity-visitors-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 12, 18, 0.98);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-visitors-table code {
  color: var(--cyan);
  white-space: nowrap;
}

.activity-visitors-modal__empty {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .activity-geo-map__grid {
    grid-template-columns: 1fr;
  }

  .activity-geo-map__row {
    grid-template-columns: minmax(5rem, 0.8fr) minmax(5rem, 1fr);
  }

  .activity-geo-map__meta {
    grid-column: 1 / -1;
  }
}

.setup-player {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-dev-access {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-player__title,
.setup-dev-access__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.setup-player__hint,
.setup-dev-access__hint {
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
}

.setup-player__blackout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.setup-player__blackout-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.setup-player__blackout-select {
  min-width: min(100%, 16rem);
  flex: 1 1 12rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.setup-player__blackout-save,
.setup-player__blackout-preview {
  padding: 0.45rem 0.75rem !important;
}

.setup-player__blackout-preview-wrap {
  flex: 1 1 100%;
  margin-top: 0.35rem;
}

.setup-player__blackout-canvas {
  display: block;
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.setup-player__blackout-save {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.setup-player__blackout-status {
  font-size: 0.75rem;
  color: var(--cyan);
}

.setup-player__blackout-status--error {
  color: var(--pink);
}

.setup-dev-access__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.setup-dev-access__label,
.setup-dev-access__suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.setup-dev-access__input {
  width: 5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.setup-dev-access__enable,
.setup-dev-access__disable {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.setup-dev-access__status {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--cyan);
}

.setup-dev-access__status--error {
  color: var(--pink);
}

.setup-tools {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-tools__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.setup-tools__status {
  margin: 0.75rem 0;
  font-size: 0.75rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.setup-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.setup-tools__download,
.setup-tools__download-zip {
  display: inline-flex;
}

.setup-tools__warning {
  margin: 1rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 209, 102, 0.92);
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
}

/* Live recorder health (admin sidebar) */
.setup-recorder {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-recorder__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.setup-recorder__hint {
  margin-bottom: 0.75rem;
}

.setup-recorder__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.setup-recorder__badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.setup-recorder__badge--pending {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.setup-recorder__badge--recording {
  color: #ff4d6d;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
}

.setup-recorder__badge--recording .setup-recorder__badge-dot {
  animation: setup-recorder-pulse 1.2s ease-in-out infinite;
}

.setup-recorder__badge--alert {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.35);
}

.setup-recorder__badge--idle {
  color: #7ee787;
  background: rgba(126, 231, 135, 0.1);
  border: 1px solid rgba(126, 231, 135, 0.28);
}

.setup-recorder__badge--offline {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes setup-recorder-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.setup-recorder__status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--cyan);
}

.setup-recorder__sub {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.setup-recorder-hosts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.setup-recorder-hosts__item {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.4;
}

.setup-recorder-hosts__item--rec {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.08);
}

.setup-recorder-hosts__item--stale {
  opacity: 0.72;
}

.setup-recorder-hosts__item strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.setup-recorder-hosts__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.setup-recorder-hosts__err {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #ff8fa3;
}

.guest-pass-mount {
  display: inline-flex;
  align-items: center;
}

body.bn-dev-access-active .guest-pass-mount,
body.bn-dev-access-active .watch-denied__guest {
  display: none !important;
}

.guest-pass-btn {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.guest-pass-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  min-width: min(18rem, 90vw);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 12, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.site-nav--watch .guest-pass-mount,
.site-nav .guest-pass-mount {
  position: relative;
}

.guest-pass-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.guest-pass-form__row {
  display: flex;
  gap: 0.5rem;
}

.guest-pass-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.guest-pass-form__submit {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.guest-pass-form__status {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--cyan);
}

.guest-pass-form__status--error {
  color: var(--pink);
}

.guest-pass-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 232, 255, 0.35);
  background: rgba(0, 232, 255, 0.08);
}

.guest-pass-gauge-wrap {
  display: inline-flex;
  min-width: min(22rem, 82vw);
  max-width: min(26rem, 92vw);
}

.guest-pass-gauge {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(93, 255, 176, 0.45);
  background:
    linear-gradient(180deg, rgba(93, 255, 176, 0.14) 0%, rgba(8, 8, 12, 0.55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 16px rgba(93, 255, 176, 0.12);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.guest-pass-gauge__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.guest-pass-gauge__meter {
  flex: 1 1 auto;
  min-width: 6.5rem;
}

.guest-pass-gauge__label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(93, 255, 176, 0.9);
}

.guest-pass-gauge__time {
  flex: 0 0 auto;
  min-width: 8.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(93, 255, 176, 0.28);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: right;
  color: #b8ffd8;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(93, 255, 176, 0.32);
}

.guest-pass-gauge__track {
  position: relative;
  height: 0.45rem;
  border-radius: 3px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.28) 0,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent calc(25% - 1px)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(93, 255, 176, 0.35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.guest-pass-gauge__fill {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #1fa86a 0%, #5dffb0 55%, #a8ffcf 100%);
  box-shadow:
    0 0 10px rgba(93, 255, 176, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 1s linear, background 0.6s ease;
}

.guest-pass-gauge--low .guest-pass-gauge__fill {
  background: linear-gradient(90deg, #c47a12 0%, #ffe600 70%, #fff3a0 100%);
  box-shadow:
    0 0 10px rgba(255, 230, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.guest-pass-gauge--low .guest-pass-gauge__label,
.guest-pass-gauge--low .guest-pass-gauge__time {
  color: #ffe600;
}

.guest-pass-gauge--critical .guest-pass-gauge__fill {
  background: linear-gradient(90deg, #a82828 0%, #ff5c5c 65%, #ffb0b0 100%);
  box-shadow:
    0 0 12px rgba(255, 92, 92, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: guest-gauge-pulse 1.2s ease-in-out infinite;
}

.guest-pass-gauge--critical .guest-pass-gauge__label,
.guest-pass-gauge--critical .guest-pass-gauge__time {
  color: #ff8a8a;
}

@media (max-width: 560px) {
  .guest-pass-gauge-wrap {
    min-width: min(18rem, 86vw);
  }

  .guest-pass-gauge__body {
    gap: 0.65rem;
  }

  .guest-pass-gauge__time {
    min-width: 6.4rem;
    padding-left: 0.55rem;
    font-size: 1.15rem;
  }
}

@keyframes guest-gauge-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.auth-session--guest {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.guest-pass-badge--active {
  color: #5dffb0;
  border-color: rgba(93, 255, 176, 0.5);
  background: rgba(93, 255, 176, 0.12);
  cursor: default;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(93, 255, 176, 0.15);
}

.guest-pass-denied {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.guest-pass-form--denied .guest-pass-form__row {
  justify-content: center;
  gap: 0.75rem;
}

.guest-pass-form--denied .guest-pass-form__input {
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.guest-pass-form--denied .guest-pass-form__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.guest-pass-form--denied .guest-pass-form__submit {
  padding: 0.65rem 1rem !important;
  font-size: 0.8rem !important;
}

.guest-pass-form--denied .guest-pass-form__status {
  text-align: center;
}

.watch-denied__guest {
  width: 100%;
  max-width: 36rem;
}

.setup-guest {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-guest__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.setup-guest__hint {
  margin-bottom: 1rem !important;
  font-size: 1.2rem !important;
}

.setup-guest__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.setup-guest__generate {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.setup-guest__status {
  font-size: 0.75rem;
  color: var(--cyan);
}

.setup-guest__status--error {
  color: var(--pink);
}

.setup-guest-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.35rem 0.25rem 0;
  display: grid;
  gap: 0.65rem;
  max-height: clamp(10rem, 26vh, 16rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(0, 232, 255, 0.45) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.setup-guest-list::-webkit-scrollbar {
  width: 0.55rem;
}

.setup-guest-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.setup-guest-list::-webkit-scrollbar-thumb {
  background: rgba(0, 232, 255, 0.42);
  border-radius: 999px;
}

.setup-guest-list__item {
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.8rem;
}

.setup-guest-list__meta {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: capitalize;
}

.setup-guest-list__url,
.setup-guest-list__code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.setup-activity__retention {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.75rem;
}

.setup-activity__retention-label,
.setup-activity__retention-suffix {
  font-size: 1rem;
  color: var(--text-muted);
}

.setup-activity__retention-input {
  width: 4.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.setup-activity__retention-save {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.7rem !important;
}

.setup-activity__retention-status {
  font-size: 0.75rem;
  color: var(--cyan);
}

.setup-activity__retention-status--error {
  color: var(--pink);
}

.setup-activity__summary {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.setup-activity__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.setup-activity__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.setup-activity__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.setup-activity__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.setup-activity__panel {
  margin-top: 0.75rem;
}

.setup-activity__panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

.setup-activity-chart {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.setup-activity-chart__row {
  display: grid;
  grid-template-columns: minmax(0, 5.5rem) 1fr auto;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.setup-activity-chart__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.setup-activity-chart__bar-wrap {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.setup-activity-chart__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.55), rgba(0, 212, 170, 0.95));
}

.setup-activity-chart__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  min-width: 1.5rem;
  text-align: right;
}

.setup-activity-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 10.5rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.setup-activity-log__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setup-activity-log__row:last-child {
  border-bottom: none;
}

.setup-activity-log__row--empty {
  color: var(--text-muted);
  display: block;
}

.setup-activity-log__time {
  flex: 0 0 7.25rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.setup-activity-log__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setup-activity-list--recent {
  max-height: 18rem;
  overflow-y: auto;
}

.setup-activity-item {
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.setup-activity-item--empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.setup-activity-item__title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.setup-activity-item__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.setup-card__back {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Upload page ────────────────────────────────────────────────────────── */

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.upload-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.upload-label input[type="file"],
.upload-input {
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.upload-poster-preview {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.upload-progress {
  margin-top: 1.5rem;
}

.upload-progress__bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.2s var(--ease-out);
}

.upload-progress__text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__fine {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.5;
}

.site-footer__logout {
  margin: 1rem 0 0.75rem;
}

.site-footer__logout-btn {
  padding: 0.65rem 1.25rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.site-footer__support-wrap {
  margin: 0.75rem 0 0;
}

.site-footer__support {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__support:hover {
  color: var(--pink);
}

.site-footer--watch {
  padding: 1.25rem 2rem 2rem;
}

body.page-watch--theater .site-footer--watch {
  display: none;
}

.watch-footer-btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.watch-footer-btn:hover {
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.14);
  color: #fff;
}

.watch-footer-btn--vault {
  border-color: rgba(157, 78, 221, 0.62);
  background: rgba(157, 78, 221, 0.38);
  color: #fff;
  box-shadow:
    0 0 8px rgba(157, 78, 221, 0.14),
    inset 0 0 10px rgba(255, 255, 255, 0.04);
  animation: music-vault-glow 2.4s ease-in-out infinite;
}

.watch-footer-btn--vault:hover,
.watch-footer-btn--vault.nav-vault-btn--active {
  border-color: rgba(199, 125, 255, 0.78);
  background: rgba(157, 78, 221, 0.52);
  color: #fff;
  box-shadow:
    0 0 12px rgba(157, 78, 221, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.06);
}

@keyframes music-vault-glow {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(157, 78, 221, 0.1),
      inset 0 0 10px rgba(255, 255, 255, 0.04);
  }
  50% {
    border-color: rgba(199, 125, 255, 0.74);
    background: rgba(157, 78, 221, 0.46);
    box-shadow:
      0 0 12px rgba(157, 78, 221, 0.22),
      inset 0 0 12px rgba(255, 255, 255, 0.05);
  }
}

.watch-party-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.watch-footer-btn--icon {
  padding: 0.45rem 0.55rem !important;
  min-width: 2.5rem;
}

.watch-footer-btn__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

body.party-modal-open {
  overflow: hidden;
}

.party-modal__panel {
  width: min(96vw, 28rem);
  max-height: min(88vh, 520px);
  padding: 1.25rem 1.5rem 1.5rem;
}

.party-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.party-modal__hint,
.party-modal__site-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.party-modal__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.party-modal__select {
  width: 100%;
  margin-bottom: 0.75rem;
}

.party-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.party-modal__status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--accent);
}

.party-modal__status--error {
  color: #ff6b8a;
}

.watch-footer-btn--active {
  border-color: var(--pink);
  background: rgba(255, 45, 106, 0.28);
  color: #fff;
}

.watch-playback-bar__toggles {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.watch-footer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;
}

.watch-footer-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--pink);
  cursor: pointer;
}

/* Kill the mobile double-tap-zoom delay so every control registers on the
   very first tap (party mode, music vault, checkboxes, nav + player buttons). */
.watch-footer-btn,
.watch-footer-toggle,
.watch-footer-toggle input,
.watch-nav-btn,
.player__btn,
.player__seek-btn,
.player__skip-intro,
.player__progress,
.player__volume-slider,
.watch-vault__icon-btn,
.watch-vault__peek {
  touch-action: manipulation;
}

/* ─── Prev / next stream nav ──────────────────────────────────────────────── */

.watch-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 34vw;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.watch-nav-btn[hidden] {
  display: none;
}

.watch-nav-btn:hover {
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.14);
  color: #fff;
}

.watch-nav-btn__chevron {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  color: var(--pink);
  transition: transform 0.2s ease;
}

.watch-nav-btn--prev:hover .watch-nav-btn__chevron {
  transform: translateX(-3px);
}

.watch-nav-btn--next:hover .watch-nav-btn__chevron {
  transform: translateX(3px);
}

.watch-nav-btn__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}

.watch-nav-btn--next .watch-nav-btn__text {
  align-items: flex-end;
  text-align: right;
}

.watch-nav-btn__dir {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.watch-nav-btn__title {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .watch-nav-btn__title {
    display: none;
  }

  .watch-nav-btn {
    max-width: none;
    min-height: 2.75rem;
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 720px), (max-height: 520px) and (max-width: 960px) {
  body.page-watch--controls-docked:not(.page-watch--theater) .watch-main {
    padding-bottom: calc(var(--watch-dock-h, 0px) + 2rem + env(safe-area-inset-bottom, 0px));
  }

  .watch-playback-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "prev next"
      "center center";
    column-gap: 0.75rem;
    row-gap: 0.55rem;
    padding: 0.65rem 0.85rem 0.75rem;
  }

  .watch-playback-bar__center {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.55rem;
    justify-self: stretch;
    width: 100%;
  }

  .watch-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    text-align: center;
  }

  .watch-playback-bar__toggles {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
  }

  .watch-footer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 2.75rem;
    padding: 0.35rem 0.1rem;
    gap: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .watch-footer-toggle input {
    width: 0.9rem;
    height: 0.9rem;
  }

}

@media (max-height: 520px) and (max-width: 960px) {
  .watch-playback-bar {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: "prev center next";
    column-gap: 0.65rem;
    row-gap: 0.45rem;
    padding: 0.5rem 0.85rem 0.65rem;
  }

  .watch-playback-bar__center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    width: auto;
  }

  .watch-footer-btn,
  .watch-footer-toggle {
    width: auto;
    min-height: 2.5rem;
    padding-inline: 0.65rem;
  }

  .watch-nav-btn {
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
  }

  .player__controls #btn-skip-intro {
    min-height: 2.25rem;
  }
}

/* ─── Enable-audio gate (fullscreen overlay when autoplay starts muted) ───── */

.player__audio-gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 2rem);
}

.player__audio-gate[hidden] {
  display: none !important;
}

.player__audio-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.player__audio-gate__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: min(18rem, 88vw);
  min-height: 3.5rem;
  padding: 1rem 1.85rem;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.94);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 4.2vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 45, 106, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: bn-audio-gate-pulse 2.2s ease-in-out infinite;
}

.player__audio-gate__btn:hover,
.player__audio-gate__btn:focus-visible {
  border-color: rgba(255, 45, 106, 0.75);
  background: rgba(255, 45, 106, 0.24);
  transform: scale(1.03);
  outline: none;
  box-shadow:
    0 12px 44px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 45, 106, 0.35);
}

.player__audio-gate__btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--pink);
}

@keyframes bn-audio-gate-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.5),
      0 0 16px rgba(255, 45, 106, 0.12);
  }
  50% {
    box-shadow:
      0 12px 44px rgba(0, 0, 0, 0.55),
      0 0 32px rgba(255, 45, 106, 0.32);
  }
}

/* ─── Support modal ──────────────────────────────────────────────────────── */

body.support-modal-open {
  overflow: hidden;
}

/* ─── Broadcaster setup modal ────────────────────────────────────────────── */

body.setup-modal-open {
  overflow: hidden;
}

.setup-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.setup-modal[hidden] {
  display: none !important;
}

.setup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(4px);
}

.setup-modal__panel {
  position: relative;
  width: min(96vw, 1500px);
  max-height: min(92vh, 980px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(0, 232, 255, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.setup-modal__close {
  position: sticky;
  top: 0.75rem;
  float: right;
  z-index: 2;
  margin: 0.75rem 0.85rem 0 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.setup-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.setup-card--modal {
  max-width: none;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 2rem 2rem;
  margin-top: -2rem;
}

.setup-card--modal .setup-card__title {
  font-size: 2rem;
  padding-right: 2rem;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.support-modal[hidden] {
  display: none !important;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(4px);
}

.support-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(0, 232, 255, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.support-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.support-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.support-modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.support-modal__text {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.support-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.support-modal__actions > .btn,
.support-modal__discord {
  flex: 1 1 8rem;
}

.support-modal__discord {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.support-modal__discord .btn {
  width: 100%;
}

.support-modal__fine-print {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fff;
}

/* ─── Guest welcome modal ────────────────────────────────────────────────── */

body.guest-welcome-modal-open {
  overflow: hidden;
}

.guest-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.guest-welcome-modal[hidden] {
  display: none !important;
}

.guest-welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.86);
  backdrop-filter: blur(6px);
}

.guest-welcome-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: 2rem 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(93, 255, 176, 0.35);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(93, 255, 176, 0.12);
  text-align: center;
}

.guest-welcome-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.guest-welcome-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.guest-welcome-modal__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5dffb0;
}

.guest-welcome-modal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.35rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
}

.guest-welcome-modal__text {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.guest-welcome-modal__actions {
  display: flex;
  justify-content: center;
}

.guest-welcome-modal__ok {
  min-width: 8rem;
}

/* ─── VOD batch queue (local tool) ───────────────────────────────────────── */

.page-vod-queue .setup-card {
  max-width: min(1100px, calc(100vw - 4rem));
}

.vod-queue-offline {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(255, 200, 80, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255, 200, 80, 0.06);
}

.vod-queue-offline__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.vod-queue-offline__cmd {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  overflow-x: auto;
}

.vod-queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
}

.vod-queue-toolbar__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.vod-queue-toolbar__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.vod-queue-toolbar__dot--running {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.65);
}

.vod-queue-toolbar__dot--paused {
  background: #ffc850;
}

.vod-queue-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vod-queue-toolbar__stop {
  color: var(--pink);
}

.vod-queue-progress {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 170, 0.28);
  background: rgba(0, 212, 170, 0.06);
}

.vod-queue-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.vod-queue-progress__label {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vod-queue-progress__pct {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  flex-shrink: 0;
}

.vod-queue-progress__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.vod-queue-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.55), rgba(0, 212, 170, 0.95));
  transition: width 0.35s ease;
}

.vod-queue-progress__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vod-upload-progress {
  margin: 0.55rem 0 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vod-upload-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.vod-upload-progress__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink);
}

.vod-upload-progress__pct {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--pink);
  flex-shrink: 0;
}

.vod-upload-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vod-upload-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.55), rgba(255, 77, 141, 0.95));
  transition: width 0.2s ease;
}

.vod-job__bar {
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vod-job__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(0, 212, 170, 0.85);
  transition: width 0.35s ease;
}

.vod-job__upload {
  margin-top: 0.5rem;
}

.vod-job__upload-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
}

.vod-job__upload-label {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pink);
}

.vod-job__upload-pct {
  font-family: var(--font-display);
  color: var(--pink);
  flex-shrink: 0;
}

.vod-job__bar--upload .vod-job__bar-fill {
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.55), rgba(255, 77, 141, 0.95));
  transition: width 0.2s ease;
}

.vod-queue-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

.vod-queue-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.vod-queue-panel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.vod-queue-panel__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vod-queue-panel__foot {
  margin-top: 0.75rem;
}

.vod-queue-scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vod-queue-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.vod-queue-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.vod-queue-field__input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.vod-queue-scan__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vod-queue-scan__status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vod-queue-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.vod-queue-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.vod-queue-table-wrap {
  overflow-x: auto;
}

.vod-queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.vod-queue-table th,
.vod-queue-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.vod-queue-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.vod-queue-table__row--muted {
  opacity: 0.55;
}

.vod-queue-table__file {
  max-width: 18rem;
  word-break: break-word;
}

.vod-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.vod-badge--ok {
  background: rgba(93, 255, 176, 0.15);
  color: #5dffb0;
}

.vod-badge--warn {
  background: rgba(255, 200, 80, 0.15);
  color: #ffc850;
}

.vod-badge--bad {
  background: rgba(255, 80, 120, 0.15);
  color: var(--pink);
}

.vod-badge--ready {
  background: rgba(0, 212, 170, 0.12);
  color: var(--cyan);
}

.vod-badge--run {
  background: rgba(100, 160, 255, 0.15);
  color: #8ab4ff;
}

.vod-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.vod-job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vod-job {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.vod-job--running {
  border-color: rgba(0, 212, 170, 0.35);
  background: rgba(0, 212, 170, 0.06);
}

.vod-job--failed {
  border-color: rgba(255, 80, 120, 0.35);
}

.vod-job--empty {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: none;
  background: transparent;
  padding: 0;
}

.vod-job__title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.vod-job__meta,
.vod-job__path {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.vod-job__error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--pink);
}

.vod-job__log {
  margin-top: 0.45rem;
  font-size: 0.72rem;
}

.vod-job__log summary {
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}

.vod-job__log summary:hover {
  color: var(--text);
}

.vod-job__log-pre {
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.65rem;
  max-height: 12rem;
  overflow: auto;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.75);
}

.vod-job--failed .vod-job__log summary {
  color: var(--pink);
}

.vod-job__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn--xs {
  padding: 0.3rem 0.55rem !important;
  font-size: 0.65rem !important;
}

.vod-live-log {
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  .vod-queue-scan {
    grid-template-columns: 1fr;
  }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */

[hidden] { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 600px) {
  .site-nav .nav-link:not(.nav-link--dim):not(.nav-link--support) { display: none; }
  .auth-user__name { display: none; }
}

/* ─── Mini player (browse while watching) ─────────────────────────────────── */

body.bn-mini-active {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.bn-mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  border-top: 1px solid rgba(255, 45, 106, 0.35);
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.92), rgba(8, 8, 12, 0.98));
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.bn-mini-player__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  cursor: pointer;
  outline: none;
}

.bn-mini-player__inner:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 45, 106, 0.6);
}

.bn-mini-player__video-wrap {
  width: 7.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bn-mini-player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.bn-mini-player__meta {
  min-width: 0;
}

.bn-mini-player__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bn-mini-player__status {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.bn-mini-player--paused .bn-mini-player__status {
  color: var(--text-muted);
}

.bn-mini-player__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.bn-mini-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.bn-mini-player__btn:hover {
  border-color: rgba(255, 45, 106, 0.45);
  color: var(--pink);
}

.bn-mini-player__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.bn-mini-player__icon--play {
  display: none;
}

.bn-mini-player--paused .bn-mini-player__icon--pause {
  display: none;
}

.bn-mini-player--paused .bn-mini-player__icon--play {
  display: block;
}

@media (max-width: 560px) {
  .bn-mini-player__inner {
    gap: 0.5rem 0.6rem;
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .bn-mini-player__video-wrap {
    width: 5rem;
  }

  .bn-mini-player__btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
  }

  .bn-mini-player__title {
    font-size: 0.82rem;
  }

  .bn-mini-player__status {
    font-size: 0.66rem;
  }
}

.bn-mini-player--entering {
  animation: bn-mini-enter 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.bn-mini-player--expanding {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.bn-page-expanding .watch-player-wrap {
  opacity: 0;
  animation: bn-player-reveal 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.bn-player-transition {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

@keyframes bn-mini-enter {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bn-player-reveal {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
