/* ============================================
   BEARDFLIX MASKEN DESIGN v2
   Komplett dunkel + Hover Preview Animation
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

/* ---- CARD BASE OVERRIDES ---- */
.vid-card {
  border: 1px solid rgba(201,169,97,.2) !important;
  box-shadow: 0 0 8px rgba(0,0,0,.6) !important;
  background: linear-gradient(170deg, rgb(12,6,28) 0%, rgb(18,10,35) 50%, rgb(10,5,25) 100%) !important;
  overflow: hidden !important;
  cursor: pointer;
}
.vid-card:hover {
  border-color: rgba(201,169,97,.6) !important;
  box-shadow: 0 0 18px rgba(145,70,255,.3), 0 0 35px rgba(201,169,97,.15), inset 0 0 10px rgba(145,70,255,.1) !important;
  transform: scale(1.03);
  z-index: 10 !important;
}
.vid-card {
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease, border-color .4s ease !important;
}

/* ---- THUMBNAIL CONTAINER ---- */
.vid-card .vid-thumb {
  position: relative !important;
  overflow: hidden !important;
  background: rgb(8,4,18) !important;
}

/* ---- THUMBNAIL IMAGE: Zoom on Hover ---- */
.vid-card .vid-thumb img {
  transition: transform .6s cubic-bezier(.25,.8,.25,1), filter .4s ease !important;
  transform: scale(1);
  filter: brightness(0.3) saturate(0.2);
}
.vid-card:hover .vid-thumb img {
  transform: scale(1.15) !important;
  filter: brightness(1) saturate(1.1) !important;
}

/* ---- ANIMATED VIDEO PREVIEW (injected by JS) ---- */
.vid-card .vid-preview {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity .3s ease .15s;
  pointer-events: none;
}
.vid-card:hover .vid-preview.loaded {
  opacity: 1;
}

/* ---- CARD TRANSITION OVERLAY (Die Hauptmaske — komplett dunkel) ---- */
.vid-card .card-trans {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  border-radius: 5px 5px 0 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(145,70,255,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(201,169,97,.03) 0%, transparent 50%),
    linear-gradient(170deg, rgb(10,5,22) 0%, rgb(14,8,30) 30%, rgb(10,5,22) 70%, rgb(6,2,16) 100%);
  opacity: 0.96;
  transition: opacity .5s cubic-bezier(.25,.8,.25,1);
}
.vid-card:hover .card-trans {
  opacity: 0.08;
}

/* ---- FLASH / FILM CUT EFFECT ---- */
.vid-card .card-flash {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
  background: white;
  opacity: 0;
  border-radius: 5px 5px 0 0;
}
.vid-card .card-flash.fire {
  animation: filmCut .25s ease-out forwards;
}
@keyframes filmCut {
  0%   { opacity: 0.7; }
  15%  { opacity: 0; }
  30%  { opacity: 0.3; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ---- HORIZONTAL GOLD/PURPLE LINE ---- */
.vid-card .card-trans .ct-line {
  position: absolute;
  top: 50%; left: 0; right: 0; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.5) 20%, rgba(145,70,255,.6) 50%, rgba(201,169,97,.5) 80%, transparent);
  opacity: 0.7;
  transition: opacity .4s ease, transform .4s ease;
}
.vid-card:hover .card-trans .ct-line {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

/* ---- CENTER SWEEP GLOW ---- */
.vid-card .card-trans .ct-sweep {
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(145,70,255,.06) 30%, rgba(201,169,97,.08) 50%, rgba(145,70,255,.06) 70%, transparent);
  animation: ctSweepLoop 6s ease-in-out infinite;
}
@keyframes ctSweepLoop {
  0%, 60% { left: -60%; opacity: 0; }
  80% { opacity: 0.8; }
  100% { left: 160%; opacity: 0; }
}

/* ---- VIDEO NAME OVERLAY (Text-Animation auf Hover) ---- */
.vid-card .card-trans .ct-name {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  max-width: 90%;
  text-overflow: ellipsis;
  color: rgba(201,169,97,.85);
  text-shadow: 0 0 15px rgba(145,70,255,.4), 0 0 30px rgba(201,169,97,.2);
  transition: all .5s cubic-bezier(.25,.8,.25,1);
  opacity: 1;
}
.vid-card:hover .card-trans .ct-name {
  transform: translate(-50%, -180%) scale(0.8);
  opacity: 0;
  letter-spacing: 12px;
  filter: blur(4px);
}

/* ---- HOVER: "JETZT ANSEHEN" Label ---- */
.vid-card .card-trans .ct-watch {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%) translateY(15px);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,169,97,0);
  text-shadow: 0 0 10px rgba(201,169,97,.3);
  transition: all .5s cubic-bezier(.25,.8,.25,1) .1s;
  white-space: nowrap;
  pointer-events: none;
}
.vid-card:hover .card-trans .ct-watch {
  color: rgba(201,169,97,.9);
  transform: translateX(-50%) translateY(0);
  text-shadow: 0 0 15px rgba(201,169,97,.5), 0 0 30px rgba(145,70,255,.2);
}

/* ---- CORNER DOTS ---- */
.vid-card .card-dot {
  width: 3px !important; height: 3px !important;
  background: rgba(201,169,97,.3) !important;
  z-index: 8 !important;
  transition: background .4s ease, box-shadow .4s ease !important;
}
.vid-card:hover .card-dot {
  background: rgba(201,169,97,.9) !important;
  box-shadow: 0 0 6px rgba(201,169,97,.4) !important;
}

/* ---- SHINE SWEEP ---- */
.vid-card .card-shine {
  z-index: 7 !important;
}

/* ---- PROGRESS BAR ---- */
.vid-card .card-progress {
  z-index: 8 !important;
}

/* ---- PLAY ICON ---- */
.vid-card .vid-play-icon {
  z-index: 6 !important;
  background: linear-gradient(135deg, rgba(201,169,97,1), rgba(255,225,150,1) 30%, rgba(201,169,97,1) 55%, rgba(170,130,60,1)) !important;
  box-shadow: 0 0 20px rgba(201,169,97,.4) !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.vid-card:hover .vid-play-icon {
  transform: translate(-50%,-50%) scale(1.2) !important;
  box-shadow: 0 0 30px rgba(201,169,97,.6), 0 0 50px rgba(145,70,255,.2) !important;
}

/* ---- CARD INFO SECTION ---- */
.vid-card .vid-info {
  background: linear-gradient(180deg, rgba(10,5,25,1) 0%, rgba(12,6,28,1) 100%) !important;
  border-top: 1px solid rgba(201,169,97,.06);
}
.vid-card .vid-title {
  color: rgba(255,255,255,.85) !important;
  transition: color .3s ease !important;
}
.vid-card:hover .vid-title {
  color: rgba(201,169,97,.95) !important;
}
.vid-card .vid-meta {
  color: rgba(201,169,97,.4) !important;
}
.vid-card .vid-meta i {
  color: rgba(201,169,97,.3);
}

/* ============ BFX ORIGINAL TAG ============ */
.vid-card .bfx-tag {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 9;
  padding: 2px 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(200,35,45,.15), rgba(145,70,255,.1));
  border: 1px solid rgba(200,35,45,.25);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200,35,45,.8);
  pointer-events: none;
  transition: opacity .4s ease;
  animation: bfxTagPulse 4s ease-in-out infinite;
}
.vid-card:hover .bfx-tag {
  opacity: 0;
}
@keyframes bfxTagPulse {
  0%, 100% { border-color: rgba(200,35,45,.2); box-shadow: 0 0 6px rgba(200,35,45,.05); }
  50% { border-color: rgba(200,35,45,.35); box-shadow: 0 0 12px rgba(200,35,45,.1); }
}

/* ============ DURATION BADGE ============ */
.vid-card .vid-duration {
  z-index: 6 !important;
  transition: opacity .3s ease !important;
}

/* ============ SECTION HEADERS (Cinzel Gold) ============ */
.section-title h2 {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: rgba(201,169,97,.7) !important;
  text-shadow: 0 0 15px rgba(201,169,97,.12) !important;
}

/* Ornament line under section header */
.section-head {
  position: relative !important;
  padding-bottom: 12px !important;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.18), rgba(145,70,255,.1), rgba(201,169,97,.18), transparent);
  pointer-events: none;
}

/* Section links in gold */
.section-link {
  font-family: 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(201,169,97,.5) !important;
}
.section-link:hover {
  color: rgba(201,169,97,.8) !important;
}

/* ============ VIDEOS PAGE HEADER ============ */
.vph-left h1 {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  font-size: 1.4rem !important;
  background: linear-gradient(135deg, rgba(201,169,97,1) 0%, rgba(255,225,150,1) 35%, rgba(201,169,97,1) 60%, rgba(170,130,60,1) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 8px rgba(201,169,97,.2));
}
.vph-left h1 i {
  -webkit-text-fill-color: rgba(201,169,97,.7) !important;
}
.vph-left p {
  letter-spacing: 1px;
  color: rgba(255,255,255,.3) !important;
}

/* ============ PLAYLIST TABS & FILTERS ============ */
.playlist-tab, .filter {
  font-family: 'Cinzel', serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}
.playlist-tab.active {
  background: linear-gradient(135deg, rgba(200,35,45,.12), rgba(145,70,255,.08)) !important;
  border: 1px solid rgba(200,35,45,.2) !important;
  color: rgba(200,35,45,.8) !important;
}
.filter.active {
  background: linear-gradient(135deg, rgba(201,169,97,.9), rgba(170,130,60,.9)) !important;
  color: #000 !important;
  border-color: rgba(201,169,97,.5) !important;
}

/* ============ PLAYLIST SECTION HEADERS ============ */
.playlist-section-header h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: rgba(201,169,97,.6);
}

/* ============ FILM TEXTURES (Scanlines + Grain) ============ */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 99999; pointer-events: none;
  opacity: 0.018;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.05) 2px, rgba(255,255,255,.05) 4px);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 99998; pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ============ YOUTUBE PREVIEW PLAYER (Hover) ============ */
.vid-card .vid-preview-player {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  border-radius: 5px 5px 0 0;
}
.vid-card .vid-preview-player.active {
  opacity: 1;
}

/* ============ VIDEOS TOOLBAR ============ */
.videos-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.videos-toolbar .toolbar-left {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.videos-toolbar .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.videos-count {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(201,169,97,.4);
  white-space: nowrap;
}

/* Such- und Filter-Reihe */
.search-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-box-large {
  min-width: 220px !important;
  flex-shrink: 1;
}
.search-box-large input {
  font-size: 0.85rem !important;
  padding: 8px 12px 8px 34px !important;
}

/* Sort-Buttons (Neueste / Beliebt) */
.sort-group {
  display: flex;
  gap: 4px;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(201,169,97,.15);
  border-radius: 6px;
  background: rgba(201,169,97,.04);
  color: rgba(201,169,97,.5);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: rgba(201,169,97,.3);
  color: rgba(201,169,97,.8);
}
.sort-btn.active {
  background: linear-gradient(135deg, rgba(201,169,97,.15), rgba(170,130,60,.1)) !important;
  border-color: rgba(201,169,97,.4) !important;
  color: rgba(201,169,97,.95) !important;
  box-shadow: 0 0 8px rgba(201,169,97,.1);
}

/* Playlist tabs inline — horizontal scrollbar */
.videos-toolbar .playlist-tabs,
.playlist-tabs-wrapper .playlist-tabs {
  display: flex !important;
  gap: 6px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,169,97,.2) transparent;
  padding-bottom: 4px;
}
.videos-toolbar .playlist-tabs::-webkit-scrollbar,
.playlist-tabs-wrapper .playlist-tabs::-webkit-scrollbar {
  height: 3px;
}
.videos-toolbar .playlist-tabs::-webkit-scrollbar-thumb,
.playlist-tabs-wrapper .playlist-tabs::-webkit-scrollbar-thumb {
  background: rgba(201,169,97,.25);
  border-radius: 3px;
}
.videos-toolbar .playlist-tabs .playlist-tab,
.playlist-tabs-wrapper .playlist-tabs .playlist-tab {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ HERO ANIMATIONS ============ */

/* --- Typewriter für BEARDFLIX --- */
.typewriter-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.typewriter {
  display: inline;
  background: linear-gradient(135deg, rgba(201,169,97,1) 0%, rgba(255,225,150,1) 35%, rgba(201,169,97,1) 60%, rgba(170,130,60,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(201,169,97,.15));
}
.typewriter-cursor {
  display: inline-block;
  color: rgba(201,169,97,.8);
  font-weight: 100;
  animation: cursorBlink .7s step-end infinite;
  margin-left: 2px;
  font-size: 0.85em;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Flatter-Effekt für STREAMING PLATTFORM --- */
.badge-flutter {
  display: inline-block;
  animation: badgeFlutter 3s ease-in-out infinite;
  letter-spacing: 4px;
}
.badge-flutter {
  background: linear-gradient(90deg,
    rgba(201,169,97,.7) 0%,
    rgba(255,225,150,.95) 25%,
    rgba(201,169,97,.7) 50%,
    rgba(145,70,255,.6) 75%,
    rgba(201,169,97,.7) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: badgeFlutter 6s ease-in-out infinite, badgeShimmer 5s linear infinite;
}
@keyframes badgeFlutter {
  0%, 100% { letter-spacing: 4px; opacity: .8; }
  50% { letter-spacing: 4.6px; opacity: 1; }
}
@keyframes badgeShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Fade Animationen für Überschriften --- */
.anim-fade-down {
  animation: fadeDown 1s ease-out .3s both;
}
.anim-fade-up {
  animation: fadeUp 1s ease-out 1.8s both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero title base --- */
.hero .title-main {
  text-shadow: 0 0 40px rgba(201,169,97,.08);
}

/* --- Section Titles: Fade-in beim Scrollen --- */
.section-title h2 {
  animation: sectionFadeIn .6s ease-out both;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Videos Page Header Animation --- */
.vph-left h1 {
  animation: fadeDown .8s ease-out both;
}
.vph-left p {
  animation: fadeUp .8s ease-out .2s both;
}

/* --- Live Konnektivität verbessern --- */
.live-indicator.active {
  animation: livePulseStrong 1s ease-in-out infinite !important;
}
@keyframes livePulseStrong {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,50,50,.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,50,50,0); }
}
.live-badge-ctrl {
  animation: liveGlow 2s ease-in-out infinite;
}
@keyframes liveGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(255,50,50,.3); }
  50% { text-shadow: 0 0 15px rgba(255,50,50,.6), 0 0 30px rgba(255,50,50,.2); }
}
.live-tag {
  animation: liveTagPulse 1.5s ease-in-out infinite !important;
}
@keyframes liveTagPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,50,50,.3); }
  50% { box-shadow: 0 0 20px rgba(255,50,50,.5), 0 0 40px rgba(255,50,50,.15); }
}

/* ============================================
   HERO SCHILD-ORNAMENT
   ============================================ */
.hero-emblem {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  width: 400px; height: 400px;
  transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}
.hero-emblem.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.1);
}

.emblem-aura {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(145,70,255,.1) 0%,
    rgba(145,70,255,.03) 30%,
    rgba(200,35,45,.02) 50%,
    transparent 70%);
  animation: emblemAuraBreath 6s ease-in-out infinite alternate;
}
@keyframes emblemAuraBreath {
  0% { opacity: .3; transform: translate(-50%,-50%) scale(.85); }
  100% { opacity: .8; transform: translate(-50%,-50%) scale(1.15); }
}

.emblem-pulse {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(201,169,97,.15);
  opacity: 0;
  animation: emblemPulse var(--pd, 5s) var(--pdelay, 0s) ease-out infinite;
}
@keyframes emblemPulse {
  0% { width: 80px; height: 80px; opacity: .35; }
  100% { width: 450px; height: 450px; opacity: 0; }
}

.emblem-ring-outer {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  animation: emblemSpin 40s linear infinite;
}
.emblem-ring-inner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  animation: emblemSpin 30s linear infinite reverse;
}
@keyframes emblemSpin {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}

.emblem-shield {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  animation: emblemFloat 5s ease-in-out infinite;
}
@keyframes emblemFloat {
  0%, 100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-8px); }
}

.emblem-spark {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(201,169,97,.5);
  animation: emblemSparkDrift var(--skd, 4s) var(--skdelay, 0s) ease-in-out infinite;
}
@keyframes emblemSparkDrift {
  0% { opacity: 0; transform: translateY(0) scale(.3); }
  25% { opacity: var(--sko, .6); }
  75% { opacity: var(--sko, .6); }
  100% { opacity: 0; transform: translateY(var(--sky, -80px)) translateX(var(--skx, 20px)) scale(.1); }
}

.emblem-sweep {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.06), rgba(145,70,255,.04), transparent);
  animation: emblemSweep var(--swd, 9s) var(--swdelay, 0s) linear infinite;
  pointer-events: none;
}
@keyframes emblemSweep {
  0% { opacity: 0; transform: translateX(-100%); }
  15% { opacity: .6; }
  85% { opacity: .6; }
  100% { opacity: 0; transform: translateX(200%); }
}

@media (max-width: 768px) {
  .hero-emblem {
    transform: translate(-50%, -50%) scale(0.55);
  }
}

/* ============================================
   HERO BACKGROUND CLIP TRAILER
   ============================================ */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-trailer-container {
  position: absolute; inset: -60px;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
  overflow: hidden;
  pointer-events: none;
}
.hero-trailer-container.visible { opacity: 1; }
.hero-trailer-container iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 180%; height: 180%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* dunkles Overlay ueber dem Video fuer Lesbarkeit */
.hero-clip-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(8,8,13,0.55) 0%,
      rgba(8,8,13,0.35) 25%,
      rgba(8,8,13,0.4) 50%,
      rgba(8,8,13,0.7) 75%,
      rgba(8,8,13,0.95) 100%),
    linear-gradient(90deg,
      rgba(8,8,13,0.6) 0%,
      transparent 30%,
      transparent 70%,
      rgba(8,8,13,0.6) 100%);
  pointer-events: none;
}

/* Film-Grain-Effekt ueber das Video */
.hero-media::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Vignette-Effekt */
.hero-media::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(8,8,13,0.5) 100%);
  pointer-events: none;
}

/* --- Transition Overlay (Filmschnitt-Effekt) --- */
.hero-clip-transition {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: rgba(8,8,13,0.95);
}
.hero-clip-transition.active { opacity: 1; }

.hct-sweep {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,169,97,0.08) 30%,
    rgba(145,70,255,0.06) 50%,
    rgba(201,169,97,0.08) 70%,
    transparent 100%);
  transform: translateX(-100%);
  opacity: 0;
}
.hero-clip-transition.active .hct-sweep {
  animation: hctSweep 2s ease-in-out forwards;
}
@keyframes hctSweep {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.hct-text {
  font-family: 'Cinzel', serif;
  font-weight: 900; font-size: 28px;
  letter-spacing: 12px; text-transform: uppercase;
  background: linear-gradient(135deg,
    rgba(201,169,97,1) 0%,
    rgba(255,225,150,1) 30%,
    rgba(201,169,97,1) 55%,
    rgba(170,130,60,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.8));
}
.hero-clip-transition.active .hct-text {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.3s;
}

/* Ken-Burns-Effekt bei sichtbarem Trailer */
.hero-trailer-container.visible {
  animation: heroKenBurns 25s ease-in-out forwards;
}
@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* hero-bg soll hinter hero-media bleiben wenn Video aktiv */
.hero-bg { z-index: 1; transition: opacity 1.5s ease; }
.hero.clip-active .hero-bg { opacity: 0.3; }

/* ============================================
   COMMUNITY PAGE (DISCORD)
   ============================================ */
.community-page { padding-bottom: 2rem; }

.community-header {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.community-header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(88,101,242,.15) 0%, transparent 60%),
    linear-gradient(135deg, #08080d 0%, #0e0e1a 40%, #12101e 70%, #08080d 100%);
}
.community-header-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--bg-deep), transparent);
}
.community-header-content {
  position: relative; z-index: 2;
  text-align: center;
}
.community-icon {
  width: 70px; height: 70px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #5865F2;
  background: rgba(88,101,242,.1);
  border: 1px solid rgba(88,101,242,.25);
  border-radius: 50%;
  animation: discordPulse 3s ease-in-out infinite;
}
@keyframes discordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88,101,242,.3); }
  50% { box-shadow: 0 0 0 12px rgba(88,101,242,0); }
}
.community-header-content h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-100);
  margin-bottom: 0.4rem;
}
.community-header-content p {
  font-size: 0.9rem; color: var(--text-400);
}

.community-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.5rem 4%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Custom Discord Widget */
.dcw {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(88,101,242,.2);
  background: linear-gradient(180deg, rgba(30,31,46,.7) 0%, rgba(14,10,26,.8) 100%);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.dcw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: rgba(88,101,242,.06);
  border-bottom: 1px solid rgba(88,101,242,.12);
}
.dcw-server-info {
  display: flex; align-items: center; gap: 0.75rem;
}
.dcw-server-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(88,101,242,.12);
  border: 1px solid rgba(88,101,242,.25);
  border-radius: 50%;
  font-size: 1.2rem; color: #5865F2;
}
.dcw-server-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-100);
  letter-spacing: 1px;
}
.dcw-online {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-400);
  margin-top: 2px;
}
.dcw-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ba55c;
  display: inline-block;
  animation: dcwDotPulse 2s ease-in-out infinite;
}
@keyframes dcwDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,165,92,.4); }
  50% { box-shadow: 0 0 0 4px rgba(59,165,92,0); }
}
.dcw-join-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: #5865F2; color: #fff;
  font-size: 0.82rem; font-weight: 600;
  border: none; border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.dcw-join-btn:hover {
  background: #4752c4;
  box-shadow: 0 2px 12px rgba(88,101,242,.4);
  transform: translateY(-1px);
}

.dcw-channels {
  flex: 1; overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(88,101,242,.2) transparent;
}
.dcw-channels::-webkit-scrollbar { width: 6px; }
.dcw-channels::-webkit-scrollbar-track { background: transparent; }
.dcw-channels::-webkit-scrollbar-thumb { background: rgba(88,101,242,.2); border-radius: 3px; }

.dcw-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 3rem; color: var(--text-500); font-size: 0.85rem;
}

.dcw-category {
  margin-bottom: 0.3rem;
}
.dcw-cat-header {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-500);
  transition: color 0.2s;
  user-select: none;
}
.dcw-cat-header:hover { color: var(--text-300); }
.dcw-cat-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}
.dcw-category.collapsed .dcw-cat-arrow { transform: rotate(-90deg); }
.dcw-category.collapsed .dcw-cat-channels { display: none; }

.dcw-cat-channels { padding: 0 0.5rem; }

.dcw-channel {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  margin: 1px 0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-400);
  transition: all 0.15s ease;
  cursor: default;
}
.dcw-channel:hover {
  background: rgba(88,101,242,.06);
  color: var(--text-200);
}
.dcw-channel-icon {
  width: 20px; text-align: center;
  font-size: 0.8rem; color: var(--text-500);
  flex-shrink: 0;
}
.dcw-channel-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dcw-channel.voice .dcw-channel-icon { color: #3ba55c; }
.dcw-channel.voice.has-members { background: rgba(59,165,92,.04); }
.dcw-channel.announcement .dcw-channel-icon { color: #faa61a; }

.dcw-voice-count {
  font-size: 0.7rem; color: var(--text-500);
  background: rgba(59,165,92,.1);
  padding: 1px 6px; border-radius: 10px;
  flex-shrink: 0;
}

.dcw-voice-members {
  padding: 0.2rem 0 0.3rem 2.5rem;
}
.dcw-voice-member {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem; color: var(--text-400);
  border-radius: 4px;
  transition: background 0.15s;
}
.dcw-voice-member:hover { background: rgba(255,255,255,.03); }
.dcw-member-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(88,101,242,.15);
  object-fit: cover;
  flex-shrink: 0;
}
.dcw-member-avatar-placeholder {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(88,101,242,.2), rgba(145,70,255,.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-500);
  flex-shrink: 0;
}
.dcw-member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcw-member-status {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.dcw-member-status.online { background: #3ba55c; }
.dcw-member-status.idle { background: #faa61a; }
.dcw-member-status.dnd { background: #ed4245; }
.dcw-member-status.offline { background: #747f8d; }

.community-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
}
.community-card {
  background: linear-gradient(160deg, rgba(88,101,242,.06) 0%, rgba(10,6,20,.4) 100%);
  border: 1px solid rgba(88,101,242,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.community-card-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #5865F2;
  background: rgba(88,101,242,.1);
  border: 1px solid rgba(88,101,242,.2);
  border-radius: 50%;
  margin-bottom: 0.8rem;
}
.community-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-200);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.community-card p {
  font-size: 0.82rem; color: var(--text-400);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.btn-discord {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: #5865F2;
  color: #fff; font-weight: 600;
  font-size: 0.9rem;
  border: none; border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 4px 20px rgba(88,101,242,.4);
  transform: translateY(-2px);
}

.community-features {
  list-style: none; padding: 0; margin: 0;
}
.community-features li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.82rem; color: var(--text-300);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.community-features li:last-child { border-bottom: none; }
.community-features li i {
  width: 20px; text-align: center;
  color: rgba(88,101,242,.7);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .community-body {
    grid-template-columns: 1fr;
  }
  .dcw { min-height: 400px; }
}

/* ============================================
   BEARDFLIX MUSIK-PLAYER
   ============================================ */
.music-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: linear-gradient(180deg, rgba(10,6,20,0.95) 0%, rgba(8,4,16,0.98) 100%);
  border-top: 1px solid rgba(201,169,97,.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 1rem;
  height: 56px;
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.music-player.hidden { transform: translateY(100%); }
.music-player.playing {
  border-top-color: rgba(145,70,255,.4);
  box-shadow: 0 -4px 25px rgba(145,70,255,.15), 0 -2px 10px rgba(0,0,0,.5);
}

.mp-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.7rem;
  height: 100%;
}

.mp-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-400); font-size: 0.9rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.mp-btn:hover { color: var(--accent); background: rgba(201,169,97,.08); }

.mp-toggle {
  width: 40px; height: 40px; font-size: 1rem;
  background: rgba(201,169,97,.08);
  border: 1px solid rgba(201,169,97,.2);
}
.mp-toggle:hover {
  background: rgba(201,169,97,.15);
  border-color: rgba(201,169,97,.4);
  color: rgba(201,169,97,1);
}
.music-player.playing .mp-toggle {
  background: rgba(145,70,255,.12);
  border-color: rgba(145,70,255,.35);
  color: rgba(145,70,255,.9);
  animation: mpPulse 2s ease-in-out infinite;
}
@keyframes mpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(145,70,255,.2); }
  50% { box-shadow: 0 0 0 6px rgba(145,70,255,0); }
}

.mp-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.mp-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-300);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-player.playing .mp-title {
  color: rgba(201,169,97,.85);
}

.mp-progress-wrap {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.mp-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(145,70,255,.7), rgba(201,169,97,.8));
  border-radius: 2px;
  transition: width 0.3s linear;
  position: relative;
}
.mp-progress::after {
  content: '';
  position: absolute; right: -4px; top: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(201,169,97,.9);
  opacity: 0;
  transition: opacity 0.2s;
}
.mp-progress-wrap:hover .mp-progress::after { opacity: 1; }

.mp-time {
  font-size: 0.7rem; color: var(--text-500);
  font-variant-numeric: tabular-nums;
  min-width: 32px; text-align: center;
  flex-shrink: 0;
}

.mp-vol-wrap {
  display: flex; align-items: center; gap: 0.3rem;
  flex-shrink: 0;
}
.mp-vol {
  width: 70px; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.08);
  border-radius: 2px; cursor: pointer;
}
.mp-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(201,169,97,.8);
  border: none; cursor: pointer;
}
.mp-vol::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(201,169,97,.8);
  border: none; cursor: pointer;
}

.mp-shuffle-btn.active { color: rgba(145,70,255,.9); }

/* Footer muss Platz fuer den Player lassen */
.footer { margin-bottom: 56px; }

@media (max-width: 600px) {
  .mp-vol-wrap { display: none; }
  .mp-prev, .mp-shuffle-btn { display: none; }
  .mp-inner { gap: 0.4rem; }
}

/* ============================================
   RESTREAM PANEL
   ============================================ */
.restream-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.restream-header h3 { margin-bottom: 0; }

.btn-fetch-keys {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(201,169,97,.08);
  border: 1px solid rgba(201,169,97,.2);
  border-radius: 6px;
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-fetch-keys:hover {
  background: rgba(201,169,97,.15);
  border-color: rgba(201,169,97,.4);
  box-shadow: 0 2px 10px rgba(201,169,97,.15);
}
.btn-fetch-keys:disabled {
  opacity: 0.6; cursor: wait;
}

.restream-fetch-result {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.fetch-result-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.fetch-result-item:last-child { border-bottom: none; }
.fetch-result-item.success {
  background: rgba(59,165,92,.06);
  color: #3ba55c;
}
.fetch-result-item.fail {
  background: rgba(237,66,69,.06);
  color: #ed4245;
}

.restream-desc {
  font-size: 0.82rem; color: var(--text-400);
  margin-bottom: 1.2rem; line-height: 1.5;
}

.restream-targets {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.restream-loading {
  text-align: center; padding: 1.5rem;
  color: var(--text-500); font-size: 0.85rem;
}

.restream-target {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(20,16,36,.6) 0%, rgba(10,6,20,.4) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  transition: all 0.25s ease;
}
.restream-target:hover {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(25,20,42,.6) 0%, rgba(14,10,28,.4) 100%);
}
.restream-target.live { border-color: rgba(59,165,92,.3); }
.restream-target.error { border-color: rgba(237,66,69,.3); }

.rst-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.rst-info {
  flex: 1; min-width: 0;
}
.rst-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 1px; color: var(--text-200);
}
.rst-status {
  font-size: 0.75rem; color: var(--text-500);
  margin-top: 2px;
  display: flex; align-items: center; gap: 0.4rem;
}
.rst-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.rst-status-dot.offline { background: #747f8d; }
.rst-status-dot.live { background: #3ba55c; animation: dcwDotPulse 2s ease-in-out infinite; }
.rst-status-dot.connecting { background: #faa61a; animation: dcwDotPulse 1s ease-in-out infinite; }
.rst-status-dot.error { background: #ed4245; }
.rst-status-dot.not-configured { background: #4f545c; }

.rst-toggle {
  position: relative;
  width: 48px; height: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.rst-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-500);
  transition: all 0.3s ease;
}
.rst-toggle.active {
  background: rgba(59,165,92,.2);
  border-color: rgba(59,165,92,.5);
}
.rst-toggle.active::after {
  left: 25px;
  background: #3ba55c;
  box-shadow: 0 0 8px rgba(59,165,92,.4);
}
.rst-toggle.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rst-connect-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(0,242,234,.08);
  border: 1px solid rgba(0,242,234,.25);
  border-radius: 6px;
  color: #00F2EA; font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.rst-connect-btn:hover {
  background: rgba(0,242,234,.15);
  border-color: rgba(0,242,234,.4);
  box-shadow: 0 2px 10px rgba(0,242,234,.15);
}

.rst-status-dot.connected { background: #faa61a; }

.tiktok-code-input {
  flex: 1; min-width: 0;
  padding: 0.4rem 0.7rem;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text-200);
  font-size: 0.78rem;
  outline: none;
}
.tiktok-code-input:focus {
  border-color: rgba(0,242,234,.4);
  box-shadow: 0 0 0 2px rgba(0,242,234,.1);
}
.tiktok-connect-flow {
  background: rgba(0,242,234,.04) !important;
  color: var(--text-300) !important;
  flex-direction: column;
}

.rst-key-source {
  font-size: 0.65rem; color: var(--text-500);
  margin-top: 2px;
  display: flex; align-items: center; gap: 0.3rem;
}
.rst-error {
  font-size: 0.7rem; color: #ed4245;
  margin-top: 3px;
  max-width: 300px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.restream-hint {
  margin-top: 1rem;
  font-size: 0.75rem; color: var(--text-500);
  display: flex; align-items: flex-start; gap: 0.4rem;
  line-height: 1.5;
}
.restream-hint code {
  background: rgba(255,255,255,.06);
  padding: 1px 5px; border-radius: 3px;
  font-size: 0.72rem; color: var(--accent);
}

.restream-live-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 2px 8px;
  background: rgba(59,165,92,.15);
  border: 1px solid rgba(59,165,92,.3);
  border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #3ba55c;
  animation: dcwDotPulse 2s ease-in-out infinite;
}

/* Hero Restream Indicators */
.hero-restream-indicators {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.4rem;
  justify-content: center;
}
.hero-restream-badge {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  animation: restreamPulse 2s ease-in-out infinite;
}
.hero-restream-badge.twitch {
  background: rgba(145,70,255,.15); color: #9146FF;
  border: 1px solid rgba(145,70,255,.3);
}
.hero-restream-badge.youtube {
  background: rgba(255,0,0,.12); color: #FF0000;
  border: 1px solid rgba(255,0,0,.25);
}
.hero-restream-badge.tiktok {
  background: rgba(0,242,234,.1); color: #00F2EA;
  border: 1px solid rgba(0,242,234,.2);
}
@keyframes restreamPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== PROFILE: CONNECTION ITEMS ===== */
.connection-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .2s, border-color .2s;
}
.connection-item:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.connection-item + .connection-item { margin-top: 0.5rem; }

.connection-left {
  display: flex; align-items: center; gap: 0.85rem;
}
.connection-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: opacity .2s;
}
.connection-icon.twitch { background: rgba(145,70,255,.15); color: #9146FF; }
.connection-icon.google { background: rgba(255,0,0,.12); color: #FF0000; }
.connection-icon.tiktok { background: rgba(0,242,234,.1); color: #00F2EA; }
.connection-icon.not-linked { opacity: 0.4; }

.connection-info { display: flex; flex-direction: column; gap: 0.15rem; }
.connection-info strong { font-size: 0.95rem; color: #fff; }
.connection-info span { font-size: 0.8rem; color: rgba(255,255,255,.5); }

.connection-actions {
  display: flex; align-items: center; gap: 0.7rem;
}
.connection-status {
  font-size: 0.78rem; padding: 0.25rem 0.65rem;
  border-radius: 20px; white-space: nowrap;
}
.connection-status.connected {
  background: rgba(0,200,83,.12); color: #00c853;
  border: 1px solid rgba(0,200,83,.25);
}

.btn-connect {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; background: rgba(255,255,255,.06);
}
.btn-connect:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.btn-connect.twitch:hover { background: rgba(145,70,255,.2); border-color: rgba(145,70,255,.4); color: #c4a1ff; }
.btn-connect.google:hover { background: rgba(255,0,0,.15); border-color: rgba(255,0,0,.3); color: #ff6b6b; }
.btn-connect.tiktok:hover { background: rgba(0,242,234,.12); border-color: rgba(0,242,234,.3); color: #00F2EA; }

.btn-disconnect {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid rgba(255,80,80,.2);
  background: rgba(255,80,80,.08); color: rgba(255,80,80,.7);
  cursor: pointer; transition: all .2s;
}
.btn-disconnect:hover:not(.disabled) {
  background: rgba(255,80,80,.18); border-color: rgba(255,80,80,.4);
  color: #ff5050;
}
.btn-disconnect.disabled {
  opacity: 0.3; cursor: not-allowed;
  pointer-events: none;
}

/* ===== LIVE MODAL ===== */
.live-modal-content {
  position: relative; z-index: 1001;
  width: 92vw; max-width: 1400px;
  height: 85vh; max-height: 900px;
  background: #0d0d1a;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 25px 80px rgba(0,0,0,.8);
}
.live-modal-layout {
  display: flex; flex: 1; overflow: hidden;
}
.live-modal-main {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0;
}
.live-modal-main .player-wrapper {
  flex: 1; position: relative; background: #000;
  min-height: 0;
}
.live-modal-main .player-video {
  width: 100%; height: 100%; object-fit: contain;
}
.live-modal-main .stream-info-panel {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.live-modal-sidebar {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.live-modal-sidebar .chat-area {
  flex: 1; overflow-y: auto; padding: 0.7rem;
}
.live-modal-sidebar .sidebar-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.live-modal-sidebar .chat-input-area {
  padding: 0.6rem 0.8rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== MODAL WRAPPER + CLOSE BUTTON (ausserhalb an der Kante) ===== */
.modal-wrap {
  position: relative !important;
  z-index: 1 !important;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.modal.active .modal-wrap {
  transform: scale(1) translateY(0);
}
.modal-wrap .modal-content {
  position: relative !important;
  transform: none !important;
  width: 90vw !important;
  max-width: 960px !important;
}
.modal-wrap .modal-content.modal-sm {
  max-width: 440px !important;
}
.modal-wrap.live-wrap .live-modal-content {
  overflow: hidden;
}
.modal-wrap > .modal-close {
  position: absolute !important;
  top: -16px !important;
  right: -16px !important;
  z-index: 1100 !important;
  width: 38px !important;
  height: 38px !important;
  background: #1a1a2e !important;
  border: 2px solid rgba(145,70,255,.5) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all .3s ease !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.6) !important;
}
.modal-wrap > .modal-close:hover {
  background: var(--accent) !important;
  color: #000 !important;
  transform: rotate(90deg) scale(1.15) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(145,70,255,.4) !important;
}

@media (max-width: 900px) {
  .live-modal-content { width: 98vw; height: 95vh; }
  .live-modal-layout { flex-direction: column; }
  .live-modal-sidebar {
    width: 100%; height: 250px;
    border-left: none; border-top: 1px solid rgba(255,255,255,.08);
  }
}

/* Login-Modal muss ueber dem Live-Modal liegen */
#loginModal { z-index: 6000 !important; }

/* ===== CHAT SYSTEM ===== */
.sidebar-header-right {
  display: flex; align-items: center; gap: 0.6rem;
}
.chat-mod-btn {
  background: none; border: 1px solid rgba(0,200,83,.3);
  color: rgba(0,200,83,.7); border-radius: 6px;
  padding: 0.2rem 0.45rem; font-size: 0.72rem;
  cursor: pointer; transition: all .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.chat-mod-btn:hover { background: rgba(0,200,83,.15); color: #00c853; border-color: rgba(0,200,83,.6); }

.chat-mode-banner {
  background: rgba(145,70,255,.12); border-bottom: 1px solid rgba(145,70,255,.2);
  color: #b388ff; font-size: 0.7rem; text-align: center;
  padding: 0.25rem 0.5rem; font-weight: 600;
}

.chat-warn-banner {
  background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.3);
  border-radius: 6px; color: #ffc107; font-size: 0.75rem;
  padding: 0.5rem; margin: 0.3rem 0; text-align: center;
  animation: warnPulse 0.5s ease;
}
@keyframes warnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.mod-warn-form {
  display: flex; gap: 0.3rem; margin-top: 0.3rem;
}
.mod-warn-input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,193,7,.3);
  color: #fff; border-radius: 4px; padding: 0.3rem 0.5rem; font-size: 0.75rem;
  outline: none;
}
.mod-warn-input:focus { border-color: #ffc107; }
.mod-warn-send {
  background: rgba(255,193,7,.2); border: 1px solid rgba(255,193,7,.4);
  color: #ffc107; border-radius: 4px; padding: 0.3rem 0.5rem;
  cursor: pointer; font-size: 0.75rem;
}
.mod-warn-send:hover { background: rgba(255,193,7,.35); }

/* Mod-Panel */
.mod-panel-body { padding: 0.5rem; max-height: 60vh; overflow-y: auto; }
.mp-section { margin-bottom: 0.3rem; }
.mp-section-title {
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
}
.mp-section-title i { margin-right: 5px; }
.mp-divider { border-top: 1px solid rgba(255,255,255,.06); margin: 0.6rem 0; }
.mp-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; gap: 0.5rem;
}
.mp-label { font-size: 0.8rem; color: rgba(255,255,255,.7); font-weight: 600; }
.mp-slow-options { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.mp-opt {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); border-radius: 5px;
  padding: 0.25rem 0.55rem; font-size: 0.72rem; cursor: pointer;
  transition: all .2s ease; font-weight: 600;
}
.mp-opt:hover { background: rgba(255,255,255,.1); color: #fff; }
.mp-opt.active {
  background: rgba(145,70,255,.25); border-color: rgba(145,70,255,.5);
  color: #b388ff;
}
.mp-toggle-btn {
  width: 40px; height: 22px; border-radius: 11px; border: none;
  background: rgba(255,255,255,.12); cursor: pointer;
  position: relative; transition: background .25s ease;
  padding: 0;
}
.mp-toggle-btn.active { background: rgba(0,200,83,.4); }
.mp-toggle-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.6); position: absolute; top: 3px; left: 3px;
  transition: transform .25s ease, background .25s ease;
}
.mp-toggle-btn.active .mp-toggle-dot { transform: translateX(18px); background: #00c853; }
.mp-action-btn {
  width: 100%; padding: 0.5rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.6); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all .2s ease; text-align: left;
}
.mp-action-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.mp-action-btn.mp-clear { border-color: rgba(255,60,60,.2); color: rgba(255,100,100,.7); }
.mp-action-btn.mp-clear:hover { background: rgba(255,60,60,.12); color: #ff4444; }
.mp-action-btn i { margin-right: 6px; width: 14px; text-align: center; }
.mp-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.35rem 0.4rem; border-radius: 5px;
  background: rgba(255,255,255,.03); margin-bottom: 0.25rem;
}
.mp-user-name { font-size: 0.78rem; color: rgba(255,255,255,.7); font-weight: 600; }
.mp-timeout-remaining { font-size: 0.7rem; color: rgba(255,193,7,.7); font-weight: 600; }
.mp-unban-btn, .mp-remove-mod-btn {
  background: none; border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4); border-radius: 4px;
  padding: 0.15rem 0.4rem; font-size: 0.65rem; cursor: pointer;
  transition: all .2s ease;
}
.mp-unban-btn:hover { background: rgba(0,200,83,.15); color: #00c853; border-color: rgba(0,200,83,.4); }
.mp-remove-mod-btn:hover { background: rgba(255,60,60,.15); color: #ff4444; border-color: rgba(255,60,60,.4); }
.mp-empty { font-size: 0.72rem; color: rgba(255,255,255,.25); font-style: italic; }

/* Mod-Panel: Poll-Erstellung */
.mp-poll-options { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.4rem 0; }
.mp-add-opt-btn {
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.12);
  color: rgba(255,255,255,.4); border-radius: 5px;
  padding: 0.3rem; font-size: 0.72rem; cursor: pointer; width: 100%;
  transition: all .2s ease;
}
.mp-add-opt-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.mp-poll-start {
  background: rgba(0,200,83,.15) !important; border-color: rgba(0,200,83,.3) !important;
  color: #00c853 !important; margin-top: 0.4rem;
}
.mp-poll-start:hover { background: rgba(0,200,83,.25) !important; }
.mp-poll-end {
  background: rgba(255,60,60,.12) !important; border-color: rgba(255,60,60,.3) !important;
  color: rgba(255,100,100,.8) !important; margin-top: 0.4rem;
}
.mp-poll-end:hover { background: rgba(255,60,60,.2) !important; }
.mp-poll-info {
  background: rgba(145,70,255,.08); border: 1px solid rgba(145,70,255,.2);
  border-radius: 6px; padding: 0.5rem; font-size: 0.8rem; color: #b388ff;
}

/* Push Notify Button */
.push-notify-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(145,70,255,.2), rgba(99,44,175,.15));
  border: 1px solid rgba(145,70,255,.4); color: #b388ff;
  border-radius: 8px; padding: 0.6rem 1.2rem;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all .3s ease; margin-bottom: 0.8rem;
}
.push-notify-btn:hover {
  background: linear-gradient(135deg, rgba(145,70,255,.35), rgba(99,44,175,.25));
  border-color: rgba(145,70,255,.7); color: #d1c4e9;
  transform: translateY(-1px); box-shadow: 0 4px 15px rgba(145,70,255,.2);
}
.push-notify-btn .fa-bell { font-size: 1rem; }

/* Hero-Glocke */
.push-bell-hero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: transparent; border: none;
  color: rgba(255,255,255,.45); font-size: .75rem;
  cursor: pointer; transition: all .3s ease;
  margin-left: 6px; padding: 0; vertical-align: middle;
}
.push-bell-hero:hover {
  color: #fff; transform: scale(1.15);
}
.push-bell-hero.active {
  color: #ff1744;
  filter: drop-shadow(0 0 4px rgba(255,23,68,.5));
  animation: bellRing 3s ease infinite;
}
.push-bell-hero.active:hover {
  color: rgba(255,255,255,.5);
  filter: none; animation: none;
}
.push-notify-btn.subscribed {
  background: none; border: none; padding: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 0.8rem;
}
.push-notify-btn.subscribed:hover { transform: scale(1.15); box-shadow: none; background: none; }
.push-bell-active {
  font-size: 1.5rem; color: #ff1744;
  filter: drop-shadow(0 0 8px rgba(255,23,68,.5));
  animation: bellRing 2s ease infinite;
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  5% { transform: rotate(12deg); }
  10% { transform: rotate(-10deg); }
  15% { transform: rotate(8deg); }
  20% { transform: rotate(-5deg); }
  25% { transform: rotate(0); }
}

/* Chat: Poll-Widget */
.chat-poll-widget {
  background: linear-gradient(135deg, rgba(145,70,255,.1), rgba(99,44,175,.08));
  border-bottom: 1px solid rgba(145,70,255,.2);
  padding: 0.6rem; animation: pollSlideIn .3s ease;
}
@keyframes pollSlideIn {
  from { max-height: 0; opacity: 0; padding: 0 0.6rem; }
  to { max-height: 500px; opacity: 1; }
}
.cpw-header {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: #b388ff;
  margin-bottom: 0.5rem;
}
.cpw-header i { font-size: 0.75rem; }
.cpw-timer {
  margin-left: auto; font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,.4); background: rgba(0,0,0,.2);
  padding: 0.1rem 0.4rem; border-radius: 4px;
}
.cpw-options { display: flex; flex-direction: column; gap: 0.3rem; }
.cpw-opt {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 0.45rem 0.6rem;
  color: rgba(255,255,255,.8); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all .2s ease; overflow: hidden;
  text-align: left; width: 100%;
}
.cpw-opt:not([disabled]):hover {
  background: rgba(145,70,255,.15); border-color: rgba(145,70,255,.4);
  color: #fff;
}
.cpw-opt[disabled] { cursor: default; }
.cpw-opt.voted {
  border-color: rgba(145,70,255,.5); background: rgba(145,70,255,.12);
}
.cpw-opt-text { position: relative; z-index: 1; }
.cpw-opt-pct {
  position: relative; z-index: 1; font-size: 0.7rem;
  color: rgba(255,255,255,.4); min-width: 32px; text-align: right;
  opacity: 0; transition: opacity .3s ease;
}
.cpw-opt.show-result .cpw-opt-pct { opacity: 1; }
.cpw-opt-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(145,70,255,.15);
  border-radius: 6px; transition: width .5s ease;
}
.cpw-opt.voted .cpw-opt-bar { background: rgba(145,70,255,.25); }
.cpw-opt.winner { border-color: rgba(0,200,83,.4); }
.cpw-opt.winner .cpw-opt-bar { background: rgba(0,200,83,.15); }
.cpw-opt.winner .cpw-opt-text { color: #00c853; }
.cpw-footer {
  display: flex; justify-content: center;
  margin-top: 0.4rem; font-size: 0.68rem;
  color: rgba(255,255,255,.3);
}

.chat-online {
  font-size: 0.72rem; color: #00c853;
  display: flex; align-items: center; gap: 0.3rem;
}
.chat-online .fa-circle { font-size: 0.45rem; }
.sidebar-header {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
}
.chat-msg {
  padding: 0.5rem 0.65rem; border-radius: 8px;
  margin-bottom: 0.25rem; transition: background .15s;
}
.chat-msg:hover { background: rgba(255,255,255,.04); }
.chat-msg-header {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.chat-online-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.chat-online-dot.online { background: #00c853; box-shadow: 0 0 5px rgba(0,200,83,.5); }
.chat-online-dot.offline { background: rgba(255,255,255,.15); }
.chat-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.chat-avatar-letter {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; flex-shrink: 0;
}
.chat-user {
  font-weight: 600; font-size: 0.78rem;
  color: #e0c97f;
}
.chat-admin-badge {
  font-size: 0.55rem; font-weight: 700;
  background: linear-gradient(135deg, #e0c97f, #d4a843);
  color: #1a1a2e; padding: 0.1rem 0.35rem;
  border-radius: 3px; margin-left: 0.25rem;
  letter-spacing: 0.5px;
}
.chat-time {
  font-size: 0.65rem; color: rgba(255,255,255,.25);
  margin-left: auto;
}
.chat-delete {
  background: none; border: none; color: rgba(255,80,80,.3);
  cursor: pointer; font-size: 0.65rem; padding: 0.15rem;
  opacity: 0; transition: opacity .15s, color .15s;
}
.chat-msg:hover .chat-delete { opacity: 1; }
.chat-delete:hover { color: #ff5050; }
.chat-text {
  font-size: 0.82rem; color: rgba(255,255,255,.8);
  line-height: 1.4; word-break: break-word;
  padding-left: 24px;
}
.chat-area { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent; }
.chat-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 0.5rem;
  color: rgba(255,255,255,.2);
}
.chat-placeholder i { font-size: 2rem; }
.chat-placeholder p { font-size: 0.8rem; }

/* ===== KANALPUNKTE BAR ===== */
.chat-points-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.7rem;
  background: rgba(145,70,255,.08);
  border-bottom: 1px solid rgba(145,70,255,.15);
  font-size: 0.75rem; color: rgba(255,255,255,.85);
}
.cpb-left { display: flex; gap: 0.8rem; align-items: center; }
.cpb-right { display: flex; gap: 0.3rem; }
.cpb-item { display: flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.cpb-icon-points { color: #ffd700; }
.cpb-icon-coins { color: #f5a623; }
.cpb-icon-paid { color: #00c853; }
.cpb-paid { font-size: 0.72rem; opacity: 0.8; }
.cpb-btn {
  background: none; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); border-radius: 6px;
  padding: 0.2rem 0.4rem; font-size: 0.72rem;
  cursor: pointer; transition: all .25s ease;
}
.cpb-btn:hover { background: rgba(145,70,255,.2); color: #fff; border-color: rgba(145,70,255,.4); }

/* ===== TIER BADGES ===== */
.chat-tier-badge {
  font-size: 0.8rem; margin-right: 2px; vertical-align: middle;
}
.tier-0 { display: none; }

/* ===== CHAT INPUT HINT ===== */
.chat-input-hint {
  display: block; font-size: 0.6rem; color: rgba(255,255,255,.25);
  padding: 0.2rem 0.7rem 0; line-height: 1.2;
}
.chat-input-row {
  display: flex; gap: 0.4rem; padding: 0.3rem 0.5rem 0.5rem;
}
.chat-input-row .chat-input { flex: 1; }
.chat-input-area { border-top: 1px solid rgba(255,255,255,.08); }

/* ===== HIGHLIGHT MESSAGE ===== */
.chat-highlight {
  background: linear-gradient(135deg, rgba(145,70,255,.15), rgba(200,100,255,.08)) !important;
  border-left: 3px solid #9146ff !important;
  padding-left: 0.5rem !important;
  animation: highlightPulse 2s ease-out;
}
@keyframes highlightPulse {
  0% { box-shadow: 0 0 15px rgba(145,70,255,.4); }
  100% { box-shadow: none; }
}

/* ===== CHEER MESSAGE ===== */
.chat-cheer {
  background: linear-gradient(135deg, rgba(245,166,35,.12), rgba(255,215,0,.06)) !important;
  border-left: 3px solid #f5a623 !important;
  padding: 0 !important;
}
.chat-cheer-banner {
  padding: 0.5rem 0.7rem 0.2rem;
  text-align: center; font-weight: 700;
  animation: cheerBounce .6s ease;
}
.cheer-coins {
  font-size: 1.1rem; color: #ffd700;
  text-shadow: 0 0 8px rgba(255,215,0,.5);
}
.cheer-label { font-size: 0.7rem; color: rgba(255,215,0,.7); margin-left: 0.3rem; }
.cheer-mega .cheer-coins { font-size: 1.5rem; }
.cheer-mega { padding: 0.7rem; }
.cheer-big .cheer-coins { font-size: 1.25rem; }
@keyframes cheerBounce {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.chat-cheer .chat-msg-header { padding: 0 0.7rem 0.4rem; }

/* ===== SYSTEM / ERROR MESSAGES ===== */
.chat-system-msg {
  background: none !important; border: none !important;
  padding: 0.2rem 0.7rem !important;
}
.chat-system-text {
  font-size: 0.7rem; color: rgba(145,70,255,.7);
  text-align: center; font-style: italic;
}
.chat-error-msg { background: none !important; border: none !important; padding: 0.2rem 0.7rem !important; }
.chat-error-text {
  font-size: 0.7rem; color: rgba(255,80,80,.8);
  text-align: center;
}

/* ===== PUNKTE-SHOP MODAL ===== */
.shop-modal {
  max-height: 80vh !important; overflow-y: auto !important;
  background: #0d0d1a !important;
}
.shop-header {
  padding: 1.2rem 1.5rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.shop-header h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
  color: #fff; letter-spacing: 1px; margin: 0;
}
.shop-balance {
  display: flex; gap: 1.2rem; margin-top: 0.5rem;
  font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.shop-info {
  padding: 0.6rem 1.5rem; background: rgba(145,70,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.shop-info p { font-size: 0.72rem; color: rgba(255,255,255,.45); margin: 0; }
.shop-section {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.shop-section h3 { font-size: 0.95rem; color: #fff; margin: 0 0 0.7rem; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.shop-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 0.8rem; text-align: center;
  transition: all .25s ease;
}
.shop-card:hover { border-color: rgba(145,70,255,.4); background: rgba(145,70,255,.08); }
.shop-card-amount {
  font-size: 1.4rem; font-weight: 700; color: #f5a623;
  margin-bottom: 0.5rem;
}
.shop-card-amount i { font-size: 1rem; }
.reward-btn {
  background: linear-gradient(135deg, #9146ff, #7b2fff); color: #fff;
  border: none; border-radius: 8px; padding: 0.45rem 0.7rem;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: all .25s ease; width: 100%;
}
.reward-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(145,70,255,.4); }
.shop-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.shop-action-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.7rem; background: rgba(255,255,255,.03);
  border-radius: 8px; font-size: 0.8rem; color: rgba(255,255,255,.7);
}
.shop-cost { font-size: 0.72rem; color: #ffd700; font-weight: 600; }
.shop-tiers { display: flex; flex-direction: column; gap: 0.4rem; }
.shop-tier {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.7rem; background: rgba(255,255,255,.03);
  border-radius: 8px; font-size: 0.8rem; color: rgba(255,255,255,.7);
}
.tier-icon { font-size: 1.1rem; }
.tier-req { margin-left: auto; font-size: 0.7rem; color: rgba(255,255,255,.35); }

/* ===== LEADERBOARD ===== */
.leaderboard-list { padding: 0.8rem 1.2rem; }
.lb-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem; border-radius: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,.75);
  transition: background .2s;
}
.lb-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.lb-row:first-child { color: #ffd700; font-weight: 700; }
.lb-row:nth-child(2) { color: #c0c0c0; font-weight: 600; }
.lb-row:nth-child(3) { color: #cd7f32; font-weight: 600; }
.lb-me { background: rgba(145,70,255,.12) !important; border: 1px solid rgba(145,70,255,.25); }
.lb-rank { width: 2rem; font-weight: 700; }
.lb-tier { font-size: 1rem; width: 1.5rem; text-align: center; }
.lb-name { flex: 1; }
.lb-points { font-size: 0.75rem; color: rgba(255,255,255,.45); }

/* ===== CHAT ACTIONS POPUP ===== */
.chat-actions-popup {
  background: #111126;
  border-top: 1px solid rgba(145,70,255,.2);
  border-bottom: 1px solid rgba(145,70,255,.2);
  padding: 0; max-height: 0; overflow: hidden;
  opacity: 0; transition: max-height .3s ease, opacity .2s ease;
  pointer-events: none;
}
.chat-actions-popup.open {
  max-height: 300px; opacity: 1; pointer-events: all;
  padding: 0.6rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.cap-section { margin-bottom: 0.5rem; }
.cap-section:last-child { margin-bottom: 0; }
.cap-label { font-size: 0.68rem; color: rgba(255,255,255,.4); margin-bottom: 0.3rem; padding: 0 0.2rem; }
.cap-row { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.cap-btn {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); border-radius: 8px; padding: 0.3rem 0.6rem;
  font-size: 0.72rem; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.cap-btn:hover { background: rgba(145,70,255,.2); border-color: rgba(145,70,255,.4); color: #fff; }
.cap-cheer { color: #f5a623; border-color: rgba(245,166,35,.2); }
.cap-cheer:hover { background: rgba(245,166,35,.15); border-color: rgba(245,166,35,.4); }
.cap-highlight { width: 100%; text-align: center; color: #bf94ff; border-color: rgba(145,70,255,.2); }
.cap-highlight:hover { background: rgba(145,70,255,.15); }

.chat-actions-toggle {
  background: none; border: none; color: rgba(145,70,255,.7);
  font-size: 1.1rem; cursor: pointer; padding: 0.3rem;
  transition: all .2s; flex-shrink: 0;
}
.chat-actions-toggle:hover { color: #9146ff; transform: rotate(90deg); }
.live-modal-sidebar { position: relative; }

/* Sub-Badge im Chat */
.chat-sub-badge { font-size: 0.85rem; margin-right: 2px; vertical-align: middle; }

/* ===== ADMIN REWARDS FORM ===== */
.shop-admin-section { border-top: 2px solid rgba(145,70,255,.3) !important; }
.admin-reward-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.6rem;
}
.ar-input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 6px; padding: 0.4rem 0.6rem; font-size: 0.78rem;
}
.ar-input:focus { border-color: rgba(145,70,255,.5); outline: none; }
.admin-reward-form .reward-btn { grid-column: 1 / -1; }
.ar-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem; background: rgba(255,255,255,.03);
  border-radius: 6px; margin-bottom: 0.3rem; font-size: 0.8rem;
}
.ar-name { flex: 1; color: rgba(255,255,255,.8); }
.ar-cost { font-size: 0.72rem; color: rgba(255,255,255,.4); }
.ar-toggle, .ar-delete {
  background: none; border: none; cursor: pointer; font-size: 0.8rem; padding: 0.2rem;
}
.ar-delete { color: rgba(255,80,80,.6); }
.ar-delete:hover { color: #ff4444; }

/* ===== SUPPORT PAGE ===== */
.support-page { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.support-header { text-align: center; margin-bottom: 2.5rem; }
.support-header h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem;
  background: linear-gradient(135deg, #ff6b6b, #9146ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem;
}
.support-header p { color: rgba(255,255,255,.5); font-size: 0.95rem; }
.support-subs, .support-donate { margin-bottom: 2.5rem; }
.support-subs h2, .support-donate h2, .support-my-sub h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: #fff;
  margin-bottom: 1rem; letter-spacing: 1px;
}
.sub-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sub-tier-card {
  background: rgba(255,255,255,.03); border: 2px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 1.5rem; text-align: center;
  transition: all .3s ease;
}
.sub-tier-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.stc-badge { font-size: 2.5rem; margin-bottom: 0.5rem; }
.stc-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 1px; margin-bottom: 0.3rem; }
.stc-price { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.stc-price span { font-size: 0.8rem; font-weight: 400; color: rgba(255,255,255,.4); }
.stc-perks { font-size: 0.8rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; line-height: 1.5; }
.stc-btn {
  border: none; color: #fff; border-radius: 10px; padding: 0.7rem 1.5rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all .25s ease; width: 100%;
}
.stc-btn:hover { filter: brightness(1.2); box-shadow: 0 4px 20px rgba(0,0,0,.4); }

.donate-box {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 1.5rem;
}
.donate-presets { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.donate-preset {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 10px; padding: 0.6rem 1.2rem;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.donate-preset:hover { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.1); }
.donate-preset.active { background: rgba(255,107,107,.2); border-color: #ff6b6b; color: #ff6b6b; }
.donate-custom { margin-bottom: 1rem; }
.donate-custom label { font-size: 0.8rem; color: rgba(255,255,255,.5); margin-bottom: 0.3rem; display: block; }
.donate-input-row { display: flex; align-items: center; gap: 0.3rem; }
.donate-input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 1.1rem;
  width: 120px; text-align: center;
}
.donate-input:focus { border-color: rgba(255,107,107,.5); outline: none; }
.donate-currency { font-size: 1.2rem; color: rgba(255,255,255,.5); font-weight: 600; }
.donate-btn { font-size: 1rem !important; padding: 0.8rem 2rem !important; width: 100%; }

.my-sub-info {
  background: rgba(255,255,255,.04); border-radius: 12px; padding: 1rem;
  display: flex; align-items: center; gap: 1rem; font-size: 1rem;
}
.my-sub-badge { font-size: 1.2rem; font-weight: 700; }
.my-sub-expires { font-size: 0.8rem; color: rgba(255,255,255,.4); }

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 780px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
  color: rgba(255,255,255,.75); line-height: 1.75;
}
.legal-page h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem;
  color: #fff; letter-spacing: 1px; margin-bottom: 0.3rem;
}
.legal-updated { font-size: 0.8rem; color: rgba(255,255,255,.3); margin-bottom: 2rem; }
.legal-page h2 {
  font-family: 'Cinzel', serif; font-size: 1.1rem; color: #fff;
  margin: 2rem 0 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(145,70,255,.2);
}
.legal-page p { margin-bottom: 0.8rem; font-size: 0.9rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.legal-page a { color: #9146ff; text-decoration: underline; }
.legal-page a:hover { color: #bf94ff; }
.legal-page strong { color: rgba(255,255,255,.9); }

/* Footer Legal Links */
.footer-legal {
  display: flex; gap: 0.6rem; align-items: center;
  margin-top: 0.6rem; font-size: 0.75rem;
}
.footer-legal a {
  color: rgba(255,255,255,.35); text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(145,70,255,.8); }
.footer-legal span { color: rgba(255,255,255,.15); }

/* ===== MOD POPUP ===== */
.mod-popup {
  position: absolute; top: 100%; right: 0.5rem; z-index: 50;
  background: #1a1a2e; border: 1px solid rgba(145,70,255,.3);
  border-radius: 10px; padding: 0.3rem; min-width: 160px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  animation: modPopIn .15s ease;
}
@keyframes modPopIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mod-action {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  background: none; border: none; color: rgba(255,255,255,.7);
  padding: 0.4rem 0.6rem; font-size: 0.75rem; cursor: pointer;
  border-radius: 6px; transition: all .15s;
}
.mod-action:hover { background: rgba(145,70,255,.15); color: #fff; }
.mod-action .fa-ban { color: #ff4444; }
.mod-action .fa-clock { color: #f5a623; }
.mod-action .fa-shield-alt { color: #00c853; }
.mod-action .fa-undo { color: #4fc3f7; }
.mod-action .fa-user-times { color: #ff6b6b; }
.chat-mod-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,200,83,.15); color: #00c853;
  font-size: 0.6rem; padding: 1px 4px; border-radius: 3px;
  margin-left: 4px; vertical-align: middle;
}
.mod-divider { height: 1px; background: rgba(255,255,255,.08); margin: 0.2rem 0; }
.mod-give-form {
  display: flex; gap: 0.3rem; padding: 0.3rem 0.4rem; align-items: center;
}
.mod-give-input {
  flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px; padding: 0.3rem 0.5rem; color: #fff;
  font-size: 0.8rem; font-weight: 700; outline: none;
  -moz-appearance: textfield; width: 70px;
}
.mod-give-input::-webkit-inner-spin-button,
.mod-give-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mod-give-input:focus { border-color: rgba(145,70,255,.5); }
.mod-give-send {
  background: #9146ff; border: none; border-radius: 5px;
  color: #fff; padding: 0.3rem 0.5rem; cursor: pointer;
  font-size: 0.75rem; transition: all .15s;
}
.mod-give-send:hover { filter: brightness(1.2); }

/* ===== ADMIN PANEL ===== */
.admin-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0.8rem;
}
.admin-tab {
  flex: 1; background: none; border: none; color: rgba(255,255,255,.4);
  padding: 0.6rem 0.5rem; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.admin-tab:hover { color: rgba(255,255,255,.7); }
.admin-tab.active { color: #9146ff; border-bottom: 2px solid #9146ff; }

.admin-panel-tab { padding: 0.2rem 0; }

/* User-Liste */
.admin-user-search { margin-bottom: 0.6rem; }
.admin-user-list { max-height: 350px; overflow-y: auto; }
.au-row {
  padding: 0.5rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.au-row:hover { background: rgba(255,255,255,.03); }
.au-info { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.au-status {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.au-status.online { background: #00c853; box-shadow: 0 0 6px rgba(0,200,83,.5); }
.au-status.offline { background: rgba(255,255,255,.2); }
.au-name { font-weight: 600; font-size: 0.82rem; color: #fff; }
.au-tier { font-size: 0.68rem; color: rgba(255,255,255,.35); margin-left: auto; }
.au-stats {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.7rem; color: rgba(255,255,255,.45);
}
.au-stats i { margin-right: 2px; }

/* Give-Form */
.admin-give-form { display: flex; flex-direction: column; gap: 0.6rem; }
.ag-label { font-size: 0.75rem; color: rgba(255,255,255,.4); font-weight: 600; }
.ag-type-row { display: flex; gap: 0.4rem; }
.ag-type-btn {
  flex: 1; padding: 0.45rem; background: rgba(255,255,255,.04);
  border: 2px solid rgba(255,255,255,.08); border-radius: 8px;
  color: rgba(255,255,255,.5); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all .15s; text-align: center;
}
.ag-type-btn:hover { border-color: rgba(145,70,255,.3); }
.ag-type-btn.active { border-color: #9146ff; color: #9146ff; background: rgba(145,70,255,.08); }
.ag-send-btn {
  padding: 0.55rem; background: #9146ff; border: none; border-radius: 8px;
  color: #fff; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.ag-send-btn:hover { filter: brightness(1.2); }
.ag-send-btn:disabled { opacity: .5; }
.ag-result { font-size: 0.78rem; text-align: center; min-height: 1.2rem; }
.chat-user { cursor: default; }
.chat-msg[data-user-id] .chat-user { cursor: pointer; }

/* ===== CHAT SUPPORT POPUP (Abo & Spenden) ===== */
.cpb-heart { color: #ff4f8b; }
.cpb-heart:hover { color: #ff2d78; text-shadow: 0 0 8px rgba(255,79,139,.5); }

.chat-support-popup {
  background: #111126;
  border-top: 1px solid rgba(255,79,139,.2);
  border-bottom: 1px solid rgba(255,79,139,.2);
  max-height: 0; opacity: 0; overflow: hidden;
  pointer-events: none;
  transition: max-height .3s ease, opacity .2s ease;
}
.chat-support-popup.open {
  max-height: 380px; opacity: 1;
  overflow-y: auto; pointer-events: all;
}

.csp-tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,.08);
}
.csp-tab {
  flex: 1; background: none; border: none; color: rgba(255,255,255,.45);
  padding: 0.55rem 0.5rem; font-size: 0.78rem; cursor: pointer;
  transition: all .2s; font-weight: 600; display: flex;
  align-items: center; justify-content: center; gap: 0.35rem;
}
.csp-tab:hover { color: rgba(255,255,255,.8); }
.csp-tab.active {
  color: #ff4f8b;
  border-bottom: 2px solid #ff4f8b;
}
.csp-tab .fa-crown { color: #ffd700; }
.csp-tab .fa-gift { color: #ff4f8b; }

.csp-panel { padding: 0.6rem; }

/* --- Sub-Tiers --- */
.csp-tiers { display: flex; flex-direction: column; gap: 0.45rem; }
.csp-tier {
  background: rgba(255,255,255,.03);
  border-radius: 8px; padding: 0.5rem 0.6rem;
  transition: background .15s;
}
.csp-tier:hover { background: rgba(255,255,255,.06); }
.csp-tier-top {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.csp-tier-badge { font-size: 1rem; }
.csp-tier-name { font-weight: 700; font-size: 0.8rem; color: #fff; }
.csp-tier-price {
  margin-left: auto; font-size: 0.72rem;
  color: rgba(255,255,255,.5); font-weight: 600;
}
.csp-tier-perks {
  font-size: 0.68rem; color: rgba(255,255,255,.4);
  line-height: 1.4; margin-bottom: 0.35rem;
}
.csp-tier-btn {
  width: 100%; border: none; border-radius: 6px;
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.35rem 0; cursor: pointer;
  transition: filter .2s, transform .15s;
}
.csp-tier-btn:hover { filter: brightness(1.2); transform: scale(1.02); }

.csp-my-sub {
  margin-top: 0.4rem; padding: 0.4rem 0.5rem;
  background: rgba(255,215,0,.06); border-radius: 6px;
  font-size: 0.72rem; color: rgba(255,255,255,.7);
  text-align: center; font-weight: 600;
}

/* --- Spenden --- */
.csp-donate-presets {
  display: flex; gap: 0.3rem; margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.csp-dp {
  flex: 1; min-width: 42px; padding: 0.35rem 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px; color: rgba(255,255,255,.7);
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all .15s; text-align: center;
}
.csp-dp:hover { border-color: rgba(255,79,139,.3); color: #fff; }
.csp-dp.active {
  border-color: #ff4f8b; color: #ff4f8b;
  background: rgba(255,79,139,.1);
}

.csp-donate-custom {
  display: flex; align-items: center; gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.csp-donate-input {
  flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 0.4rem 0.5rem;
  color: #fff; font-size: 0.85rem; font-weight: 700;
  outline: none; -moz-appearance: textfield;
}
.csp-donate-input::-webkit-inner-spin-button,
.csp-donate-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.csp-donate-input:focus { border-color: rgba(255,79,139,.4); }
.csp-donate-custom span {
  font-size: 0.85rem; color: rgba(255,255,255,.5); font-weight: 700;
}

.csp-donate-btn {
  width: 100%; padding: 0.5rem 0;
  background: linear-gradient(135deg, #ff4f8b, #ff2d78);
  border: none; border-radius: 8px; color: #fff;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: filter .2s, transform .15s;
}
.csp-donate-btn:hover { filter: brightness(1.15); transform: scale(1.02); }

/* Coin-Pakete im Support-Popup */
.csp-tab .fa-coins { color: #f5a623; }
.csp-coins-grid {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.csp-coin-pack {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.55rem 0.7rem;
  background: rgba(245,166,35,.04); border: 1px solid rgba(245,166,35,.12);
  border-radius: 8px; cursor: pointer; transition: all .2s;
}
.csp-coin-pack:hover {
  border-color: rgba(245,166,35,.35); background: rgba(245,166,35,.08);
  transform: translateX(2px);
}
.csp-coin-pack.loading { opacity: .5; pointer-events: none; }
.csp-cp-coins {
  font-weight: 700; font-size: 0.82rem; color: #f5a623;
  display: flex; align-items: center; gap: 0.35rem;
}
.csp-cp-coins i { font-size: 0.9rem; }
.csp-cp-price {
  font-weight: 700; font-size: 0.78rem; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06); padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

/* ===== VOD SYSTEM ===== */
.vods-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.vods-header { text-align: center; margin-bottom: 2rem; }
.vods-header h1 { font-size: 1.8rem; font-weight: 800; color: #fff; }
.vods-header h1 i { color: #e53935; margin-right: .5rem; }
.vods-header p { color: rgba(255,255,255,.5); margin-top: .5rem; }
.vods-loading, .vods-empty {
  text-align: center; padding: 4rem 1rem; color: rgba(255,255,255,.4);
}
.vods-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.vods-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.vod-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s;
}
.vod-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.15); }
.vod-thumb {
  position: relative; cursor: pointer; aspect-ratio: 16/9; overflow: hidden;
  background: #000;
}
.vod-preview { width: 100%; height: 100%; object-fit: cover; }
.vod-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s;
}
.vod-thumb:hover .vod-play { opacity: 1; }
.vod-play i { font-size: 2.5rem; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.vod-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.8); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.vod-info { padding: 1rem; }
.vod-title-row { margin-bottom: .5rem; }
.vod-title-input {
  background: transparent; border: 1px solid transparent; color: #fff;
  font-size: .95rem; font-weight: 600; width: 100%; padding: 4px 6px;
  border-radius: 6px; transition: border-color .2s;
}
.vod-title-input:hover { border-color: rgba(255,255,255,.15); }
.vod-title-input:focus { border-color: #e53935; outline: none; background: rgba(255,255,255,.04); }
.vod-meta { display: flex; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.vod-actions { display: flex; gap: .5rem; }
.vod-btn {
  padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.6);
  cursor: pointer; transition: all .2s; font-size: .85rem;
}
.vod-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.vod-delete:hover { background: rgba(229,57,53,.15); color: #e53935; border-color: rgba(229,57,53,.3); }
.vod-download { text-decoration: none; display: inline-flex; align-items: center; }

/* VOD Player Overlay */
.vod-player-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.vod-player-wrap {
  position: relative; width: 90vw; max-width: 1200px; aspect-ratio: 16/9;
}
.vod-player-close {
  position: absolute; top: -40px; right: -5px; z-index: 10;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.vod-player-close:hover { background: rgba(229,57,53,.6); }
.vod-player-video {
  width: 100%; height: 100%; border-radius: 12px; background: #000;
}

/* ===== GÄSTEBUCH / PINNWAND ===== */
.gb-page { max-width: 750px; margin: 0 auto; padding: 2rem 1.5rem; }
.gb-header { text-align: center; margin-bottom: 2rem; }
.gb-header h1 { font-size: 1.8rem; font-weight: 800; color: #fff; }
.gb-header h1 i { color: #ff9800; margin-right: .5rem; }
.gb-header p { color: rgba(255,255,255,.5); margin-top: .5rem; }

.gb-write {
  display: flex; gap: 1rem; padding: 1.2rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; margin-bottom: 2rem;
}
.gb-write-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 1.1rem;
}
.gb-write-form { flex: 1; }
.gb-textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff; padding: .75rem 1rem; font-size: .9rem;
  resize: vertical; min-height: 70px; font-family: inherit;
  transition: border-color .2s;
}
.gb-textarea:focus { border-color: #ff9800; outline: none; }
.gb-textarea::placeholder { color: rgba(255,255,255,.3); }
.gb-write-footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: .6rem;
}
.gb-char-count { font-size: .75rem; color: rgba(255,255,255,.3); }
.gb-send-btn { padding: .5rem 1.2rem; font-size: .85rem; }

.gb-login-hint {
  text-align: center; padding: 1rem; color: rgba(255,255,255,.4); font-size: .9rem;
}
.gb-login-hint a { color: #ff9800; text-decoration: underline; }

.gb-empty {
  text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,.3);
}
.gb-empty i { font-size: 2.5rem; margin-bottom: .8rem; display: block; color: rgba(255,255,255,.15); }
.gb-loading { text-align: center; padding: 2rem; color: rgba(255,255,255,.4); }

.gb-entry {
  display: flex; gap: 1rem; padding: 1rem 1.2rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; margin-bottom: .8rem;
  transition: border-color .2s, background .2s;
}
.gb-entry:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.gb-entry-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.gb-entry-avatar-placeholder {
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
}
.gb-entry-body { flex: 1; min-width: 0; }
.gb-entry-head {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem;
}
.gb-entry-name { font-weight: 700; color: #fff; font-size: .9rem; }
.gb-entry-date { font-size: .75rem; color: rgba(255,255,255,.3); }
.gb-entry-delete {
  margin-left: auto; background: none; border: none; color: rgba(255,255,255,.2);
  cursor: pointer; font-size: .8rem; padding: 4px; transition: color .2s;
}
.gb-entry-delete:hover { color: #e53935; }
.gb-entry-msg {
  color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}

.gb-pagination {
  display: flex; justify-content: center; gap: .4rem; margin-top: 1.5rem;
}
.gb-page-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); cursor: pointer; font-weight: 600; font-size: .85rem;
  transition: all .2s;
}
.gb-page-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.gb-page-btn.active { background: rgba(255,152,0,.15); border-color: rgba(255,152,0,.4); color: #ff9800; }

/* ===== STREAM STATISTIKEN ===== */
.stats-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.stats-header { text-align: center; margin-bottom: 2rem; }
.stats-header h1 { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stats-header h1 i { color: #3f51b5; margin-right: .5rem; }
.stats-header p { color: rgba(255,255,255,.5); margin-top: .5rem; }
.stats-loading, .stats-empty { text-align: center; padding: 3rem; color: rgba(255,255,255,.4); }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 1.3rem; text-align: center;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.15); }
.stat-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.45); margin-top: .3rem; }
.stat-sub { font-size: .7rem; color: rgba(255,255,255,.3); margin-top: .2rem; }

.stats-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2rem;
}
.stats-chart-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 1.3rem;
}
.stats-chart-wide { grid-column: 1 / -1; }
.stats-chart-card h3 {
  font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.stats-chart-card h3 i { color: rgba(255,255,255,.4); margin-right: .4rem; }

.stats-bars { display: flex; flex-direction: column; gap: .5rem; }
.stats-bar-item { display: flex; align-items: center; gap: .6rem; }
.stats-bar-label { width: 50px; font-size: .8rem; color: rgba(255,255,255,.5); text-align: right; flex-shrink: 0; }
.stats-bar-track {
  flex: 1; height: 20px; background: rgba(255,255,255,.06);
  border-radius: 6px; overflow: hidden;
}
.stats-bar-fill {
  height: 100%; background: linear-gradient(90deg, #3f51b5, #7c4dff);
  border-radius: 6px; transition: width .5s ease;
}
.stats-bar-month { background: linear-gradient(90deg, #e53935, #ff6f00); }
.stats-bar-val { width: 80px; font-size: .75rem; color: rgba(255,255,255,.4); }

.stats-hours {
  display: flex; gap: 2px; align-items: flex-end; height: 80px; padding-top: 10px;
}
.stats-hour {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%;
}
.stats-hour-bar {
  width: 100%; background: linear-gradient(180deg, #7c4dff, #3f51b5);
  border-radius: 3px 3px 0 0; min-height: 2px; transition: height .5s ease;
}
.stats-hour-label { font-size: .55rem; color: rgba(255,255,255,.3); margin-top: 3px; }

.stats-history { margin-top: 1rem; }
.stats-history h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.stats-history h2 i { color: rgba(255,255,255,.4); margin-right: .4rem; }
.stats-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.stats-table thead th {
  text-align: left; padding: .7rem 1rem; color: rgba(255,255,255,.5);
  font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.stats-table tbody tr {
  transition: background .15s;
}
.stats-table tbody tr:hover { background: rgba(255,255,255,.04); }
.stats-table tbody td {
  padding: .6rem 1rem; color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
@media (max-width: 700px) {
  .stats-charts { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   MOBILE APP EXPERIENCE
   ============================================ */

@media (max-width: 768px) {
  /* --- Bottom Navigation --- */
  .navbar {
    position: fixed !important; bottom: 0 !important; top: auto !important;
    left: 0 !important; right: 0 !important;
    height: 56px !important; z-index: 9999 !important;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: none !important; border-radius: 0 !important;
    padding: 0 !important;
    background: rgba(8,8,12,.98) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0,0,0,.5) !important;
  }
  .navbar .nav-left {
    display: flex !important; width: 100% !important; height: 100% !important;
    gap: 0 !important; padding: 0 !important;
  }
  .navbar .logo { display: none !important; }
  .navbar .nav-right {
    position: fixed !important; top: auto !important; bottom: 64px !important;
    right: 10px !important; left: auto !important;
    display: flex !important; flex-direction: column !important;
    z-index: 10000; gap: 6px !important;
    height: auto !important; width: auto !important;
    padding: 0 !important; background: none !important; border: none !important;
    pointer-events: none;
  }
  .navbar .nav-right > * { pointer-events: auto; }
  .navbar .nav-right .stream-status { display: none !important; }
  .navbar .nav-right .social-btn { display: none !important; }
  .nav-links {
    display: flex !important; justify-content: space-around; align-items: stretch;
    width: 100% !important; height: 100% !important; gap: 0 !important; padding: 0 !important;
  }
  .nav-link {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: center !important;
    gap: 1px !important; padding: 4px 0 !important;
    flex: 1 !important; min-width: 0 !important;
    border-radius: 0 !important; background: none !important;
    font-size: 0.6rem !important; color: rgba(255,255,255,.4) !important;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .nav-link i { font-size: 1.1rem !important; line-height: 1; }
  .nav-link span {
    display: block !important; font-size: 0.58rem !important;
    line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 60px;
  }
  .nav-link:hover { background: none !important; }
  .nav-link.active {
    color: #e53935 !important; background: none !important;
  }
  .nav-link.active::before {
    content: ''; position: absolute; top: 0; left: 25%; right: 25%;
    height: 2px; background: #e53935; border-radius: 0 0 2px 2px;
  }
  .live-indicator { position: absolute !important; top: 4px !important; right: calc(50% - 16px) !important; }

  /* --- Body / Content --- */
  body { padding-bottom: 56px !important; padding-top: 0 !important; }
  .content { padding-top: 0 !important; min-height: calc(100vh - 56px) !important; }

  /* --- FAB Login / User Icon --- */
  #navUser[style*="display:none"], #navUser[style*="display: none"] {
    display: none !important;
  }
  #navUser:not([style*="display:none"]):not([style*="display: none"]) {
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important; padding: 0 !important;
    background: rgba(0,0,0,.7) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,.15) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
    display: flex !important; align-items: center; justify-content: center;
    overflow: hidden;
  }
  #navUser .nav-avatar {
    width: 100% !important; height: 100% !important;
    border-radius: 50% !important; object-fit: cover;
  }
  #navUser .nav-username { display: none !important; }
  #navLoginBtn {
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important; padding: 0 !important;
    background: rgba(229,57,53,.9) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,.2) !important;
    box-shadow: 0 2px 12px rgba(229,57,53,.4);
    font-size: 0 !important; color: #fff !important;
    display: flex !important; align-items: center; justify-content: center;
    overflow: hidden;
  }
  #navLoginBtn span { display: none !important; }
  #navLoginBtn i { margin: 0 !important; font-size: 1.1rem !important; }
  .nav-user-menu {
    position: absolute !important; bottom: 100% !important; top: auto !important;
    right: 0 !important; left: auto !important;
    min-width: 180px; z-index: 10001 !important;
    margin-bottom: 8px !important;
  }

  /* --- Hero --- */
  .hero { min-height: 70vh !important; }
  .hero-inner { padding: 0 1rem !important; max-width: 100% !important; }
  .hero-badge { font-size: 0.65rem !important; padding: 0.2rem 0.6rem !important; margin-bottom: 0.5rem !important; }
  .title-main { font-size: 2.2rem !important; letter-spacing: 1px !important; }
  .title-line { font-size: 0.85rem !important; }
  .hero-desc { font-size: 0.85rem !important; margin-bottom: 1rem !important; }
  .hero-buttons {
    flex-direction: column !important; gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-buttons .btn {
    width: 100% !important; justify-content: center !important;
    padding: 0.7rem 1rem !important; font-size: 0.85rem !important;
  }
  .hero-stream-card {
    padding: 0.6rem 0.8rem !important; gap: 0.2rem 0.6rem !important;
    font-size: 0.75rem !important; width: 100% !important;
  }
  .hero-emblem { transform: translate(-50%, -50%) scale(0.35) !important; opacity: 0.3 !important; }
  .hero-restream-indicators { gap: 0.3rem !important; }
  .stream-card-lastlive { font-size: 0.65rem !important; }

  /* --- Sections --- */
  .section { padding: 1rem 4% !important; }
  .section-head { flex-direction: column; gap: 0.4rem; }
  .section-title { font-size: 1rem !important; }
  .live-card { min-height: 160px !important; }

  /* --- Video Grid / Scroll --- */
  .vid-scroll { gap: 0.6rem !important; }
  .vid-card { flex: 0 0 180px !important; }
  .videos-page-header { padding: 1rem 4% !important; flex-direction: column !important; gap: 0.5rem !important; }
  .videos-grid {
    padding: 0 4% 1rem !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 0.6rem !important;
  }
  .playlist-tabs-wrapper { padding: 0 4% !important; }
  .playlist-tab { font-size: 0.7rem !important; padding: 0.4rem 0.6rem !important; }
  .playlist-preview { flex-direction: column !important; }
  .playlist-preview-thumb { width: 100% !important; height: auto !important; }

  /* --- Community --- */
  .community-page { padding: 0 !important; }
  .community-header { padding: 1.5rem 1rem !important; }
  .community-header h1 { font-size: 1.3rem !important; }
  .community-body { padding: 0.8rem !important; flex-direction: column !important; }
  .community-sidebar { margin-top: 0.8rem; }

  /* --- Support --- */
  .support-page { padding: 1rem 4% !important; }
  .support-header h1 { font-size: 1.2rem !important; }
  .sub-tiers { grid-template-columns: 1fr !important; gap: 0.8rem !important; }
  .donate-presets { flex-wrap: wrap; gap: 0.3rem !important; }
  .donate-preset { flex: 1; min-width: 45px; font-size: 0.8rem !important; padding: 0.5rem !important; }

  /* --- Gästebuch --- */
  .gb-page { padding: 1rem 4% !important; }
  .gb-header h1 { font-size: 1.2rem !important; }
  .gb-write { flex-direction: column; padding: 0.8rem !important; gap: 0.5rem; }
  .gb-write-avatar { width: 32px; height: 32px; align-self: flex-start; }
  .gb-textarea { font-size: 0.85rem !important; min-height: 55px; }
  .gb-entry { padding: 0.7rem !important; gap: 0.6rem; }
  .gb-entry-msg { font-size: 0.82rem !important; }

  /* --- Stats --- */
  .stats-page { padding: 1rem 4% !important; }
  .stats-header h1 { font-size: 1.2rem !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .stat-card { padding: 0.7rem !important; }
  .stat-value { font-size: 1.1rem !important; }
  .stat-icon { font-size: 1.1rem !important; }
  .stats-charts { grid-template-columns: 1fr !important; gap: 0.6rem !important; }
  .stats-table { font-size: 0.75rem !important; }
  .stats-table th, .stats-table td { padding: 0.4rem 0.5rem !important; }

  /* --- VODs --- */
  .vods-page { padding: 1rem 4% !important; }
  .vods-header h1 { font-size: 1.2rem !important; }
  .vods-list { grid-template-columns: 1fr !important; }
  .vod-info { padding: 0.7rem !important; }

  /* --- Profile --- */
  .profile-page { padding: 0 !important; }
  .profile-banner { min-height: 180px !important; padding: 1rem !important; }
  .profile-name { font-size: 1.3rem !important; }
  .profile-socials { flex-wrap: wrap; gap: 0.4rem !important; }
  .profile-social-btn { font-size: 0.75rem !important; padding: 0.4rem 0.8rem !important; }

  /* --- Live Modal --- */
  .live-modal-content {
    width: 100vw !important; height: 100vh !important;
    border-radius: 0 !important; margin: 0 !important;
    max-height: 100vh !important;
  }
  .live-modal-layout { flex-direction: column !important; height: 100vh !important; }
  .live-modal-player { min-height: 25vh !important; max-height: 35vh; flex-shrink: 0; }
  .live-modal-sidebar {
    width: 100% !important; flex: 1 !important; height: auto !important;
    border-left: none !important; border-top: 1px solid rgba(255,255,255,.08);
    overflow-y: auto !important;
  }
  .modal-wrap > .modal-close {
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    width: 36px !important; height: 36px !important; font-size: 1rem !important;
    z-index: 10000 !important;
    background: rgba(0,0,0,.7) !important;
    border: 2px solid rgba(255,255,255,.3) !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }

  /* --- Push Bell Mobile --- */
  .push-bell-hero {
    width: 36px !important; height: 36px !important;
    font-size: 1rem !important;
    min-width: 36px; min-height: 36px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,.2);
  }
  .push-notify-btn {
    min-height: 44px !important;
    touch-action: manipulation;
  }

  /* --- Video Modal --- */
  .video-modal-content {
    width: 100vw !important; max-width: 100vw !important;
    border-radius: 0 !important;
  }

  /* --- Offline Banner --- */
  .offline-banner-content { padding: 0.8rem !important; }
  .offline-avatar { width: 50px !important; height: 50px !important; }
  .offline-name { font-size: 1.1rem !important; }
  .offline-msg { font-size: 0.75rem !important; }

  /* --- Chat --- */
  .sidebar-header { padding: 0.5rem 0.7rem !important; }
  .sidebar-header h3 { font-size: 0.8rem !important; }
  .chat-input-row { padding: 0.4rem 0.5rem !important; }
  .chat-input { font-size: 0.82rem !important; padding: 0.45rem 0.7rem !important; }
  .chat-send-btn { width: 32px !important; height: 32px !important; }
  .chat-msg { padding: 0.3rem 0.6rem !important; font-size: 0.78rem !important; }

  /* --- Footer --- */
  .footer { padding: 1.5rem 4% 70px !important; }
  .footer-brand .logo-text { font-size: 1.3rem !important; }
  .footer-socials { gap: 0.6rem !important; }
  .footer-socials a { width: 34px !important; height: 34px !important; font-size: 0.85rem !important; }
  .music-player {
    flex-wrap: wrap; gap: 0.4rem !important;
    padding: 0.6rem !important; margin-bottom: 0.5rem;
  }
  .mp-info { max-width: 100px; }
  .mp-title { font-size: 0.7rem !important; }
  .mp-controls { gap: 0.3rem !important; }
  .mp-vol-wrap { display: none !important; }
}

/* --- Extra small screens --- */
@media (max-width: 380px) {
  .title-main { font-size: 1.8rem !important; }
  .hero { min-height: 60vh !important; }
  .nav-link span { display: none !important; }
  .nav-link i { font-size: 1.3rem !important; }
  .navbar { height: 48px !important; }
  body { padding-bottom: 48px !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* --- PWA Standalone / Fullscreen --- */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { padding-top: env(safe-area-inset-top, 0px); }
  .navbar {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 768px) and ((display-mode: standalone) or (display-mode: fullscreen)) {
  .navbar .nav-right {
    padding-top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    padding-right: calc(10px + env(safe-area-inset-right, 0px)) !important;
  }
}

/* --- Touch --- */
@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
  .btn, .nav-link, .chat-send-btn, .gb-send-btn, .vod-btn,
  .donate-preset, .playlist-tab, .gb-page-btn {
    min-height: 44px;
  }
  ::-webkit-scrollbar { display: none; }
  body { -webkit-overflow-scrolling: touch; }
}
