/* =============================================
   Universum-Cast – Space Theme
   ============================================= */

:root {
    --bg-dark:      #04040f;
    --bg-panel:     #080818;
    --bg-header:    #0a0a1e;
    --border-color: #1e1e3a;
    --cyan:         #a78bfa;   /* Lila-Violett Akzent */
    --cyan-dark:    #7c3aed;   /* Dunkel-Violett */
    --gold:         #fbbf24;   /* Sternengold */
    --red:          #f87171;
    --green:        #34d399;
    --white:        #e2e8f0;
    --gray:         #6b7280;
    --admin-color:  #fb923c;
    --mod-color:    #e879f9;
    --star1:        #c4b5fd;
    --star2:        #818cf8;
    --nebula:       rgba(109,40,217,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Sternenhimmel ── */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.4); }
}

@keyframes shootingStar {
    0%   { transform: translateX(0) translateY(0) rotate(-45deg); opacity:1; width:0; }
    70%  { opacity: 1; }
    100% { transform: translateX(300px) translateY(300px) rotate(-45deg); opacity:0; width:120px; }
}

@keyframes nebulaDrift {
    0%, 100% { opacity: 0.08; transform: scale(1) translate(0,0); }
    50%       { opacity: 0.18; transform: scale(1.05) translate(8px,-5px); }
}

@keyframes infoScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

body {
    background: var(--bg-dark);
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    min-height: 100vh;
    /* Hintergrundbild: Bild unter images/bg.jpg ablegen, dann auskommentieren */
    /* background-image: url('../images/bg.jpg'); */
    /* background-size: cover; background-attachment: fixed; */
}

/* Sterne-Canvas hinter allem */
#star-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Wrapper ── */
#wrapper {
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: rgba(4,4,15,0.88);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 120px rgba(109,40,217,0.08);
}

#wrapper.is-transparent {
    background: rgba(4,4,15,var(--wrapper-alpha-transparent,0.55));
}

/* ── Header mit Logo ── */
#header {
    background: linear-gradient(180deg, #050510 0%, #0a0824 60%, #04040f 100%);
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--cyan-dark);
}

/* Nebula-Glow im Header */
#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(109,40,217,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 30% 40% at 20% 50%,  rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 30% 40% at 80% 50%,  rgba(168,85,247,0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: nebulaDrift 8s ease-in-out infinite;
}

.header-speakers {
    position: absolute;
    top: 0; bottom: 0;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}
.header-speakers.left  { left: 0; }
.header-speakers.right { right: 0; }

.speaker-svg {
    width: 110px;
    height: 160px;
    filter: drop-shadow(0 0 8px rgba(0,180,255,0.4));
}

#logo {
    text-align: center;
    z-index: 1;
}

/* Logo-Bild (images/logo.png ablegen) oder Fallback-Text */
#logo-img {
    max-height: 100px;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 16px rgba(167,139,250,0.7)) drop-shadow(0 0 32px rgba(109,40,217,0.4));
}

#logo h1 {
    font-size: 3.2em;
    font-weight: 900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 40%, #c4b5fd 70%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(167,139,250,0.6));
    letter-spacing: 4px;
    text-transform: uppercase;
}

#logo .tagline {
    color: var(--star1);
    font-size: 0.82em;
    margin-top: 4px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ── Audio Player ── */
#player-bar {
    background: #0d0d0d;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#player-bar audio {
    flex: 1;
    height: 36px;
    min-width: 0;
    filter: invert(1) hue-rotate(180deg) brightness(0.85);
}

.player-meta {
    color: var(--star1);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Navigationsleiste ── */
#navbar {
    background: rgba(8,8,24,0.95);
    padding: 5px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
}

.nav-btn {
    background: rgba(124,58,237,0.15);
    color: var(--cyan);
    border: 1px solid rgba(124,58,237,0.4);
    padding: 6px 13px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    font-family: inherit;
}

.nav-btn:hover {
    background: var(--cyan-dark);
    color: #fff;
    box-shadow: 0 0 8px rgba(124,58,237,0.5);
}

.nav-btn.active {
    background: var(--cyan);
    color: #000;
}

.nav-btn.is-active {
    background: #004422;
    color: #44ff88;
    border-color: #00aa44;
}

.nav-btn.is-live {
    background: #440022;
    color: #ff66aa;
    border-color: #aa0044;
}

.nav-btn.red-btn {
    background: #440000;
    color: #ff6666;
    border-color: #aa0000;
}
.nav-btn.red-btn:hover {
    background: #aa0000;
    color: #fff;
}

#btn-modi {
    background: #0f5a1f;
    color: #d8ffe1;
    border-color: #2bc24f;
    box-shadow: 0 0 10px rgba(43, 194, 79, 0.45);
}

#btn-modi:hover {
    background: #1f8a37;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(43, 194, 79, 0.65);
}

#btn-modi.active {
    background: #2bc24f;
    color: #03230b;
    border-color: #64e986;
}

/* ── Info-Ticker ── */
#info-bar {
    background: linear-gradient(90deg, #1e0a3c, #0f172a, #1e0a3c);
    color: var(--star1);
    padding: 4px 12px;
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

#info-bar.scrolling {
    overflow: hidden;
}

.info-bar-track {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-bar-track.is-animated {
    display: inline-block;
    width: auto;
    max-width: none;
    min-width: max-content;
    padding-left: 100%;
    overflow: visible;
    text-overflow: clip;
    animation: infoScroll 18s linear infinite;
}

#info-bar a {
    color: var(--gold);
    text-decoration: none;
}

#info-bar a:hover {
    text-decoration: underline;
}

/* ── Status-Leiste ── */
#status-bar {
    background: rgba(8,8,24,0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#listener-count {
    color: var(--gold);
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
}

#clock {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
    font-family: monospace;
}

/* ── Haupt-Chat-Bereich ── */
#chat-area {
    display: flex;
    height: 410px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(4,4,15,0.8);
}

/* Benutzerliste */
#user-list-panel {
    width: 200px;
    min-width: 200px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: rgba(5,5,20,0.9);
}

#user-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

#user-list::-webkit-scrollbar { width: 6px; }
#user-list::-webkit-scrollbar-track { background: #111; }
#user-list::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }

.user-entry {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 4px;
    font-size: 12px;
}

.user-camera {
    margin-left: auto;
    padding: 2px 6px;
    border: none;
    border-radius: 4px;
    background: rgba(70, 130, 180, 0.2);
    color: var(--cyan);
    cursor: pointer;
    font-size: 12px;
}

.user-camera:hover {
    background: rgba(70, 130, 180, 0.35);
}

.user-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 2px;
    font-weight: bold;
}

.user-icon.admin { background: var(--admin-color); color: #fff; }
.user-icon.mod   { background: var(--mod-color); color: #fff; }
.user-icon.user  { background: var(--cyan-dark); color: #000; }
.user-icon.guest { background: #444; color: #aaa; }

.user-name {
    color: var(--star1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name.admin-name { color: var(--admin-color); }
.user-name.mod-name   { color: var(--mod-color); }

#user-total {
    padding: 4px;
    border-top: 1px solid var(--border-color);
    color: var(--gold);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

#user-total-seen {
    padding: 4px;
    border-top: 1px solid var(--border-color);
    color: var(--star1);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    background: rgba(255,255,255,0.03);
}

#handover-panel {
    width: 300px;
    position: fixed;
    left: calc(50% + 494px);
    right: auto;
    top: 190px;
    z-index: 120;
    border: 1px solid var(--border-color);
    background: rgba(9,14,35,0.92);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@media (max-width: 1500px) {
    #handover-panel {
        left: auto;
        right: 14px;
    }
}

.handover-title {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.handover-onair {
    font-size: 11px;
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    color: var(--star1);
}

.handover-onair.live {
    color: #052814;
    background: #34d399;
    border-color: #34d399;
}

.handover-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--white);
    border: 1px solid rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.08);
    padding: 8px;
    min-height: 54px;
    white-space: pre-wrap;
}

.handover-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 6px;
    background: rgba(0,0,0,0.18);
}

.handover-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0;
}

.handover-item:last-child {
    border-bottom: 0;
}

.handover-item-head {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: var(--star1);
}

.handover-item-head strong {
    color: var(--gold);
}

.handover-item-head span {
    color: var(--gray);
    font-size: 10px;
}

.handover-item-text {
    margin-top: 3px;
    font-size: 12px;
    color: var(--white);
    white-space: pre-wrap;
}

.handover-item-empty {
    color: var(--gray);
    font-size: 11px;
    padding: 4px 0;
}

.handover-updated {
    font-size: 10px;
    color: var(--gray);
}

/* Nachrichten-Panel */
#messages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 1.65;
}

#messages::-webkit-scrollbar { width: 6px; }
#messages::-webkit-scrollbar-track { background: #111; }
#messages::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }

.msg-entry {
    margin-bottom: 2px;
    word-break: break-word;
}

.msg-username {
    font-weight: bold;
    color: var(--cyan);
}

.msg-username.admin-msg { color: var(--admin-color); }
.msg-username.mod-msg   { color: var(--mod-color); }

.msg-time {
    color: var(--gray);
    font-size: 11px;
    margin-left: 4px;
}

.msg-text {
    color: var(--white);
}

.msg-text.fett    { font-weight: bold; }
.msg-text.kursiv  { font-style: italic; }
.msg-text.gross   { font-size: 1.2em; }
.msg-text.klein   { font-size: 0.85em; }

.msg-system {
    color: var(--gold);
    font-style: italic;
    font-size: 12px;
}

/* ── Eingabebereich ── */
#input-area {
    background: rgba(8,8,24,0.95);
    border-top: 1px solid var(--border-color);
    padding: 8px 10px;
}

#input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

#username-display {
    color: var(--cyan);
    font-weight: bold;
    min-width: 95px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#message-input {
    flex: 1;
    background: rgba(15,12,35,0.9);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--white);
    padding: 7px 11px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#message-input:focus {
    border-color: var(--cyan-dark);
    box-shadow: 0 0 8px rgba(124,58,237,0.35);
}

#send-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: 1px solid rgba(167,139,250,0.4);
    padding: 7px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

#send-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 0 12px rgba(124,58,237,0.6);
}

/* ── Formatting-Toolbar ── */
#format-bar {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.fmt-btn {
    background: #1a1a1a;
    color: var(--gray);
    border: 1px solid #333;
    padding: 4px 9px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
    transition: all 0.15s;
}

.fmt-btn:hover { background: #2a2a2a; color: var(--white); border-color: var(--cyan-dark); }
.fmt-btn.active { background: var(--cyan-dark); color: #000; border-color: var(--cyan); }

#color-pick {
    width: 24px;
    height: 22px;
    border: 1px solid #333;
    background: #1a1a1a;
    cursor: pointer;
    padding: 1px;
    border-radius: 2px;
}

#guest-name-input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--white);
    padding: 3px 6px;
    font-size: 13px;
    border-radius: 2px;
    width: 115px;
    outline: none;
    font-family: inherit;
}

#guest-name-input:focus { border-color: var(--cyan-dark); }

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#modi-modal {
    background: rgba(0,0,0,0.22);
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #111;
    border: 1px solid var(--cyan-dark);
    padding: 20px;
    min-width: 320px;
    max-width: 480px;
    width: 90%;
    border-radius: 4px;
}

#modi-modal .modal-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, 94vw);
    max-width: 760px;
    max-height: 82vh;
    overflow: auto;
    border-color: rgba(124,58,237,0.65);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
    background: rgba(14,14,28,0.95);
}

#modi-modal .modal-box h2 {
    cursor: grab;
}

#modi-modal .modal-box.dragging h2 {
    cursor: grabbing;
    -webkit-user-select: none;
    user-select: none;
}

.modi-controls {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.modi-controls textarea {
    width: 100%;
    min-height: 90px;
}

.kick-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.modi-kick-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03);
    padding: 6px;
    font-size: 12px;
}

.modi-kick-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modi-kick-row:last-child {
    border-bottom: 0;
}

.modi-kick-user {
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modi-kick-user small {
    color: var(--gray);
}

.modal-box h2 {
    color: var(--cyan);
    margin-bottom: 16px;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.modal-box .close-btn {
    float: right;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.4em;
    cursor: pointer;
    line-height: 1;
    margin-top: -4px;
}

.modal-box .close-btn:hover { color: var(--red); }

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    color: var(--gray);
    margin-bottom: 4px;
    font-size: 12px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--white);
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 2px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--cyan-dark); }

.form-group textarea { min-height: 80px; resize: vertical; }

.btn-primary {
    background: var(--cyan-dark);
    color: #000;
    border: none;
    padding: 7px 18px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--cyan); }

.btn-secondary {
    background: #2a2a2a;
    color: var(--gray);
    border: 1px solid #333;
    padding: 7px 18px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 2px;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-secondary:hover { background: #3a3a3a; color: var(--white); }

.alert { padding: 8px 12px; border-radius: 2px; margin-bottom: 10px; font-size: 12px; }
.alert-error   { background: #440000; border: 1px solid #aa0000; color: #ff9999; }
.alert-success { background: #004400; border: 1px solid #00aa00; color: #99ff99; }
.alert-info    { background: #002244; border: 1px solid #0044aa; color: #99ccff; }

/* ── Smiley-Grid ── */
.smiley-section-title {
    color: var(--gray);
    font-size: 12px;
    margin: 8px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#smiley-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 6px;
}

#smiley-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.smiley-item {
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    padding: 3px;
    border-radius: 3px;
    transition: background 0.1s;
}

.smiley-item:hover { background: #2a2a2a; }

.smiley-item.smiley-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 84px;
    font-size: 12px;
    color: var(--white);
    border: 1px solid #2f3f66;
    background: #16213d;
    text-align: center;
    line-height: 1.2;
    padding: 8px 6px;
}

.smiley-code-thumb {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 4px;
}

.smiley-item.smiley-code span {
    font-size: 11px;
    color: #d5e7ff;
}

.smiley-item.smiley-code:hover {
    background: #1f2f52;
}

.chat-smiley-img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 0.08em;
}

/* ── Tab-Leiste (Eingang/Ausgang) ── */
#tab-bar {
    display: flex;
    background: #0d0d0d;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--gray);
    padding: 7px 17px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
    background: #0a0a0a;
}

.tab-btn:hover:not(.active) { color: var(--white); }

/* ── Wunschbox ── */
#wunschbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}

.wish-entry {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    padding: 8px;
    margin-bottom: 6px;
}

.wish-meta {
    color: var(--gray);
    font-size: 11px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wish-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.wish-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.wish-action-btn {
    padding: 4px 8px;
    font-size: 11px;
}

.wish-admin-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.wish-text {
    color: var(--white);
    font-size: 12px;
}

.wish-status {
    display: inline-block;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: bold;
    margin-left: auto;
}
.wish-status.pending { background: #333; color: var(--gray); }
.wish-status.playing { background: #004400; color: var(--green); }
.wish-status.done    { background: #330000; color: var(--red); }

/* ── Footer ── */
#footer {
    background: rgba(5,5,20,0.95);
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: center;
    color: var(--gray);
    font-size: 12px;
}

/* ── Login-Seite ── */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(109,40,217,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(59,130,246,0.15) 0%, transparent 60%),
        #04040f;
}

.login-box {
    background: rgba(8,8,28,0.92);
    border: 1px solid rgba(124,58,237,0.5);
    padding: 30px;
    width: 360px;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(109,40,217,0.2), 0 0 80px rgba(109,40,217,0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.login-box h1 {
    color: var(--cyan);
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-box .sub {
    color: var(--gray);
    text-align: center;
    font-size: 12px;
    margin-bottom: 24px;
}

.tab-switch {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 2px;
    overflow: hidden;
}

.tab-switch button {
    flex: 1;
    background: #1a1a1a;
    border: none;
    color: var(--gray);
    padding: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.15s;
    text-transform: uppercase;
}

.tab-switch button.active {
    background: var(--cyan-dark);
    color: #000;
}

/* ── Admin-Bereich ── */
.admin-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 16px;
}

.admin-header {
    background: #111;
    border: 1px solid var(--admin-color);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
}

.admin-header h1 { color: var(--admin-color); font-size: 1.2em; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}

.admin-table th {
    background: #1a1a1a;
    color: var(--cyan);
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    border-bottom: 1px solid #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 7px 10px;
    font-size: 12px;
    border-bottom: 1px solid #1a1a1a;
    color: var(--white);
}

.admin-table tr:hover td { background: #151515; }

.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
}

.badge-admin { background: var(--admin-color); color: #fff; }
.badge-mod   { background: var(--mod-color); color: #fff; }
.badge-user  { background: var(--cyan-dark); color: #000; }
.badge-banned { background: var(--red); color: #fff; }

/* ── Hilfreich ── */
.text-cyan   { color: var(--cyan); }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }
.text-gray   { color: var(--gray); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    #wrapper { border: none; }
    #header  { height: 120px; }
    #logo h1 { font-size: 2em; }
    .header-speakers { display: none; }
    #chat-area { height: 320px; }
    #user-list-panel { width: 135px; min-width: 135px; }

    #handover-panel {
        width: calc(100% - 12px);
        right: 6px;
        left: 6px;
        top: auto;
        bottom: 6px;
        max-height: 45vh;
        overflow: auto;
    }

    #modi-modal .modal-box {
        width: calc(100% - 12px);
        left: 6px;
        right: 6px;
        top: 8px;
        transform: none;
        max-height: 90vh;
    }
}
