/* TS3 Viewer Sidebar Style - Compact pour 201px */
.ts3-sidebar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    padding: 8px;
    box-shadow: none;
    color: #ffffff;
    width: 100%;
    max-width: 201px;
    box-sizing: border-box;
}

.ts3-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 4px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.ts3-title {
    font-size: 11px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts3-users-count {
    font-size: 10px;
    color: #e0e7ff;
    margin: 0;
    font-weight: 500;
}

.ts3-tree {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 6px 4px;
    color: #1f2937;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 10px;
}

/* Scrollbar styling - compact */
.ts3-tree::-webkit-scrollbar {
    width: 4px;
}

.ts3-tree::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.ts3-tree::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.ts3-tree::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Channel styling - compact */
.ts3na {
    display: inline-block;
    vertical-align: middle;
    margin: 1px;
    font-size: 10px;
    color: #374151;
    line-height: 14px;
    word-break: break-word;
}

.ts3na img {
    vertical-align: middle;
    margin-right: 2px;
}

.ts3ca {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.ts3ca img {
    vertical-align: middle;
}

/* Spacers - compact */
.ts3spacer {
    display: inline-block;
    width: 8px;
    height: 1px;
}

.ts3spacer_repeat {
    height: 4px;
    background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 50%, transparent 50%);
    background-size: 6px 1px;
    background-position: center;
    background-repeat: repeat-x;
    margin: 4px 0;
    opacity: 0.5;
}

.ts3spacer_center {
    text-align: center;
    font-weight: bold;
    color: #667eea;
    padding: 4px 0;
    font-size: 9px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 4px 0;
}

.ts3spacer_right {
    text-align: right;
    color: #6b7280;
    padding: 2px 0;
    font-size: 9px;
}

.ts3spacer_left {
    text-align: left;
    color: #6b7280;
    padding: 2px 0;
    font-size: 9px;
}

.ts3clear {
    clear: both;
    display: block;
    height: 0;
    line-height: 0;
}

/* Server head - compact */
.ts3head {
    display: block;
    font-weight: bold;
    font-size: 10px;
    color: #1f2937;
    padding: 4px 0 3px 0;
    border-bottom: 1px solid #667eea;
    margin-bottom: 4px;
}

.ts3head img {
    vertical-align: middle;
    margin-right: 3px;
}

/* Channel entries - compact */
.ts3-tree > div {
    padding: 2px 0;
    line-height: 16px;
}

/* Player names - bold styling */
.ts3na b {
    color: #111827;
    font-weight: 600;
}

/* Error messages */
.ts3error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    list-style: none;
    color: #c00;
}

.ts3error li {
    margin: 5px 0;
    font-size: 13px;
}

/* Statistics table */
.ts3stats {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    color: #374151;
}

.ts3stats tr {
    border-bottom: 1px solid #e5e7eb;
}

.ts3stats tr:last-child {
    border-bottom: none;
}

.ts3statsle {
    font-weight: bold;
    padding: 6px 8px;
    color: #667eea;
    width: 45%;
}

.ts3stats td {
    padding: 6px 8px;
}

/* Legend */
.ts3legend {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-size: 12px;
    color: #374151;
}

.ts3legend img {
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ts3-sidebar {
        max-width: 100%;
    }
}

/* Hover effects */
.ts3na:hover {
    opacity: 0.8;
}

/* Icons alignment - compact 12px pour 201px width */
.ts3-tree img,
.ts3head img,
.ts3na img,
.ts3ca img,
img[alt*="channel"],
img[alt*="client"],
img[alt*="locked"],
img[alt*="home"],
img[alt*="player"],
img[src*="client_"],
img[alt*="away"],
img[alt*="talker"],
img[alt*="muted"],
img[alt*="hardware"] {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    object-fit: contain;
}
