:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8a8a8a;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===================== INTRO ===================== */
#intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.6s ease;
}

#intro.hide {
  opacity: 0;
  pointer-events: none;
}

#noise-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
}

.intro-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.intro-logo {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 2rem;
  position: relative;
  color: #fff;
  animation: flicker 4s infinite;
  cursor: pointer;
  user-select: none;
}

/* Piscada leve em fade ao passar o mouse ou clicar no nome */
.intro-logo.fade-blink {
  animation: fade-blink 0.7s ease;
}

@keyframes fade-blink {
  0%   { opacity: 1; }
  45%  { opacity: 0.25; }
  100% { opacity: 1; }
}

.intro-logo::before,
.intro-logo::after {
  content: attr(data-text);
  position: absolute;
  left: 0; right: 0; top: 0;
  opacity: 0.7;
}

.intro-logo::before {
  color: #fff;
  transform: translate(2px, 0);
  animation: glitch-1 2.5s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}

.intro-logo::after {
  color: #fff;
  transform: translate(-2px, 0);
  animation: glitch-2 3.1s infinite linear alternate-reverse;
  clip-path: inset(55% 0 0 0);
}

@keyframes glitch-1 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3px, 1px); }
  40%  { transform: translate(3px, -1px); }
  60%  { transform: translate(-2px, 0); }
  80%  { transform: translate(2px, 1px); }
  100% { transform: translate(0, 0); }
}

@keyframes glitch-2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(2px, -1px); }
  50%  { transform: translate(-3px, 1px); }
  75%  { transform: translate(1px, -2px); }
  100% { transform: translate(0, 0); }
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  95% { opacity: 0.2; }
  96% { opacity: 1; }
}

.enter-link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.1rem;
}

.enter-link:hover { color: var(--dim); border-color: var(--dim); }

/* ===================== TOPBAR ===================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.brand-dot { color: var(--dim); }

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.nav-links a:hover { color: var(--dim); }

/* ===================== CHANNEL / HERO ===================== */
.channel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  background: #000;
}

/* Clipes verticais (gravados no celular) nao devem ser esticados/cortados
   com "cover" num player horizontal -- isso corta cabecas/corpos das
   pessoas. "contain" mostra o clipe inteiro, com faixas pretas na lateral
   (a propria cor de fundo do player), em vez de zoom + crop agressivo. */
.hero-video.is-portrait {
  object-fit: contain;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.18;
  animation: grain-shift 0.4s steps(2) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-2%, 2%); }
}

.hero-next {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.35);
  color: var(--fg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--fg);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  position: absolute;
  top: 50%;
  left: 1.5rem;
  transform: translateY(-50%) scaleX(-1);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.35);
  color: var(--fg);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-prev:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--fg);
  transform: translateY(-50%) scaleX(-1) scale(1.08);
}

.channel-overlay {
  position: absolute;
  /* Largura fixa (nao depende mais do texto do clipe) -- o "ON AIR" longo
     quebra em linha dentro dela. Isso e o que permite animar so por
     "transform" abaixo: a largura nunca muda, entao a distancia a
     percorrer (calculada em JS) tambem nunca precisa recalcular no meio
     de uma transicao. */
  left: 1.5rem;
  bottom: 4.5rem;
  width: min(320px, calc(100vw - 3rem));
  z-index: 2;
  /* O JS aplica "transform: translateX(Npx)" com um valor em pixels ja
     calculado (nunca via custom property dentro de calc() -- CSS custom
     properties nao registradas nao sao interpoladas de forma confiavel
     pelo navegador em transicoes, o que causava o movimento "travar" no
     meio do caminho). Deslizar usando SO "transform" (nunca "left" junto)
     tambem evita mistura de layout (thread principal) com compositor
     (GPU), a outra causa do dessincronismo. */
  transform: translateX(0);
  will-change: transform;
  /* Duracao total do deslize. O JS troca o numero/texto exatamente na
     metade dela (OVERLAY_SWAP_MS) para que o fade-in do texto termine no
     mesmissimo instante em que a posicao chega ao lugar final -- nunca
     depois. Se mudar aqui, mude a metade correspondente no app.js. */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.channel-number {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  transition: opacity 0.3s ease-in-out;
}

#on-air-label {
  transition: opacity 0.3s ease-in-out;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2e2e;
  animation: pulse 1.4s infinite;
}

.hero-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-audio-toggle:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--fg);
}

.hero-audio-icon {
  font-size: 0.85rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ===================== SECTIONS ===================== */
.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin: 0 0 1.5rem;
  padding: 0 1.5rem;
}

.about, .events, .gallery, .booking, .cta {
  padding: 4rem 0;
  border-top: 1px solid #222;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  padding: 0 1.5rem;
}

.poster-item {
  aspect-ratio: 4 / 5;
  background: #050505;
  border: 1px solid #222;
}

.poster-item img {
  width: 100%;
  height: 100%;
  /* "contain" garante que o poster inteiro fica visivel, sem cortar texto
     nas bordas -- diferente do .gallery-item, que usa "cover". */
  object-fit: contain;
  filter: grayscale(0.15);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.poster-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  padding: 0 1.5rem;
}

.gallery-item {
  padding: 0;
  border: none;
  background: none;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0);
}

.about-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 1.5rem;
}

.about-video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
  border: 1px solid #222;
  background: #000;
  cursor: pointer;
}

.about-video-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.about-wrap .about-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid #222;
}

.about-wrap .about-photo img {
  filter: grayscale(0.1) contrast(1.05);
}

@media (max-width: 640px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }
}

.about-bio-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 0 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.about-bio {
  flex: 1 1 380px;
  max-width: 620px;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-bio p {
  margin: 0 0 1.25rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-teaser {
  flex: 0 0 500px;
  width: 500px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.about-teaser .about-video {
  width: 100%;
}

.about-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-sound-toggle:hover {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.about-sound-icon {
  font-size: 0.75rem;
}

.booking-intro {
  padding: 0 1.5rem;
  margin: 0 0 2.5rem;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 520px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: #222;
  border: 1px solid #222;
  margin: 0 1.5rem;
}

.booking-region {
  position: relative;
  background: #050505;
  padding: 3rem 2rem 2.5rem;
  overflow: hidden;
  transition: background 0.25s ease;
}

.booking-region:hover {
  background: #0c0c0c;
}

.booking-region-index {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  user-select: none;
}

.booking-region h3 {
  position: relative;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.booking-contact {
  margin-bottom: 1rem;
}
.booking-contact:last-child { margin-bottom: 0; }

.booking-name {
  display: block;
  font-size: 0.75rem;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  max-width: 100%;
  word-break: break-all;
}

.booking-btn:hover {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.booking-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cta {
  text-align: center;
}

.cta-text {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: -0.5rem;
}

.cta-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-social-link:hover {
  background: var(--fg);
  color: #000;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid #222;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #222;
  padding: 0.6rem 0;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  animation: ticker 22s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.footer-links { display: flex; gap: 1rem; }
.footer-links a:hover { color: var(--fg); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#audio-toggle {
  background: none;
  border: 1px solid #333;
  color: var(--fg);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}
#audio-toggle:hover { border-color: var(--fg); }

.instagram-link {
  display: inline-flex;
  align-items: center;
  color: var(--dim);
  transition: color 0.2s ease;
}
.instagram-link:hover { color: var(--fg); }

.instagram-link--nav {
  gap: 0.5rem;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.instagram-link--nav:hover {
  color: var(--dim);
  border-color: var(--dim);
}

.header-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.spotify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.spotify-link:hover {
  background: var(--fg);
  color: #000;
}

.spotify-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.soundcloud-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border: 1px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.soundcloud-link:hover {
  background: var(--fg);
  color: #000;
}

.soundcloud-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
}

/* ===================== CONSENT / LGPD ===================== */

.lgpd-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: rgba(10,10,10,0.96);
  border: 1px solid #333;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(4px);
}

.lgpd-banner[hidden] { display: none; }

.lgpd-banner p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--dim);
}

.lgpd-banner a {
  color: var(--fg);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.lgpd-banner a:hover { color: var(--dim); border-color: var(--dim); }

.lgpd-accept {
  flex-shrink: 0;
  background: var(--fg);
  color: #000;
  border: 1px solid var(--fg);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.1rem;
}
.lgpd-accept:hover { background: transparent; color: var(--fg); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .topbar {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    padding: 0.85rem 1rem;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #222;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 16rem; }
  .nav-links a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid #1c1c1c;
  }
  .instagram-link--nav span { display: none; }
  .instagram-link--nav {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .channel-overlay {
    left: 1rem;
    bottom: 6rem;
    width: min(260px, calc(100vw - 2rem));
  }
  .lgpd-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .lgpd-accept { width: 100%; }
  .about-teaser { flex-basis: 100%; width: 100%; max-width: 320px; margin: 0 auto; }
}
