:root {
  --bg0: #000000;
  --ink: #ffffff;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 255, 255, 0.22);
  --panel: linear-gradient(180deg, rgba(8, 8, 8, 0.72), rgba(0, 0, 0, 0.88));
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --live: #ff3b3b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #000;
}

body.home {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Custom noir cursor + soft smoke (desktop only via JS class) */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}
#cursor-smoke {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}
#cursor-smoke.is-on {
  opacity: 1;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 22px rgba(220, 220, 230, 0.25);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.cursor-dot.is-on,
.cursor-ring.is-on {
  opacity: 1;
}
.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.12);
}
.cursor-dot.is-hover {
  background: #fff;
}
.cursor-ring.is-click {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background: rgba(255, 255, 255, 0.1);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  #cursor-smoke {
    display: none !important;
  }
}

.hero-visual {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.28) 68%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 28%, rgba(0, 0, 0, 0.75) 100%),
    #000 url("/assets/jxuoy-noir-lg.jpg") right center / cover no-repeat;
  image-rendering: auto;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.04);
  transform-origin: 65% center;
}

.film-grain,
.vignette,
.scroll-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.film-grain {
  z-index: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.vignette {
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.7) 100%);
}
.scroll-veil {
  z-index: 0;
  background: #000;
  opacity: 0;
}

#particles {
  pointer-events: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 0 !important;
  display: block !important;
  margin: 0 !important;
  opacity: 0.12;
  transition: opacity 0.2s ease;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

body.is-live .live-badge {
  box-shadow: 0 0 28px rgba(255, 59, 59, 0.35);
}
body.is-live .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 20% 30%, rgba(255, 40, 40, 0.12), transparent 70%);
}

.top,
main,
.foot,
.hero,
.panel,
.legal {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  animation: fadeDown 0.7s ease both;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  text-decoration: none;
}
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
nav a:hover { color: #fff; }
.nav-live {
  color: #fff !important;
  background: var(--live);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  font-weight: 700 !important;
  animation: pulseLive 1.6s ease-in-out infinite;
}

.live-banner {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(640px, calc(100vw - 1.5rem));
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 0, 0, 0.88);
  border: 1px solid rgba(255, 59, 59, 0.55);
  box-shadow: 0 10px 40px rgba(255, 40, 40, 0.22), 0 8px 28px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.live-banner[hidden] { display: none !important; }
.live-banner.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.live-banner-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
}
.live-banner-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8e8e8;
  font-weight: 400;
}
.live-banner-cta {
  flex: none;
  font-weight: 700;
  color: #fff;
}
.live-banner-close {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.live-banner-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
  max-width: 40rem;
  animation: rise 0.9s ease both;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.18);
  border: 1px solid rgba(255, 59, 59, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
/* display:inline-flex überschreibt sonst HTML [hidden] */
.live-badge[hidden],
.offline-badge[hidden],
.nav-live[hidden],
.live-meta[hidden],
.offline-meta[hidden] {
  display: none !important;
}
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #a8a8a8;
}
.offline-sep { opacity: 0.4; }
.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: pulseLive 1.2s ease-in-out infinite;
}
.brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 14vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.18);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 18ch;
}
.lede, .lede-inline {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}
.live-meta {
  margin-top: 1rem;
  color: #cfcfcf;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { background: #e8e8e8; }
.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.panel {
  margin: 0 clamp(1rem, 4vw, 3rem) 2rem;
  padding: clamp(1.75rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #cfcfcf;
  font-weight: 600;
}
.panel h2 {
  margin: 0.45rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
}
.muted { color: var(--muted); }
.tiny { font-size: 0.85rem; }
.tiny code { color: #fff; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.social-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.social-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
}
.social-icon svg { width: 100%; height: 100%; }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.clip-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.clip-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
}
.clip-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}
.clip-thumb {
  width: 100%;
  height: 100%;
  background: #111 center / cover no-repeat;
  transition: transform 0.45s ease;
}
.clip-card:hover .clip-thumb {
  transform: scale(1.05);
}
.clip-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.clip-card:hover .clip-play {
  opacity: 1;
}
.clip-play svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.clip-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 1.05rem;
}
.clip-body strong {
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.clip-cta {
  margin-top: 0.15rem;
  color: #e8e8e8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.clip-card:hover .clip-cta {
  opacity: 1;
}
.offline-meta {
  margin-top: 1.1rem;
  font-size: 0.9rem;
}
.offline-meta a {
  color: #cfcfcf;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.offline-meta a:hover {
  color: #fff;
  border-color: #fff;
}

.schedule-list { display: grid; gap: 0.65rem; }
.schedule-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.25rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}
.schedule-row em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.discord-panel .btn { margin-top: 1.1rem; }
.discord-meta {
  margin: 0.75rem 0 0;
  color: #bdbdbd;
  font-size: 0.9rem;
}
.discord-meta[hidden] { display: none !important; }

body.modal-open { overflow: hidden; }
.clip-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.clip-modal[hidden] { display: none !important; }
.clip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}
.clip-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.clip-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.clip-modal-bar strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.clip-ext {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.clip-ext:hover { color: #fff; }
.clip-modal-x {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.clip-modal-x:hover { background: rgba(255, 255, 255, 0.12); }
.clip-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.clip-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-404 .legal {
  text-align: left;
  margin-top: 12vh;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }

.page .legal {
  max-width: 44rem;
  margin: 1.5rem auto 2rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.legal h1 {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
}
.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.05rem;
}
.legal p { color: var(--muted); line-height: 1.65; }
.legal a { color: #fff; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 960px) {
  .clip-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }
}

@media (max-width: 800px) {
  .hero-visual {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.78) 48%, rgba(0, 0, 0, 0.94) 100%),
      #000 url("/assets/jxuoy-noir-lg.jpg") center top / cover no-repeat;
    transform-origin: center top;
  }
  .hero { max-width: none; }
  .film-grain { opacity: 0.1; }
  .schedule-row { grid-template-columns: 1fr; }
  .schedule-row em { grid-column: 1; }
}

@media (max-width: 640px) {
  .top { align-items: flex-start; flex-direction: column; }
  .brand-mark { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film-grain { opacity: 0.08; }
  .hero-visual { transform: none !important; }
}
