/* ===============================
   GLOBAL / RESET
   =============================== */


*{ box-sizing:border-box; }

html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;

  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(106,166,255,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(138,92,255,.18), transparent 55%),
    linear-gradient(180deg, #070b16 0%, #050814 60%, #040612 100%);

  color:#eef3ff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  overflow:hidden;
}

h1{ display:none; }
:root{
  --accent:#6aa6ff;
  --text:#eef3ff;
  --border:rgba(255,255,255,.12);

  /* Message Styling */
  --panel-bg:rgba(255,255,255,.03);
  --panel-border:rgba(255,255,255,.08);

  --bubble-bg:rgba(255,255,255,.04);
  --bot-bg:rgba(255,255,255,.035);
}

a{
  text-decoration:none;
  color:var(--accent);
}
a:hover{
  color:#eaffff;
}

#shoutbox-box .message img{
  display:inline-block;
  vertical-align:middle;
  height:22px;          /* Originalgröße */
  width:22px;
}



/* ===============================
   WRAPPER – KEIN FLEX!
   =============================== */

#wrapper{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  background:transparent;
} 

/* ===============================
   SHOUTBOX ROOT
   =============================== */
#shoutbox{
  height:100%;
}

#shoutbox-box-wrapper{
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
  width: 90%;
  margin: 0 auto;
}
#shoutbox-box-inner{
  display:flex;
  flex-direction:column;
}
#shoutbox-form{
  flex:0 0 auto;
  margin-top:5px;
}

/* ===============================
   MESSAGE LIST – MODERN PANEL
   =============================== */

#shoutbox-box{
  flex:1 1 auto;        /* nimmt verfügbaren Platz */
  min-height:200px;     /* Sicherheitsnetz */
height:56vh;
max-height:100%;
  overflow-y:auto;
  overflow-x:hidden;

  padding:10px;
  border-radius:14px;
  border:1px solid var(--panel-border);
  background:var(--panel-bg);

  font-size:13px;
}

/* Scrollbar */
#shoutbox-box::-webkit-scrollbar{ width:6px; }
#shoutbox-box::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:6px;
}

/* ===============================
   MESSAGE BUBBLES
   =============================== */

#shoutbox-box div{
  width:100%;
  margin:0 0 6px 0;
  padding:6px 10px 7px 10px;
  border-radius:12px;

  line-height:1.35;
  word-break:break-word;

  /* User highlight (wird per JS pro User gefärbt, Fallback = --accent) */
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--user-color, var(--accent)) 18%, transparent),
      var(--bubble-bg)
    );
}

/* Keine Trennlinien mehr */
#shoutbox-box div + div{
  border-top:0;
}

/* ===============================
   META: TIME + NAME
   =============================== */

#shoutbox-box span.time{
  display:inline-block;
  font-size:10.5px;
  color:#9bb0d1;
  font-weight:500;
  margin-right:6px;
}

#shoutbox-box span.name{
  display:inline-block;
  font-weight:700;
  font-size:12px;
  color:var(--user-color, var(--accent));
  margin-right:8px;
}

/* Text */
#shoutbox-box span.message{
  display:block;
  margin-top:2px;
  font-size:13px;
  padding-left:2px;
  color:var(--text);
  word-break:break-word;
}

/* ===============================
   BOT – DEZENT + EINZEILIG
   =============================== */

#shoutbox-box div.bot{
  background:var(--bot-bg);
  opacity:.65;
  font-style:italic;
}

/* Bot Text einzeilig */
#shoutbox-box div.bot span.message{
  display:inline;
  margin-top:0;
  padding-left:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Bot Meta noch leiser */
#shoutbox-box div.bot span.name,
#shoutbox-box div.bot span.time{
  opacity:.5;
} 

/* ===============================
   ON AIR BADGE
   =============================== */

.onair-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:6px;
  padding:2px 7px;

  border-radius:999px;
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.2px;

  background:#ff3c3c;
  color:#fff;

  box-shadow:
    0 0 0 2px rgba(0,0,0,.35),
    0 0 5px rgba(255,60,60,.55);
}


/* ===============================
   NAME ENTRY (LOGIN/NAME SET)
   =============================== */

#shoutbox-enter-name{
  margin:30px 0;
  text-align:center;
}

#shoutbox-name{
  width:220px;
  padding:10px 0;
  font-size:14px;
  text-align:center;
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  outline:none;
}

#shoutbox-name:focus{
  border-color:var(--accent);
  background:rgba(255,255,255,.06);
}

#shoutbox-name-submit{
  width:220px;
  margin-top:10px;
  padding:10px 0;
  border-radius:999px;
  border:1px solid rgba(106,166,255,.45);
  background:rgba(106,166,255,.16);
  color:#eaffff;
  font-weight:600;
  cursor:pointer;
}

#shoutbox-name-submit:hover{
  background:rgba(106,166,255,.24);
  box-shadow:0 0 20px rgba(106,166,255,.28);
}

/* ===============================
   INPUT BAR – STABIL / MODERN
   =============================== */

#shoutbox-message{
  width:calc(100% - 64px);
  height:42px;
  padding:9px 12px;
  resize:none;
  outline:none;

  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px 0 0 999px;

  display:inline-block;
  vertical-align:middle;
}

#shoutbox-message:focus{
  border-color:rgba(106,166,255,.7);
  background:rgba(255,255,255,.07);
  box-shadow:0 0 0 3px rgba(106,166,255,.12);
}

#shoutbox-submit{
  width:56px;
  height:42px;
  border-radius:0 999px 999px 0;

  border:1px solid rgba(106,166,255,.45);
  background:linear-gradient(
    135deg,
    rgba(106,166,255,.22),
    rgba(138,92,255,.20)
  );

  color:#eaffff;
  font-weight:700;
  cursor:pointer;

  display:inline-block;
  vertical-align:middle;
  margin-left:-1px; /* schließt optische Lücke */
}

#shoutbox-submit:hover{
  box-shadow:0 0 22px rgba(106,166,255,.28);
}

/* ===============================
   COUNTER / LOADER
   =============================== */

#shoutbox-message-counter{
  opacity:.08;
  color:var(--text);
}

#shoutbox-loader{
  display:none;
  opacity:.5;
}



/* ===== Meta-Zeile (Username + Time + Date + Badge) ===== */
#shoutbox-box .name,
#shoutbox-box .time,
#shoutbox-box .date,
#shoutbox-box .onair-badge{
  display:inline-block;
  vertical-align:middle;
  font-size:11px;
  margin-right:6px;
}

/* Username zuerst & stärker */
#shoutbox-box .name{
  font-weight:700;
  font-size:12px;
  color:var(--user-color);
}

/* Meta rechts ausrichten (Datum + Zeit) */
#shoutbox-box .date,
#shoutbox-box .time{
  float:right;
  margin-left:6px;
}

/* Reihenfolge korrigieren */
#shoutbox-box .time{ order:2; }
#shoutbox-box .date{ order:1; }

/* Nachricht immer darunter */
#shoutbox-box .message{
  display:inline-flex;
  align-items:center;   /* vertikal zentrieren */
  gap:4px;
  line-height:1.4;
  font-size:14px;
}

/* Smiley Bar */
.smiley-bar{
  display:flex;
  gap:6px;
  padding:6px 4px;
  margin-bottom:2px;
  overflow-x:auto;
}

.smiley-bar button{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:4px;
  cursor:pointer;
  flex:0 0 auto;
}

.smiley-bar button:hover{
  background:rgba(255,255,255,.14);
}

.smiley-bar img{
  width:20px;
  height:20px;
  display:block;
}

/* Mobile */
@media (max-width:600px){
  .smiley-bar img{
    width:24px;
    height:24px;
  }
}


/* ===============================
   SMILEY BAR – DRAG SCROLL
   =============================== */

.smiley-bar{
  display:flex;
  gap:6px;
  padding:6px 4px;
  overflow-x:auto;
  overflow-y:hidden;

  scrollbar-width:none;        /* Firefox */
  -ms-overflow-style:none;     /* IE / Edge alt */

  cursor:grab;
  user-select:none;
   
}

.smiley-bar:active{
  cursor:grabbing;
}

/* Chrome / Safari */
.smiley-bar::-webkit-scrollbar{
  display:none;
}

/* ===== HEADER LOGO ===== */
.site-header{
  display:flex;
  justify-content:center;
  padding-top:32px;    /* 👈 DAS ist der entscheidende Punkt */
  padding-bottom:20px;

 
}

/* =========================================================
   NOW PLAYING – FINAL / ESCALATION SAFE
   ========================================================= */

/* Wrapper unter dem Logo */
.chat-nowplaying{
	max-width:900px;   
  display:flex;
  align-items:center;
  gap:10px;

  max-width:720px;          /* HARTES LIMIT */
  width:100%;
  margin:8px auto 16px auto;

  padding:6px 14px;
  border-radius:999px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);

  font-size:12px;
  line-height:1.2;

  box-sizing:border-box;
  overflow:hidden;          /* nichts darf rauswachsen */
}

/* =========================================================
   DJ BILD – DARF NIE SKALIEREN
   ========================================================= */

.chat-nowplaying .np-dj{
  width:40px;
  height:40px;
  flex:0 0 40px;

  border-radius:50%;
  overflow:hidden;
}

.chat-nowplaying .np-dj img{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

/* =========================================================
   TEXTBEREICH (STATUS + TITEL)
   ========================================================= */

.chat-nowplaying .np-info{
  display:flex;
  flex-direction:column;
  gap:2px;

  min-width:0;              /* extrem wichtig bei Flex */
  flex:1 1 auto;
}

/* STREAM STATUS (z.B. LIVE / OFFLINE) */
#stream-status h1{
  margin:0;
  padding:0;

  font-size:12px;
  font-weight:600;
  letter-spacing:.3px;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
   STREAM TITLE / MARQUEE
   ========================================================= */

.stream-title-wrap{
  max-width:520px;          /* optisch begrenzen */
  width:100%;
  max-width:none;
}

.stream-title-prefix{
  font-size:12px;
  opacity:.75;
  white-space:nowrap;
}

/* Sichtfenster */
.stream-title-box{
  width:100%;
  min-width:0;
}

/* Titel selbst */
.stream-title{
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
}

/* Marquee – etwas flotter */
.stream-title.marquee .stream-title-inner{
  animation-duration:20s;   /* schneller, aber nicht hektisch */
}

/* =========================================================
   SICHERHEIT: KEINE GLOBALEN H1/H2/H3 EFFEKTE
   ========================================================= */

.chat-nowplaying h1,
.chat-nowplaying h2,
.chat-nowplaying h3{
  all:unset;
  font-size:12px;
  font-weight:600;
  display:block;
}

/* =========================================================
   STREAM TITLE – NO GAP MARQUEE
   ========================================================= */

.stream-title-box{
  position:relative;
  overflow:hidden;
  width:100%;
}

.stream-title{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  white-space:nowrap;
}

.stream-title-inner{
  display:inline-block;
  will-change:transform;
}

/* Animation nur bei .marquee */
.stream-title.marquee .stream-title-inner{
  animation:scrollTitle 16s linear infinite;
}

/* Hover pausiert */
.stream-title-box:hover .stream-title.marquee .stream-title-inner{
  animation-play-state:paused;
}

/* Start rechts außerhalb der BOX → Ende links außerhalb der BOX */
@keyframes scrollTitle{
  from{ transform:translateX(100%); }
  to{   transform:translateX(-100%); }
}



.site-header img{
  max-width:320px;
  width:70%;
  height:auto;
  filter:
    drop-shadow(0 0 25px rgba(30,230,255,.35))
    drop-shadow(0 0 45px rgba(138,92,255,.25));
}

/* Mobile */
@media(max-width:600px){
  .site-header img{
    max-width:220px;
  }
}
