/**
 * Stadium Night — Estrah Lounge
 * Signature: Floodlight Curtain
 */

body.sn-lounge {
  /* Comfortable evening palette — overrides harsh inline brand reds */
  --brand: #A85A62;
  --brand2: #B86B72;
  --glow: rgba(168, 90, 98, 0.18);
  --neon1: linear-gradient(135deg, #A85A62 0%, #B86B72 48%, #8a4850 100%);
  --neon2: linear-gradient(135deg, #C9A35C 0%, #A85A62 100%);
  --neon3: linear-gradient(90deg, #A85A62, #B86B72, #C9A35C);
  --plyr-color-main: #A85A62;

  font-family: var(--sn-font-body) !important;
  color: var(--sn-flood);
  background-color: var(--sn-pitch) !important;
  background-image:
    radial-gradient(ellipse 90% 55% at var(--sn-ptr-x) -10%, rgba(201, 163, 92, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at calc(var(--sn-ptr-x) + 20%) 40%, rgba(106, 157, 181, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 45% at 10% 80%, rgba(74, 158, 138, 0.04), transparent 55%),
    linear-gradient(180deg, #101826 0%, #182232 55%, #0e1520 100%) !important;
  background-attachment: fixed;
  transition: background 0.4s var(--sn-ease);
}

body.sn-lounge::before {
  opacity: 0.12 !important;
  background-image:
    linear-gradient(rgba(220, 227, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 227, 238, 0.025) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  mask-image: radial-gradient(ellipse 90% 70% at var(--sn-ptr-x) 10%, #000 15%, transparent 78%) !important;
}

/* Scroll progress */
.sn-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  z-index: 10050;
  transform-origin: right center;
  transform: scaleX(var(--sn-scroll, 0));
  background: linear-gradient(90deg, var(--sn-led), var(--sn-screen), var(--sn-amber));
  box-shadow: 0 0 8px rgba(168, 90, 98, 0.25);
  pointer-events: none;
}

/* Header chrome */
body.sn-lounge header {
  background: rgba(16, 24, 38, 0.82) !important;
  backdrop-filter: blur(22px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
  border-bottom: 1px solid rgba(220, 227, 238, 0.07) !important;
  transition: background 0.35s var(--sn-ease), box-shadow 0.35s var(--sn-ease), border-color 0.35s;
}
body.sn-lounge header.sn-scrolled {
  background: rgba(16, 24, 38, 0.94) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32) !important;
}
body.sn-lounge header::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 90, 98, 0.26) 18%,
    rgba(106, 157, 181, 0.35) 50%,
    rgba(201, 163, 92, 0.4) 82%,
    transparent
  ) !important;
  height: 1px !important;
  opacity: 0.8 !important;
  animation: none !important;
}
@keyframes sn-led-sweep {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(12deg) brightness(1.15); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}

body.sn-lounge .brand {
  font-family: var(--sn-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
body.sn-lounge .brand span {
  background: linear-gradient(135deg, #fff 0%, var(--sn-flood) 40%, var(--sn-screen) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  transition: filter 0.35s var(--sn-ease), letter-spacing 0.35s var(--sn-ease);
}
body.sn-lounge .brand:hover span,
body.sn-lounge .brand:focus-within span {
  letter-spacing: 0.04em;
  filter: drop-shadow(0 0 18px rgba(106, 157, 181, 0.45));
}

body.sn-lounge .iconbtn,
body.sn-lounge .brand .logo-btn {
  min-width: 44px;
  min-height: 44px;
  transition: transform 0.28s var(--sn-press), background 0.25s, border-color 0.25s, box-shadow 0.25s !important;
}
body.sn-lounge .iconbtn:hover,
body.sn-lounge .iconbtn:focus-visible {
  background: rgba(106, 157, 181, 0.14) !important;
  border-color: rgba(106, 157, 181, 0.5) !important;
  box-shadow: 0 0 24px rgba(106, 157, 181, 0.25);
}
body.sn-lounge .iconbtn:active {
  transform: translateY(-50%) scale(0.92) !important;
}
body.sn-lounge .brand .logo-btn:active {
  transform: scale(0.9) !important;
}

/* Chips / cats */
body.sn-lounge .chip {
  font-family: var(--sn-font-body) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(220, 227, 238, 0.08), rgba(220, 227, 238, 0.02)) !important;
  border: 1px solid rgba(220, 227, 238, 0.12) !important;
  transition: transform 0.25s var(--sn-press), border-color 0.25s, box-shadow 0.25s, background 0.25s !important;
}
body.sn-lounge .chip:hover,
body.sn-lounge .chip:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(106, 157, 181, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(106, 157, 181, 0.15);
}
body.sn-lounge .chip.active,
body.sn-lounge .chip[aria-pressed="true"] {
  border-color: rgba(168, 90, 98, 0.65) !important;
  background: linear-gradient(145deg, rgba(168, 90, 98, 0.28), rgba(201, 163, 92, 0.1)) !important;
  box-shadow: 0 0 28px rgba(168, 90, 98, 0.28);
}
body.sn-lounge .chip:active {
  transform: scale(0.96);
}
body.sn-lounge .scroll-hint {
  background: linear-gradient(135deg, var(--sn-led), #9b1220) !important;
  box-shadow: 0 4px 16px rgba(168, 90, 98, 0.25);
}
body.sn-lounge .scroll-hint:hover {
  box-shadow: 0 6px 22px rgba(106, 157, 181, 0.35);
}

/* ========== FLOODLIGHT CURTAIN HERO ========== */
.sn-lounge-hero {
  position: relative;
  isolation: isolate;
  min-height: min(52vh, 420px);
  margin: 0 0 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 0 28px;
}
.sn-lounge-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 108%, rgba(45, 212, 168, 0.14), transparent 60%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(16, 24, 38, 0.2), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(16, 24, 38, 0.35) 45%, var(--sn-pitch) 100%);
}
.sn-lounge-hero__beams {
  position: absolute;
  inset: -10% -5% 20%;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(from 210deg at var(--sn-ptr-x) -5%, transparent 0deg, rgba(201, 163, 92, 0.07) 18deg, transparent 42deg),
    conic-gradient(from 150deg at calc(var(--sn-ptr-x) - 18%) -8%, transparent 0deg, rgba(106, 157, 181, 0.05) 16deg, transparent 38deg),
    conic-gradient(from 250deg at calc(var(--sn-ptr-x) + 18%) -8%, transparent 0deg, rgba(168, 90, 98, 0.07) 14deg, transparent 36deg);
  filter: blur(2px);
  opacity: 0.95;
  transition: opacity 0.4s var(--sn-ease);
  animation: sn-beam-breathe 7s ease-in-out infinite;
}
@keyframes sn-beam-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.sn-lounge-hero__crowd,
.sn-lounge-hero__screen,
.sn-lounge-hero__live {
  display: none !important; /* TV removed â€” brand + CTAs only */
}
.sn-lounge-hero__screen::before {
  display: none !important;
  animation: none !important;
}

.sn-lounge-hero__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 14px 8px;
  text-align: right;
}
.sn-lounge-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--sn-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--sn-flood-dim);
}
.sn-lounge-hero__brand img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s var(--sn-press), filter 0.35s;
}
.sn-lounge-hero__brand:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(106, 157, 181, 0.4));
}
.sn-lounge-hero__title {
  margin: 0 0 12px;
  font-family: var(--sn-font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 12vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--sn-flood);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.55);
  background: linear-gradient(
    118deg,
    #fff 0%,
    var(--sn-flood) 35%,
    var(--sn-screen) 70%,
    var(--sn-amber) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s var(--sn-ease), letter-spacing 0.4s var(--sn-ease), filter 0.4s;
  cursor: default;
  max-width: 12ch;
}
.sn-lounge-hero__title:hover,
.sn-lounge-hero.is-hot .sn-lounge-hero__title {
  background-position: 100% 0;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 0 28px rgba(106, 157, 181, 0.35));
}
.sn-lounge-hero__lede {
  margin: 0 0 22px;
  max-width: 28ch;
  font-family: var(--sn-font-body);
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--sn-flood-dim);
}
.sn-lounge-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.sn-cta {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 12px;
  font-family: var(--sn-font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--sn-led) 0%, #8a4850 100%);
  box-shadow:
    0 6px 18px rgba(168, 90, 98, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.28s var(--sn-press), box-shadow 0.28s, filter 0.28s;
  position: relative;
  overflow: hidden;
  z-index: 6;
}
.sn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.55s var(--sn-ease);
}
.sn-cta:hover,
.sn-cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 40px rgba(168, 90, 98, 0.28),
    0 0 40px rgba(201, 163, 92, 0.25);
  filter: brightness(1.06);
  outline: none;
}
.sn-cta:hover::after,
.sn-cta:focus-visible::after {
  transform: translateX(-120%);
}
.sn-cta:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 16px rgba(168, 90, 98, 0.22);
}
.sn-cta.sn-flash {
  box-shadow:
    0 0 0 3px rgba(201, 163, 92, 0.55),
    0 16px 48px rgba(168, 90, 98, 0.55),
    0 0 60px rgba(106, 157, 181, 0.35);
  filter: brightness(1.12);
}
.sn-cats-pulse {
  animation: sn-cats-glow 0.9s var(--sn-ease);
}
@keyframes sn-cats-glow {
  0%, 100% { filter: none; }
  40% { filter: drop-shadow(0 0 18px rgba(106, 157, 181, 0.55)); }
}
body.sn-lounge .card {
  transform-style: preserve-3d;
}
.sn-header-live {
  border-color: rgba(168, 90, 98, 0.26) !important;
  background: rgba(168, 90, 98, 0.16) !important;
}
.sn-header-live:hover,
.sn-header-live:focus-visible {
  background: rgba(168, 90, 98, 0.28) !important;
  box-shadow: 0 0 24px rgba(168, 90, 98, 0.22) !important;
}
.sn-cta--ghost {
  background: rgba(220, 227, 238, 0.06);
  color: var(--sn-flood);
  border: 1px solid rgba(220, 227, 238, 0.18);
  box-shadow: none;
  font-weight: 700;
}
.sn-cta--ghost:hover,
.sn-cta--ghost:focus-visible {
  border-color: rgba(106, 157, 181, 0.45);
  box-shadow: 0 0 28px rgba(106, 157, 181, 0.18);
  background: rgba(106, 157, 181, 0.05);
  filter: none;
}

/* Entrance sequence */
.sn-lounge-hero.is-ready .sn-lounge-hero__beams {
  animation: sn-beam-open 1.1s var(--sn-ease) both, sn-beam-breathe 7s ease-in-out 1.1s infinite;
}
.sn-lounge-hero.is-ready .sn-lounge-hero__screen {
  animation: sn-screen-in 0.9s var(--sn-ease) 0.15s both;
}
.sn-lounge-hero.is-ready .sn-lounge-hero__title {
  animation: sn-type-in 0.85s var(--sn-ease) 0.28s both;
}
.sn-lounge-hero.is-ready .sn-lounge-hero__lede,
.sn-lounge-hero.is-ready .sn-lounge-hero__actions {
  animation: sn-rise 0.7s var(--sn-ease) 0.45s both;
}
@keyframes sn-beam-open {
  from { opacity: 0; transform: scale(0.92) translateY(-8%); }
  to { opacity: 0.95; transform: scale(1) translateY(0); }
}
@keyframes sn-screen-in {
  from { opacity: 0; transform: translateX(-50%) perspective(900px) rotateX(18deg) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%) perspective(900px) rotateX(8deg) translateY(0); }
}
@keyframes sn-type-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes sn-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Rows / cards */
body.sn-lounge .row .title,
body.sn-lounge .row-title,
body.sn-lounge h2,
body.sn-lounge h3 {
  font-family: var(--sn-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
body.sn-lounge .card {
  border-radius: 14px !important;
  transition:
    transform 0.35s var(--sn-press),
    box-shadow 0.35s var(--sn-ease),
    border-color 0.35s !important;
  border: 1px solid transparent;
  will-change: transform;
}
body.sn-lounge .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.35s var(--sn-ease);
  z-index: 2;
}
body.sn-lounge .card:hover,
body.sn-lounge .card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(106, 157, 181, 0.28),
    0 0 36px rgba(106, 157, 181, 0.12) !important;
}
body.sn-lounge .card:hover::after,
body.sn-lounge .card:focus-within::after {
  box-shadow: inset 0 0 0 1px rgba(201, 163, 92, 0.35);
}
body.sn-lounge .card:active {
  transform: translateY(-2px) scale(0.98);
}
body.sn-lounge .track {
  scrollbar-color: rgba(106, 157, 181, 0.55) rgba(255, 255, 255, 0.06) !important;
  padding-block: 8px !important;
}

/* Trial timers â€” kill purple SaaS */
#loungeTrialTimer,
#loungeWaitingTimer,
#freeTrialTimer {
  font-family: var(--sn-font-body) !important;
  background: linear-gradient(135deg, rgba(168, 90, 98, 0.92), rgba(18, 28, 42, 0.95)) !important;
  border: 1px solid rgba(201, 163, 92, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(168, 90, 98, 0.25) !important;
  backdrop-filter: blur(14px) !important;
}
#loungeWaitingTimer {
  background: linear-gradient(135deg, rgba(16, 24, 38, 0.95), rgba(106, 157, 181, 0.22)) !important;
  border-color: rgba(106, 157, 181, 0.35) !important;
}
#loungeTimerDisplay,
#waitingTimerDisplay,
#timerDisplay {
  font-family: var(--sn-font-body) !important;
  font-variant-numeric: tabular-nums;
  color: var(--sn-flood) !important;
}

/* Empty / error worlds */
body.sn-lounge .sn-state {
  text-align: center;
  padding: 48px 20px;
  border-radius: 18px;
  border: 1px solid rgba(220, 227, 238, 0.1);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(168, 90, 98, 0.07), transparent 60%),
    rgba(16, 24, 38, 0.65);
}
body.sn-lounge .sn-state h3 {
  font-family: var(--sn-font-display);
  font-weight: 800;
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--sn-flood);
}
body.sn-lounge .sn-state p {
  color: var(--sn-flood-dim);
  margin: 0 0 18px;
}
body.sn-lounge .sn-state .sn-cta {
  min-height: 48px;
  font-size: 0.95rem;
}

/* Floating home — soft dusty rose, low glow */
body.sn-lounge .floating-home-btn {
  background: linear-gradient(135deg, var(--sn-led), #8a4850) !important;
  box-shadow: 0 4px 16px rgba(168, 90, 98, 0.28) !important;
  transition: transform 0.28s var(--sn-press), box-shadow 0.28s !important;
}
body.sn-lounge .floating-home-btn:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 8px 22px rgba(106, 157, 181, 0.25) !important;
}
body.sn-lounge .floating-home-btn:active {
  transform: scale(0.96) !important;
}
body.sn-lounge .floating-home-btn .btn-tooltip {
  font-family: var(--sn-font-body) !important;
}

/* Softer row “more” links */
body.sn-lounge .more,
body.sn-lounge a.more,
body.sn-lounge .row-more,
body.sn-lounge .see-more {
  color: var(--sn-led-hot) !important;
  opacity: 0.92;
}
body.sn-lounge .more:hover,
body.sn-lounge a.more:hover {
  color: var(--sn-flood) !important;
}

/* Details overlay type */
body.sn-lounge .details,
body.sn-lounge .d-title,
body.sn-lounge .cat-title {
  font-family: var(--sn-font-display);
}

/* Mobile */
@media (max-width: 640px) {
  .sn-lounge-hero {
    min-height: min(42vh, 340px);
    padding-bottom: 14px;
    align-items: flex-end;
  }
  .sn-lounge-hero__content {
    padding: 12px 12px 4px;
  }
  .sn-lounge-hero__title {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
    max-width: 10ch;
  }
  .sn-cta {
    width: 100%;
    min-height: 52px;
  }
  .sn-lounge-hero__actions {
    width: 100%;
    flex-direction: column;
  }
  body.sn-lounge .row .title,
  body.sn-lounge h3 {
    font-size: 1.05rem !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sn-lounge-hero__beams,
  .sn-lounge-hero__screen::before,
  .sn-lounge-hero__live::before,
  body.sn-lounge header::after {
    animation: none !important;
  }
  .sn-lounge-hero.is-ready .sn-lounge-hero__beams,
  .sn-lounge-hero.is-ready .sn-lounge-hero__screen,
  .sn-lounge-hero.is-ready .sn-lounge-hero__title,
  .sn-lounge-hero.is-ready .sn-lounge-hero__lede,
  .sn-lounge-hero.is-ready .sn-lounge-hero__actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  body.sn-lounge .card:hover,
  body.sn-lounge .card:focus-within {
    transform: none;
  }
}
