:root {
  --accent: #ef4444;
  --text: #f8fafc;
  --muted: #cbd5e1;

  --card: rgba(0, 0, 0, .66);
  --card2: rgba(0, 0, 0, .55);
  --line: rgba(255, 255, 255, .12);

  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --r: 18px;
  --wrap: 1100px;

  
  --bg-color: #0b1220;
  --bg-image: none;
  
  --bg-pos: center 140px;
  
  --bg-size: contain;
  
  --bg-repeat: no-repeat;
  

  
  --bg-dim: .12;
  
  --vignette: .18;
  
}

[hidden]{display:none !important;}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  
  padding-top: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--text);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(0, 0, 0, .08), rgba(0, 0, 0, var(--vignette))),
    radial-gradient(60% 50% at 20% 10%, rgba(239, 68, 68, .10), transparent 60%),
    radial-gradient(50% 40% at 85% 15%, rgba(239, 68, 68, .07), transparent 55%);
  pointer-events: none;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background-color: var(--bg-color);
  background-image: var(--bg-image);

  
  background-repeat: var(--bg-repeat, no-repeat);
  background-size: 100% 100%;
  background-position: var(--bg-pos, center 0px);

  
  filter: none;
  transform: translateZ(0);
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, var(--bg-dim));
  z-index: -1;
  pointer-events: none;
}

@supports (-webkit-touch-callout:none) {
  .bg {
    position: absolute;
  }

  body::before {
    position: absolute;
  }

  html,
  body {
    min-height: 100%;
    background-color: var(--bg-color);
  }
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width:860px) {
  .wrap {
    width: calc(100% - 24px);
  }
}

.top {
  
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
}

.top__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 16px;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);

  
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .18));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);

  
  
-webkit-backdrop-filter: blur(4px);

  
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  contain: paint;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(239, 68, 68, .9);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: .92;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--line);
  background: rgba(0, 0, 0, .25);
}

.navToggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  cursor: pointer;
}

.navToggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  opacity: .9;
  border-radius: 999px;
}

@media (max-width:860px) {
  .top__inner {
    padding: 12px 12px;
    
    overflow: visible;
    
    contain: none;
    transform: none;
  }

  .navToggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 10px 16px;

    background: linear-gradient(180deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .72));
    border-bottom: 1px solid var(--line);

    flex-direction: column;
    gap: 8px;
  }

  .top.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .22);
    border-color: rgba(255, 255, 255, .06);
  }
}

h1,
h2,
h3 {
  margin: 0 0 10px;
}

.small {
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main {
  padding: 22px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width:900px) {
  .grid.cols-2 {
    grid-template-columns: 1.2fr .8fr;
  }
}

.hero {
  display: grid;
  gap: 14px;
}

.hero__title {
  font-size: 34px;
  line-height: 1.1;
}

.hero__sub {
  font-size: 16px;
  opacity: .92;
}

.btn {
  appearance: none;
  border: 1px solid rgba(239, 68, 68, .45);
  background: rgba(239, 68, 68, .18);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.btn:hover {
  background: rgba(239, 68, 68, .26);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.iconbtn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
}

.iconbtn:hover {
  background: rgba(0, 0, 0, .35);
}

.is-disabled {
  opacity: .55;
  filter: grayscale(.2);
  cursor: not-allowed;
}

.statuspill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, .6);
}

.dot.off {
  background: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, .6);
}

a {
  color: #fecaca;
}

a:hover {
  color: #fff;
}

.playerPanel {
  width: 100%;
  margin: 12px 0 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.playerPanel iframe {
  width: 100% !important;
  display: block;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  height: 126px;
  min-height: 126px;
}

@media (max-width:520px) {
  .playerPanel iframe {
    height: 120px;
    min-height: 120px;
  }
}

.playerbar {
  padding: 0 0 14px;
  display: flex;
  justify-content: center;
}

.playerbar iframe {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.layout {
  display: grid;
  gap: 16px;
}

.content {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 16px;
}

@media (min-width:980px) {
  .layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .content {
    grid-column: 1 / 2;
  }

  .sidebar {
    grid-column: 2 / 3;
  }

  
  .playerPanel {
    grid-column: 1 / 2;
    margin: 0 0 16px;
  }

  .sidebar {
    position: static;
    top: auto;
  }
}

.sidecard {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 14px;
}

.sidecard h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.sideRow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.statusBox {
  display: grid;
  gap: 10px;
}

.statusLine {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
}

.statusLine strong {
  font-weight: 800;
}

.onairCard {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
}

.onairCard::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%, rgba(34,197,94,.10) 100%);
  pointer-events:none;
  opacity:.65;
}

.onairCard > *{ position:relative; }

.onairHeader{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:8px;
}

.onairHeading{
  font-weight:800;
  letter-spacing:.2px;
}

.onairStatus{
  display:flex;
  align-items:center;
  gap:10px;
}

#djMeta,
#djClock,
.onairClock{
  display:none !important;
}

.onairTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onairLeft {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onairDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, .55);
}

.onairCard[data-online="1"] .onairDot {
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, .55);
}

.onairClock {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}

.onairBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.onairCenter{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.onairBtns{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  margin-top:6px;
}

.onairBtns .btn,
.onairBtns button{
  width:100%;
  justify-content:center;
}

.onairCard .onairBtns > a,
.onairCard .onairBtns > button{
  width:100%;
}

.onairBtn{  }

.onairBtn:hover,
.onairBtn:focus{
  border-color: rgba(34,197,94,.85) !important;
  background: rgba(34,197,94,.20) !important;
  box-shadow: 0 0 0 1px rgba(34,197,94,.25) inset, 0 10px 30px rgba(34,197,94,.18);
  color: #fff !important;
  transform: translateY(-1px);
}

.onairRow {
  display: flex;
  gap: 12px;
  align-items: center;
}

.onairImg {
  width: 200px;
  height: 200px;
  border-radius: 26px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
}

.onairMeta {
  min-width: 0;
}

.marquee {
  position: relative;
  overflow: hidden;
  max-width: 190px;
}

.marquee__inner {
  white-space: nowrap;
  display: inline-block;
  min-width: 100%;
}

.marquee.is-scroll .marquee__inner {
  animation: marq 10s linear infinite;
}

@keyframes marq {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.listenIcons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.listenIconBtn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.listenIconBtn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, .32);
  border-color: rgba(239, 68, 68, .35);
}

.listenIconBtn:active {
  transform: translateY(0);
}

.listenIconImg {
  width: 30px;
  height: 30px;
  display: block;
}

.listenGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.listenItem {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  text-decoration: none;
  color: var(--text);
}

.listenItem:hover {
  background: rgba(0, 0, 0, .35);
}

.listenIcon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 28px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}

.listenLabel {
  font-weight: 800;
}

.historyList {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.historyList li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
}

.historyList li:nth-child(1) {
  background: rgba(0, 0, 0, .30);
}

.historyList li:hover {
  background: rgba(0, 0, 0, .32);
}

.sonicCard {
  padding: 16px;
}

.sonicCard h3 {
  margin: 0 0 10px;
}

#sonic_history {
  margin-top: 10px;
}

#sonic_history table {
  width: 100%;
  border-collapse: collapse;
}

#sonic_history td,
#sonic_history th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

#sonic_history tr:hover td {
  background: rgba(0, 0, 0, .18);
}

#sonic_history .song,
#sonic_history .track,
#sonic_history .history-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

#sonic_history .time,
#sonic_history .history-time {
  font-variant-numeric: tabular-nums;
  opacity: .85;
  min-width: 58px;
}

#sonic_history .title,
#sonic_history .history-title {
  font-weight: 700;
}

#sonic_history .artist,
#sonic_history .history-artist {
  color: var(--muted);
}

.chat {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat__body{ order: 1; }

.chat__main{flex:1;min-width:0;display:flex;flex-direction:column;}
.chat__main .chat__messages{flex:1;min-height:0;}
.chat__emoji{ order: 2; }
.chat__form{ order: 3; }
.chat__top{
  order: 4;
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.chat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}

.chat__who {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.chat__who label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.chat__who input[type=text] {
  width: 180px;
}

.chat__who input[type=color]{
  width: 54px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent; 
  cursor: pointer;
}
.chat__who input[type=color]::-webkit-color-swatch-wrapper{ padding: 6px; }
.chat__who input[type=color]::-webkit-color-swatch{
  border: 0;
  border-radius: 10px;
}

.chat__who input {
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.chat__body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}

@media (min-width:900px) {
  .chat__body {
    grid-template-columns: 1fr;
  }

  .chat__body.has-users {
    grid-template-columns: 1fr 280px;
  }
}

.chat__messages {
  padding: 14px;
  max-height: 520px;
  overflow: auto;
}

.msg {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .25);
  margin-bottom: 10px;
}

.msg__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.msg__name {
  font-weight: 800;
}

.msg__nick {
  font-weight: 900;
}

.msg__text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg__text .mention{
  font-weight: 800;
  opacity: .95;
}
.msg__text .mention--me{
  text-decoration: underline;
}

.msg.is-mention {
  border-color: rgba(234, 179, 8, .65);
  background: rgba(234, 179, 8, .08);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, .22), 0 18px 60px rgba(0, 0, 0, .35);
}

.msg__reply {
  font-size: 12px;
  opacity: .85;
  margin: 3px 0 6px;
}

.chat__users {
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  display: none;
}

@media (min-width:900px) {
  .chat__users.is-open {
    display: block;
  }
}

@media (max-width:899px) {
  .chat__users.is-open {
    display: block;
    position: absolute;
    right: 0;
    top: 58px;
    bottom: 64px;
    width: 78%;
    max-width: 320px;
    z-index: 20;
    border-left: 1px solid var(--line);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
    border-radius: 18px 0 0 18px;
    overflow: auto;
  }
}

.chat__users__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.chat__users__list {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .22);
}

.user .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: none;
}

.chat__emoji {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.chat__emoji__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.chat__emoji__tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  flex-wrap: wrap;
}

.emojiSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .28);
  border-radius: 999px;
  padding: 8px 10px;
  min-width: min(360px, 100%);
}

.emojiSearch__icon {
  opacity: .85;
}

.emojiSearch input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
}

.chat__emoji__cats {
  display: flex;
  gap: 8px;
  overflow: auto;
  max-width: 100%;
  padding: 2px 2px 6px;
}

.chat__emoji__cats::-webkit-scrollbar {
  height: 6px;
}

.chat__emoji__cats::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.emojiCat {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .20);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.emojiCat:hover {
  background: rgba(0, 0, 0, .30);
}

.emojiCat.is-active {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
}

.emojiCat span {
  font-size: 19px;
  line-height: 1;
}

.emojiCatLabel {
  color: var(--muted);
  font-size: 12px;
  margin-left: 14px;
  margin-top: -4px;
  margin-bottom: 8px;
}

.chat__emoji__list {
  padding: 0 14px 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  max-height: 340px;
  overflow: auto;
  align-content: flex-start;
}

.chat__emoji__list::-webkit-scrollbar {
  width: 8px;
}

.chat__emoji__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.emojiBtn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.emojiBtn:hover {
  background: rgba(0, 0, 0, .35);
}

.emojiBtn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.emojiInline {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -4px;
}

.chat__form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
}

.chat__form input[type=text] {
  flex: 1;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.chatTyping {
  width: auto;
  margin: 0 10px 8px 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .22);
  color: rgba(255, 255, 255, .75);
  font-size: 12px;

  
  flex: 0 0 auto;
  position: sticky;
  bottom: 10px;
  
  z-index: 20;
  backdrop-filter: blur(6px);
}

.chat__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.chat__main>.chatTyping {
  margin-top: 8px;
}

.chatReplyBar {
  margin: 8px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatReplyBar span {
  font-weight: 700;
}

.chatReplyBar .iconbtn {
  margin-left: auto;
}

.chatCmdModal[hidden] {
  display: none;
}

.chatCmdModal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.chatCmdModal__back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
}

.chatCmdModal__panel {
  position: relative;
  max-width: 560px;
  margin: 10vh auto 0;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.chatCmdModal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 12px;
}

.chatCmdModal__list {
  display: grid;
  gap: 10px;
}

.chatCmdModal__list .cmd {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .25);
  border-radius: 14px;
  padding: 10px 12px;
}

.chatCmdModal__list code {
  font-weight: 800;
}

.ctxMenu {
  position: fixed;
  z-index: 60;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .68);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.ctxMenu__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:4px 6px 8px;
  border-bottom:1px solid rgba(255,255,255,.10);
  margin-bottom:4px;
}
.ctxMenu__head strong{ font-size:13px; }
.ctxMenu__head .iconbtn{ width:32px; height:32px; border-radius:10px; }

.user .userMenuBtn{
  margin-left:auto;
  width:32px;
  height:32px;
  border-radius:12px;
}

.ctxMenu .ctxItem{
  all: unset;
  cursor: pointer;
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .25);
}

.ctxMenu .ctxItem:hover {
  background: rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .18);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .55);
  box-shadow: var(--shadow);
  padding: 14px;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 12px;
}

body.modal-open {
  overflow: hidden;
}

.reqOff {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.reqOff__logo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 28px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.reqOff__title {
  font-weight: 900;
}

.reqOff__text {
  color: var(--muted);
  white-space: pre-line;
}

.reqOff__tip {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.reqForm {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.reqForm input {
  flex: 1;
  min-width: 160px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.reqGrid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reqField {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
}

.reqIcon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  opacity: .85;
}

.reqField input,
.reqField textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}

.reqField textarea {
  resize: none;
  min-height: 64px;
  line-height: 1.35;
}

.reqActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.reqThanks {
  margin-top: 12px;
}

.reqThanks__body h2,
.reqThanks__body h3 {
  margin: 0 0 10px;
}

.reqThanks__body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.reqSummary {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  overflow: hidden;
}

.reqSummary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.reqSummary__row:first-child {
  border-top: 0;
}

.reqSummary__row span {
  color: var(--muted);
  font-size: 12px;
}

.reqSummary__row strong {
  font-weight: 800;
}

.reqActions--thanks {
  justify-content: space-between;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .12);
}

.formgrid {
  display: grid;
  gap: 12px;
}

.formgrid input,
.formgrid textarea,
.formgrid select {
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.formgrid textarea {
  min-height: 100px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static !important;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .chat__messages {
    max-height: calc(100vh - 260px);
  }

  .chat__emoji__list {
    max-height: 220px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__sub {
    font-size: 15px;
    line-height: 1.4;
  }

  .card {
    background: rgba(0, 0, 0, .72);
  }
}

#toastWrap{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast{
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.72);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 12px 14px;
  color: rgba(255,255,255,.92);
  line-height: 1.35;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.toast strong{
  font-weight: 900;
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .top {
    padding-top: env(safe-area-inset-top);
  }
}

.onairCard{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.onairBody{
  display:flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.onairCenter,
.onairBtns{
  width:100% !important;
}
.onairBtns .btn,
.onairBtns button{
  width:100% !important;
  text-align:center;
  justify-content:center;
}

.onairCard, .onairCard *{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.onairHeader{ width:100% !important; }
.onairBody{ width:100% !important; display:flex !important; flex-direction:column !important; align-items:center !important; }
.onairRow{ display:flex !important; flex-direction:column !important; align-items:center !important; }
.onairCenter{ width:100% !important; display:flex !important; justify-content:center !important; }
.onairBtns{ width:100% !important; display:flex !important; flex-direction:column !important; gap:12px !important; }
.onairBtns .btn, .onairBtns button{ width:100% !important; justify-content:center !important; text-align:center !important; }

#djCard[data-online="0"] .onairBtns > *:last-child,
#djCard:not([data-online="1"]) .onairBtns > *:last-child {
  display: none !important;
}

#djCard[data-online="1"] .onairBtns > *:last-child {
  display: flex !important;
}

.typing-indicator{
  margin: 8px 10px 6px 10px;
  font-size: 13px;
  opacity: .85;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
}

[hidden]{ display:none !important; }

.chatNotice{
  margin: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.35;
}
.chat__form.isBlocked{ opacity: .75; }
.chat__form.isBlocked #message{ cursor:not-allowed; }

[hidden]{ display:none !important; }

.chat__whoActions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
  
  flex: 0 0 auto;
}

.chat__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 899px) {
  .chat__users.is-open {
    background: rgba(0, 0, 0, .82) !important;
    backdrop-filter: blur(6px);
  }

  .chat__users__head {
    background: rgba(0, 0, 0, .65);
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

@media (max-width: 600px) {
  .chat__top {
    flex-wrap: wrap;
  }

  .chat__who {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
  }

  
  .chat__who label:first-child {
    flex: 1 1 240px;
    min-width: 180px;
  }

  
  .chat__who label:nth-child(2) {
    flex: 0 0 auto;
    margin-left: auto;
    
  }

  
  .chat__whoActions {
    flex: 0 0 auto;
    margin-left: 0;
    
  }

  #saveNick {
    white-space: nowrap;
  }
}

.chat__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.chat__who {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  
  min-width: 0;
}

.chat__actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  
  flex: 0 0 auto;
}

@media (max-width:600px) {
  .chat__top {
    align-items: flex-end;
  }

  
  .chat__who label:first-child {
    flex: 1 1 100%;
    min-width: 180px;
  }

  
  .chat__who label:nth-child(2) {
    flex: 0 0 auto;
  }

  #saveNick {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  
  .chat__actions {
    align-self: flex-end;
  }
}

.board-container {
    max-width: 700px;
    margin: auto;
}

.board-form {
    background: #2c2f36;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.board-form input,
.board-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.board-messages {
    max-height: 400px;
    overflow-y: auto;
    background: #1c1f26;
    padding: 15px;
    border-radius: 8px;
}

.mb-item {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mbox{ position: relative; }
.mbox__listWrap{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
}

.mbox__listWrap.isTicker{
  height: 92px;           
  max-height: 92px;
}

.mbox__list{
  will-change: transform;
}

.mbox__item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  min-height: 92px;       
  box-sizing: border-box;
}

.mbox__meta{
  display:flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 800;
}

.mbox__who{ font-weight: 900; }
.mbox__say{ opacity:.85; font-weight: 700; }
.mbox__time{ opacity:.75; font-size: 12px; white-space:nowrap; }

.mbox__text{
  margin-top: 4px;
  opacity: .92;
  font-weight: 600;
}

.mbox__cta{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  font-weight: 800;
}

.mbox__cta:hover{ filter: brightness(1.06); }

@media (max-width: 640px){
  .mbox__listWrap.isTicker{ height: 84px; max-height: 84px; }
  .mbox__item{ min-height: 84px; padding: 10px 12px; }
  .mbox__cta{ right: 10px; bottom: 10px; }
}


/* =========================
   BERICHENBALK TICKER
========================= */

.mbTickerCard{
  margin-top:14px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  overflow:hidden;
}

.mbox__tickerRow{
  display:flex;
  align-items:center;
  gap:12px;
}

.mbox__ticker{
  flex:1;
  min-width:0;
}

.mbox__tickerViewport{
  overflow:hidden;
  height:44px;
  display:flex;
  align-items:center;
}

.mbox__tickerTrack{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  gap:30px;
  will-change:transform;
}

.mbox__tickerTrack span{
  font-weight:700;
}
