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

html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: none;
}

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

.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: none;
}
@media (pointer: coarse) {
  .app { cursor: auto; }
}

canvas.pattern-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.65) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 20%, transparent 75%, rgba(0,0,0,0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

.ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.ui > * { pointer-events: auto; }

/* Top bar — only brand mark, no location */
.top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.brand-mark {
  display: block;
  height: 44px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.brand-mark:hover { transform: scale(1.05); }
.brand-mark img {
  height: 100%;
  width: auto;
  display: block;
  filter: invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.7));
  user-select: none;
  -webkit-user-drag: none;
}

/* Center hero — wordmark floats over background, 100% transparent */
.hero {
  align-self: center;
  justify-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 4vh, 40px);
}

.wordmark {
  width: min(72vw, 720px);
  max-height: 42vh;
  /* PNG is now truly transparent (white bg removed).
     invert(1) turns the black glyphs into white glyphs.
     drop-shadow adds a subtle glow so it stays readable over any pattern color. */
  filter: invert(1)
          drop-shadow(0 4px 24px rgba(0,0,0,0.85))
          drop-shadow(0 0 40px rgba(0,0,0,0.6));
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.tagline {
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  max-width: 90vw;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.tagline .sep {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.4;
}

/* Bottom row */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.socials a {
  position: relative;
  padding: 8px 2px;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}
.socials a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, #ff2fbf, #7a3aff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.socials a:hover { color: #fff; }
.socials a:hover::after { transform: scaleX(1); }

/* Radio player */
.radio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 260px;
  max-width: 100%;
}
.radio .play-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2fbf, #7a3aff);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.radio .play-btn:hover { transform: scale(1.05); }
.radio .play-btn:active { transform: scale(0.95); }
.radio .play-btn svg { width: 14px; height: 14px; fill: #000; }
.radio .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.radio .label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.radio .status {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio .eq { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.radio .eq span {
  width: 2px;
  background: #ff2fbf;
  border-radius: 1px;
  animation: eq 0.9s ease-in-out infinite;
}
.radio .eq span:nth-child(1) { animation-delay: 0s; }
.radio .eq span:nth-child(2) { animation-delay: 0.2s; }
.radio .eq span:nth-child(3) { animation-delay: 0.4s; }
.radio .eq span:nth-child(4) { animation-delay: 0.15s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}
.radio .skip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.radio .skip:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}
.cursor.hover { width: 60px; height: 60px; border-color: #ff2fbf; }
@media (pointer: coarse) { .cursor { display: none; } }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader .l-text {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  animation: fade 1.4s ease-in-out infinite;
}
@keyframes fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Mobile */
@media (max-width: 600px) {
  .brand-mark { height: 36px; }
  .bottom {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .socials {
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .radio { width: 100%; min-width: 0; }
  .wordmark { width: 88vw; }
  .tagline { font-size: 10px; letter-spacing: 0.24em; }
}

/* YouTube iframe hidden */
.yt-hidden {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
