/* Fonts: Google Fonts (OFL) are linked in index.html */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --bg-page:        #1c1c1c;
  --bg-content:     #141414;
  --accent-green:   #FF2E9C;
  --accent-red:     #E3202B;
  --text-primary:   #FFFFFF;
  --text-secondary: #BDBDBD;

  /* Typography */
  --font-heading:  'Bebas Neue', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-name:     'Russo One', 'Permanent Marker', sans-serif; /* Cyrillic bold */

  /* Layout */
  --header-height:   52px;
  --container-max:   1440px;
  --container-pad:   clamp(16px, 3vw, 48px);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 96px;

  /* Vertical rhythm */
  --section-py: clamp(64px, 8vw, 112px);  /* section top/bottom padding */
  --title-gap:  clamp(32px, 4vw, 56px);   /* section title → content */

  /* Transitions */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---- Nav groups ---- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-start;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
}

/* ---- Nav links ---- */
.nav-link {
  display: inline-block;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Active state — red badge */
.nav-link--active {
  background: var(--accent-red);
  color: var(--text-primary) !important;
  padding: 6px 12px;
}

.nav-link--active:hover {
  background: #c41a23;
}

/* Right-side links — slightly dimmer */
.nav-link--right {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.nav-link--right:hover {
  color: var(--accent-green);
}

/* ---- Logo ---- */
.site-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  padding: 0 var(--space-md);
  flex-shrink: 0;
  transition: color 0.2s ease;
  user-select: none;
}

.site-logo:hover {
  color: var(--accent-green);
}

/* ---- Burger button ---- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform  0.38s var(--ease-out),
    opacity    0.25s ease,
    background 0.2s ease;
}

/* Burger → X animation */
.burger-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-green);
}
.burger-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}
.burger-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-green);
}

/* ---- Mobile dropdown menu ---- */
.mobile-menu {
  background: var(--bg-content);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out);
}

.mobile-menu.is-open {
  max-height: 640px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) 0 var(--space-md);
}

.mobile-nav-link {
  position: relative;
  padding: 14px var(--container-pad);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition:
    color       0.2s ease,
    border-color 0.2s ease,
    background  0.2s ease,
    padding-left 0.2s ease;
}

.mobile-nav-link::after {
  content: '›';
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  border-left-color: var(--accent-green);
  background: rgba(255, 46, 156, 0.04);
  padding-left: calc(var(--container-pad) + 4px);
}

.mobile-nav-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

.mobile-nav-link--active {
  color: var(--text-primary);
  border-left-color: var(--accent-red);
  background: rgba(227, 32, 43, 0.08);
}

.mobile-nav-link--dim {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--space-sm) var(--container-pad);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

/* ---- Background video ---- */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ---- Dim overlay: even darkening + fade into next section ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, 0) 70%, var(--bg-content) 100%),
    rgba(0, 0, 0, 0.85);
}

/* ---- Content ---- */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
}

/* ---- Title: TIMAEV + icon = frame, STREAM = slide ---- */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  font-size: clamp(56px, 9vw, 140px);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Same gap as the row, so the icon sits exactly between both words */
.hero-frame {
  display: flex;
  align-items: center;
  gap: 0.2em;
  will-change: transform;
}

/* Icon replaces "VV": a touch taller than the cap height */
.hero-icon {
  height: 0.84em;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 0.12em rgba(255, 46, 156, 0.45));
  will-change: transform;
}

.hero-word {
  display: block;
  font-family: var(--font-heading);
  font-size: 1em;
  line-height: 0.88;
  color: var(--accent-green);
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 46, 156, 0.55),
    0 0 60px rgba(255, 46, 156, 0.25),
    0 0 120px rgba(255, 46, 156, 0.12);
  letter-spacing: -0.01em;
  white-space: nowrap;
  will-change: transform;
}

/* Hidden until the rack intro starts (only when JS is available) */
.js .hero-title-row > * { opacity: 0; }
.js .hero-title-row.is-ready > * { opacity: 1; }

/* ---- Chat bubbles (live only) ---- */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-bubble {
  position: absolute;
  top: 100%;
  left: 0;
  max-width: min(300px, 70vw);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%),
    rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 46, 156, 0.35);
  border-radius: 22px;
  box-shadow: 0 0 18px rgba(255, 46, 156, 0.18), inset 0 0 12px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-wrap: anywhere;
  will-change: transform, opacity;
}

.hero-bubble-nick {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
}

@media (max-width: 767px) {
  .hero-bubble {
    max-width: calc(100vw - 32px);
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ---- Live button ---- */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta[hidden] { display: none; }

.hero-viewers {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background  0.22s ease,
    color       0.22s ease,
    transform   0.18s ease,
    box-shadow  0.22s ease;
}

.btn--live {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
}

.btn--live:hover,
.btn--live:focus-visible {
  background: transparent;
  color: var(--accent-green);
  box-shadow: 0 0 24px rgba(255, 46, 156, 0.35);
  transform: translateY(-2px);
}

.btn-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1.4s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ---- Scroll hint ---- */
.scroll-hint {
  position: absolute;
  bottom: clamp(20px, 4vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
  transform: rotate(45deg);
  animation: arrow-bounce 1.6s ease-in-out infinite;
  opacity: 0.7;
}

.scroll-arrow--2 {
  animation-delay: 0.2s;
  opacity: 0.4;
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0);    opacity: 0.3; }
  50%       { transform: rotate(45deg) translate(4px, 4px); opacity: 0.9; }
}

/* ---- Hero responsive ---- */
@media (max-width: 767px) {
  .hero-title-row {
    flex-direction: column;
    gap: 0.06em;
    font-size: clamp(56px, 20vw, 96px);
  }
}

/* ============================================================
   SHARED SECTION HELPERS
   ============================================================ */
.section-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--section-py) var(--container-pad);
}

/* Section title — large Bebas with white glow, as in reference */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 48px);
  text-align: center;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: var(--title-gap);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(255, 255, 255, 0.18);
}

/* Decorative diagonal tape between sections */
.section-tape {
  position: relative;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
}

.section-tape::before {
  content: '';
  position: absolute;
  left: calc(-5% - 76px);
  width: calc(110% + 152px);
  height: 100%;
  will-change: transform;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-green)  0px,
    var(--accent-green)  22px,
    #000                 22px,
    #000                 38px
  );
  /* --tape-x is driven by scroll in main.js; one stripe period = 38px */
  transform: rotate(-1.5deg) translateX(var(--tape-x, 0px));
  opacity: 0.75;
}

.section-tape--top    { margin-bottom: -1px; }
.section-tape--bottom { margin-top: -1px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
  background: var(--bg-content);
  position: relative;
}

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

/* ---- Partner photo placeholder ---- */
.partner-card-icon {
  width: clamp(64px, 7vw, 88px);
  height: clamp(64px, 7vw, 88px);
  flex-shrink: 0;
  border-radius: 6px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.partner-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-card-text {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.45;
  color: var(--text-secondary);
}

.partner-card--cta:hover {
  transform: none;
}

.partner-card-icon--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 46, 156, 0.1);
  border-color: rgba(255, 46, 156, 0.35);
}

.partner-card-icon--cta svg {
  width: 40%;
  height: 40%;
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.partner-link {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.partner-link:hover,
.partner-link:focus-visible {
  color: #fff;
}

.partner-card-text strong {
  font-weight: 800;
  color: var(--text-primary);
}

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

/* ---- Partner card ---- */
.partner-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: 20px clamp(16px, 2.5vw, 32px);
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  color: var(--text-primary);
  text-decoration: none;
  transition:
    border-color  0.22s ease,
    background    0.22s ease,
    transform     0.2s ease,
    box-shadow    0.22s ease;
}

.partner-card:hover {
  border-color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: rgba(255, 46, 156, 0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.partner-card-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

/* Cyrillic name — Russo One is much wider than Bebas, so it runs smaller */
.partner-card-name--ru {
  font-family: var(--font-name);
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 0;
}

.partner-card:hover .partner-card-name {
  color: var(--accent-green);
}

.partner-card-arrow {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.partner-card:hover .partner-card-arrow {
  color: var(--accent-green);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 767px) {
  .partner-card {
    padding-block: 14px;
  }

  .partner-card {
    align-items: flex-start;
  }

  .partner-card-arrow {
    display: none;
  }

  .partner-card-name {
    font-size: clamp(26px, 8vw, 36px);
  }

  .partner-card-name--ru {
    font-size: clamp(18px, 5.4vw, 26px);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-py) var(--container-pad);
}

.about-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 104px);
}

/* ---- Polaroid photo: wrapper carries the tilt so graffiti stays parallel ---- */
.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: clamp(280px, 38vw, 450px);
  margin-block: clamp(40px, 5vw, 64px);
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}

.about-photo-wrap:hover {
  transform: rotate(-1deg) scale(1.02);
}

.about-polaroid {
  background: #fff;
  padding: 15px 15px 54px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.4);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* Red graffiti PNGs — TIMAEVVV on the top edge, STREAM on the bottom edge */
.about-graffiti {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.55));
}

.about-graffiti--top {
  top: 0;
  left: -6%;
  width: 62%;
  transform: translateY(-55%);
}

.about-graffiti--bottom {
  bottom: 0;
  right: -6%;
  width: 46%;
  transform: translateY(45%);
}

/* ---- Right text ---- */
.about-text {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 28px);
  min-width: 0;
}

.about-name {
  font-family: var(--font-name);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.9;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  width: fit-content;
  transform: scaleX(1.12);
  transform-origin: left;
  margin-right: 12%; /* reserve room for the horizontal stretch */
}

.about-quote {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-red);
  padding-left: 16px;
  line-height: 1.55;
  max-width: 420px;
}

.about-tagline {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.88;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 8px;
}

.about-green {
  color: var(--accent-green);
  text-shadow:
    0 0 20px rgba(255, 46, 156, 0.5),
    0 0 60px rgba(255, 46, 156, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .about-text {
    align-self: stretch;
  }

  .about-photo-wrap {
    width: clamp(260px, 76vw, 360px);
  }

  .about-graffiti--top    { left: -3%; }
  .about-graffiti--bottom { right: -3%; }

  .about-name {
    font-size: clamp(44px, 14vw, 72px);
  }

  .about-tagline {
    font-size: clamp(44px, 14vw, 72px);
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg-content);
  position: relative;
}

.faq-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-py) var(--container-pad);
}

.faq-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 360px;
}

/* ---- Left: question list ---- */
.faq-list {
  flex: 0 0 clamp(240px, 42%, 440px);
  display: flex;
  flex-direction: column;
  list-style: none;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 52px;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-btn-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.25s var(--ease-out);
}

/* Active state — green bg, black text */
.faq-item.is-active .faq-btn {
  background: var(--accent-green);
}

.faq-item.is-active .faq-btn-text {
  color: #000;
}

.faq-item.is-active .faq-arrow {
  color: #000;
  transform: translateX(3px);
}

/* ---- Inline answer (mobile accordion) ---- */
.faq-inline {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out), padding 0.3s ease;
  padding: 0 20px;
  display: none; /* hidden on desktop, shown on mobile via media query */
}

.faq-inline p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding-bottom: var(--space-md);
}

/* ---- Right: answer panel (desktop only) ---- */
.faq-panel {
  flex: 1;
  padding: 20px clamp(32px, 4vw, 56px);
  display: flex;
  align-items: flex-start;
}

.faq-panel-text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  max-width: 60ch;
  color: var(--text-secondary);
  animation: fade-answer 0.3s ease;
}

@keyframes fade-answer {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile: accordion ---- */
@media (max-width: 767px) {
  .faq-layout {
    flex-direction: column;
    min-height: unset;
  }

  .faq-list {
    flex: none;
    border-right: none;
  }

  .faq-panel {
    display: none; /* hidden on mobile */
  }

  .faq-inline {
    display: block; /* show inline answers on mobile */
  }

  .faq-item.is-active .faq-inline {
    max-height: 300px;
    padding-top: var(--space-sm);
  }

  .faq-btn {
    padding: 14px 16px;
  }

  .faq-inline {
    padding-inline: 16px;
  }
}

/* ============================================================
   SCROLL FADE-IN (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .burger-line,
  .mobile-menu,
  .mobile-nav-link {
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — burger appears */
@media (max-width: 1199px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-logo {
    text-align: center;
    padding: 0 var(--space-sm);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-height: 48px;
  }

  .site-logo {
    font-size: 20px;
  }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--bg-page);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-py) var(--container-pad);
}

/* ---- Period switcher ---- */
.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.stats-periods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.stats-period {
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.stats-period:hover { color: var(--text-primary); }

.stats-period[aria-selected="true"] {
  background: var(--accent-green);
  color: #000;
}

.stats-period:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.stats-updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Layout ---- */
.stats-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.stats-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.stats-heading {
  font-family: var(--font-name);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-green);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--text-secondary);
}

/* ---- Stat tiles ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  min-width: 0;
}

.stat-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-delta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-green);
  white-space: nowrap;
}

.stat-delta--down { color: var(--text-secondary); }

/* ---- Categories ---- */
.stats-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
}

.category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-share {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.category-hours {
  min-width: 48px;
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.category-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.category-fill {
  display: block;
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

.category--other .category-fill { background: rgba(255, 255, 255, 0.35); }
.category--other .category-name { color: var(--text-secondary); }

.category-empty {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Audience leaderboards ---- */
.leaderboards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard + .leaderboard {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.leaderboard-rank {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  text-align: center;
  color: var(--text-secondary);
}

.leaderboard-row:first-child .leaderboard-rank { color: var(--accent-green); }

.leaderboard-nick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard-nick-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Red dot: this viewer is in the live chat right now */
.live-dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(227, 32, 43, 0.2);
  cursor: help;
  animation: live-dot-pulse 1.8s ease-in-out infinite;
}

.live-dot[hidden] { display: none; }

.live-dot::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.live-dot:hover::after,
.live-dot:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.live-dot:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 3px; }

@keyframes live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(227, 32, 43, 0.2); }
  50%      { box-shadow: 0 0 0 5px rgba(227, 32, 43, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.leaderboard-value {
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.leaderboard-row--empty .leaderboard-nick { color: rgba(255, 255, 255, 0.3); }

/* ---- Top clips: same 3-column grid as the stat tiles ---- */
.clips-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.clip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
}

.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.clip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out), filter 0.3s ease;
}

.clip-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 55%);
}

.clip-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.clip-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.clip-duration,
.clip-views {
  position: absolute;
  z-index: 1;
  bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.clip-duration { right: 8px; }
.clip-views    { left: 8px; }

.clip-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.clip:hover .clip-thumb img,
.clip:focus-visible .clip-thumb img { transform: scale(1.06); filter: brightness(1.1); }
.clip:hover .clip-play,
.clip:focus-visible .clip-play { background: var(--accent-green); border-color: var(--accent-green); transform: scale(1.08); }
.clip:hover .clip-title,
.clip:focus-visible .clip-title { color: var(--accent-green); }
.clip:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 4px; border-radius: 4px; }

/* ---- Thanks ---- */
.stats-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

.stats-thanks p {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stats-heart {
  width: 16px;
  height: 16px;
  fill: var(--accent-green);
  filter: drop-shadow(0 0 6px rgba(255, 46, 156, 0.6));
  animation: heart-beat 1.6s ease-in-out infinite;
}

@keyframes heart-beat {
  0%, 60%, 100% { transform: scale(1); }
  20%           { transform: scale(1.25); }
  40%           { transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .stats-heart { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
  .stats-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 559px) {
  .stats-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .stat {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
  }

  .stat-value {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    font-size: 30px;
  }

  .clips-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .clip {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .clip-thumb {
    flex: 0 0 148px;
  }

  .clip-title {
    font-size: 14px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-content);
  padding-block: clamp(56px, 6vw, 80px) clamp(40px, 5vw, 56px);
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 40px);
}

/* ---- Social icons row ---- */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.footer-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  padding: 8px;
  color: var(--text-secondary);
  transition: color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  outline-offset: 4px;
}

.footer-icon-link:hover,
.footer-icon-link:focus-visible {
  color: var(--accent-green);
  transform: translateY(-3px);
}

.footer-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.footer-icon-label {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

/* ---- Contact ---- */
.footer-contact {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--text-secondary);
  text-align: center;
}

.footer-email {
  color: var(--accent-green);
  transition: opacity 0.2s;
}

.footer-email:hover {
  opacity: 0.75;
}

/* ---- Creator logo ---- */
.footer-creator {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.footer-creator:hover,
.footer-creator:focus-visible {
  opacity: 0.8;
  transform: scale(1.04);
}

.footer-creator-img {
  height: clamp(36px, 5vw, 56px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .footer-socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .footer-icon-label {
    font-size: 13px;
  }
}

