* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial,sans-serif;
  color: #eaf1ff;
  background: radial-gradient(circle at top,#173e6b,#081422 62%);
  min-height: 100vh;
}

header {
  height: 74px;
  padding: 0 max(24px,5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06101dd9;
  border-bottom: 1px solid #2b6197;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 1px;
}

.brand span {
  color: #66bfff;
  font-size: 11px;
  margin-left: 6px;
}

nav, a {
  color: #8ed1ff;
}

nav a {
  margin-left: 12px;
}

.chat-layout {
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 245px;
  gap: 20px;
}

.chat-card, aside, .auth, .admin {
  background: #0b1b2d;
  border: 1px solid #295884;
  border-radius: 15px;
  box-shadow: 0 15px 45px #0006;
}

.chat-head {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
}

.chat-head small {
  display: block;
  color: #91a9c4;
  margin-top: 5px;
}

.live {
  color: #71ffad;
  font-size: 12px;
}

.messages {
  height: 520px;
  overflow: auto;
  padding: 10px 22px;
  background: #071321;
}

.msg {
  border-bottom: 1px solid #173451;
  padding: 10px 0;
}

.msg p {
  margin: 5px 0 0;
  line-height: 1.35;
  white-space: pre-wrap;
}

.msg time {
  color: #7189a5;
  font-size: 11px;
  margin-left: 8px;
}

.role-admin {
  color: #ffd15c;
}

.role-user {
  color: #76c6ff;
}

.send {
  display: flex;
  gap: 10px;
  padding: 16px;
}

input {
  border: 1px solid #315e88;
  background: #071522;
  color: #fff;
  padding: 13px;
  border-radius: 9px;
  font-size: 15px;
  width: 100%;
}

button, .button {
  border: 0;
  background: linear-gradient(135deg,#1688d4,#56b7f6);
  color: #fff;
  border-radius: 9px;
  padding: 12px 17px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.send button {
  min-width: 100px;
}

aside {
  padding: 20px;
  height: max-content;
}

aside h3 {
  margin: 0 0 12px;
}

.online div {
  padding: 7px 0;
}

.online i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #61e897;
  border-radius: 50%;
  margin-right: 8px;
}

.auth {
  width: min(420px,calc(100% - 32px));
  margin: 70px auto;
  padding: 30px;
  text-align: center;
}

.auth form {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.error {
  background: #722d39;
  padding: 10px;
  border-radius: 8px;
}

.admin {
  max-width: 950px;
  margin: 35px auto;
  padding: 25px;
}

.admin-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #24435e;
  padding: 10px;
}

.admin-row small {
  margin-left: auto;
  color: #789;
}

.admin-row form {
  margin: 0;
}

.admin-row button {
  background: #a83846;
  padding: 7px 10px;
}

@media (max-width: 720px) {
  .chat-layout {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .messages {
    height: 55vh;
  }

  aside {
    order: -1;
  }

  header {
    padding: 0 15px;
  }

  .brand {
    font-size: 17px;
  }

}

/* Wolfsradio Lounge 2026 */
:root {
  color-scheme: dark;
  --surface: #101c2c;
  --line: #29405b;
  --muted: #a3b6ce;
  --accent: #59c7ff;
}

body {
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  background: radial-gradient(ellipse 60% 46% at 12% 0%,#203a60 0,transparent 75%),radial-gradient(ellipse 45% 40% at 95% 10%,#19324d 0,transparent 75%),#080f1b;
  color: #f3f7ff;
}

header {
  height: auto;
  min-height: 76px;
  gap: 16px;
  background: #0b1524ed;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px #0003;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  letter-spacing: .045em;
}

.brand span {
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================
   GRÖSSE DER RECHTEN SPALTE MIT DEM RADIOSTATUS
   295px ist die Breite des gesamten rechten Bereichs.
   ========================================================== */
.chat-layout {
  max-width: 1340px;
  margin: 38px auto;
  grid-template-columns: minmax(0,1fr) 295px;
  gap: 24px;
}

.chat-card, aside, .auth, .admin {
  background: linear-gradient(150deg,#142238,#0d1929 68%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 55px #0005;
  overflow: hidden;
}

.chat-head {
  padding: 22px 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.chat-head b {
  font-size: 19px;
}

.chat-head small {
  color: var(--muted);
}

.live {
  padding: 7px 11px;
  background: #143328;
  border: 1px solid #337e60;
  border-radius: 999px;
  color: #8bf3b3;
  font-weight: 750;
}

.messages {
  height: min(58vh,650px);
  min-height: 370px;
  background: linear-gradient(180deg,#0b1727,#0c192a);
  padding: 17px 26px;
  scrollbar-color: #345375 transparent;
}

.msg {
  border-bottom: 1px solid #23364d;
  padding: 13px 0;
}

.msg p {
  line-height: 1.55;
}

.msg time {
  color: #99acc3;
}

.my-status {
  padding: 12px 26px;
  background: #102136;
  border-color: var(--line);
  color: var(--muted);
}

.my-status select, .radio-player select, input {
  background: #0b192b;
  border: 1px solid #35506c;
  color: #f5f9ff;
  border-radius: 10px;
}

.send {
  padding: 19px 26px;
  background: #111f32;
}

input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button, .button {
  background: linear-gradient(130deg,#218fdd,#39b6eb);
  box-shadow: 0 5px 16px #1686cc35;
  border-radius: 10px;
  transition: filter .2s,transform .2s;
}

button:hover, .button:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

aside {
  padding: 19px;
}

aside h3 {
  font-size: 15px;
  margin: 16px 0 12px;
}

aside p {
  color: var(--muted);
}

aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.online-user {
  gap: 9px;
  padding: 8px 0;
}

.online-user a {
  font-weight: 650;
  text-decoration: none;
}

.online-user small {
  color: var(--muted);
}

.radio-player {
  background: #101f31;
  border-color: var(--line);
  padding: 15px;
}

.radio-status-card {
  padding: 15px;
  background: linear-gradient(145deg,#193a58,#10253a 68%);
  border: 1px solid #35658b;
  border-radius: 16px;
  box-shadow: inset 0 1px #ffffff12;
  margin-bottom: 20px;
}

.radio-status-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.radio-status-heading div {
  display: grid;
  gap: 2px;
}

.radio-status-heading small {
  font-size: 10px;
  letter-spacing: .16em;
  color: #97bad4;
  font-weight: 750;
}

.radio-status-heading strong {
  font-size: 16px;
}

.radio-status-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #35a9e62b;
  border-radius: 10px;
  color: #83d8ff;
  font-size: 22px;
}

.radio-status-pulse {
  width: 9px;
  height: 9px;
  margin-left: auto;
  background: #55e6ae;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #55e6ae22;
}

/* ==========================================================
   FORM UND GRÖSSE DES RADIOSTATUS-/PLAYER-FENSTERS
   width und height bestimmen die Größe: aktuell 200 x 200 Pixel.
   ========================================================== */
.radio-status-content {
  overflow: hidden;
  border-radius: 12px;
  background: #091522;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto;
}

.radio-status-content iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.radio-status-note {
  font-size: 12px;
  line-height: 1.45;
  color: #b2c9da;
  margin: 10px 0 0;
}

.radio-status-note a {
  color: #86d7ff;
}

@media (max-width: 980px) {
  .chat-layout {
    grid-template-columns: 1fr;
    margin: 18px auto;
  }

  .messages {
    height: 55vh;
    min-height: 300px;
  }

  aside {
    order: -1;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  header {
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 18px;
  }

}

@media (max-width: 460px) {
  .chat-head, .my-status, .send {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-head b {
    font-size: 16px;
  }

  .chat-head small {
    font-size: 12px;
  }

  .send button {
    min-width: 78px;
  }

}

/* Die Schrift wird in radiostatus_view.php gesetzt; kein Farbfilter auf dem iframe. */
.radio-status-content {
  background: #091522;
}

.radio-status-content iframe {
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
}
