/* ── Header ──────────────────────────────────────────────── */
.ts3_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(40, 40, 50, 0.5);
    border-left: 3px solid #ebb43d;
    border-right: 1px solid #20222f;
    border-top: 1px solid #20222f;
    border-bottom: 1px solid #20222f;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3),
                 5px 5px 10px rgba(0,0,0,0.3);
}

.ts3_header_info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ts3_header_label {
    font-size: 13px;
    color: #6c7086;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ts3_header_server {
    font-size: 15px;
    font-weight: bold;
    color: #FAD73C;
}

.ts3_header_port {
    font-size: 12px;
    color: #888;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2a2c3a;
    border-radius: 4px;
    padding: 1px 7px;
}

.ts3_connect_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 5px;
    border: 1px solid #ebb43d44;
    background: rgba(235, 180, 61, 0.1);
    color: #ebb43d;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.ts3_connect_btn:hover {
    background: rgba(235, 180, 61, 0.22);
    border-color: #ebb43d88;
    color: #FAD73C;
}

/* ── Body / Gesamtcontainer ──────────────────────────────── */
.ts3_body {
    width: 100%;
    font-family: Verdana, sans-serif;
    color: #cdd6f4;
    box-sizing: border-box;
}

/* ── Hauptchannel ────────────────────────────────────────── */
.ts3ssvMainChannel {
    margin-bottom: 16px;
}

.ts3ssvMainChannelHeader {
    font-size: 15px;
    font-weight: bold;
    color: #FAD73C;
    border-left: 3px solid #ebb43d;
    border-right: 1px solid #20222f;
    border-top: 1px solid #20222f;
    border-bottom: 1px solid #20222f;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(40, 40, 50, 0.5);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3),
                 5px 5px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts3ssvMainChannelHeader::before {
    content: "📢";
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Subchannel ──────────────────────────────────────────── */
.ts3ssvSubChannel {
    border-left: 3px solid #3a3c4e;
    border-right: 1px solid #20222f;
    border-top: 1px solid #20222f;
    border-bottom: 1px solid #20222f;
    margin-left: 20px;
    margin-bottom: 6px;
    padding: 4px 0;
    background: rgba(30, 30, 40, 0.3);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.2),
                 5px 5px 10px rgba(0,0,0,0.2);
}

.ts3ssvSubChannelHeader {
    font-size: 15px;
    font-weight: bold;
    color: #888aaa;
    padding: 3px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts3ssvSubChannelHeader::before {
    content: "▸";
    color: #6c7086;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── User-Container ──────────────────────────────────────── */
.ts3ssvUsers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 8px 6px 40px;
}

/* ── Einzelner User ──────────────────────────────────────── */
.ts3ssvUser {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 12px 3px 30px;
    background: rgba(20, 25, 35, 0.4);
    border: 1px solid #2a2c3a;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    color: #ebb43d;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.3),
                 3px 3px 8px rgba(0,0,0,0.3);
    transition: background .15s, border-color .15s;
    user-select: none;
    cursor: default;
}

.ts3ssvUser::before {
    content: "🗣️";
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.ts3ssvUser:hover {
    background: rgba(235, 180, 61, 0.1);
    border-color: #ebb43d44;
}

/* ── Leer-Zustand ────────────────────────────────────────── */
.ts3UserEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 160px;
    color: #6c7086;
    font-size: 14px;
    font-style: italic;
}

.ts3UserEmpty::before {
    content: "🎧";
    font-size: 32px;
    opacity: .5;
}

/* ── Fehleranzeige ───────────────────────────────────────── */
.ts3ssvError {
    padding: 12px 16px;
    border-left: 3px solid #f7768e;
    background: rgba(247, 118, 142, 0.08);
    color: #f7768e;
    font-size: 13px;
    border-radius: 0 5px 5px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .ts3_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ts3_connect_btn {
        width: 100%;
        justify-content: center;
    }

    .ts3ssvUsers {
        flex-direction: column;
        margin-left: 8px;
    }

    .ts3ssvSubChannel {
        margin-left: 8px;
    }

    .ts3ssvUser {
        font-size: 12px;
    }

    .ts3ssvMainChannelHeader {
        font-size: 16px;
    }

    .ts3ssvSubChannelHeader {
        font-size: 14px;
    }
}