:root {
    --primary-color: #0ff;
    --secondary-color: #f0f;
    --bg-color: rgba(10, 10, 20, 0.4);
    --glass-border: rgba(0, 255, 255, 0.3);
    --glass-bg: rgba(16, 16, 32, 0.5);
    --text-glow: 0 0 10px rgba(0, 255, 255, 0.8);
}

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

body {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    /* Transparent background for OBS */
    background: transparent;
    overflow: hidden; /* Prevent scrolling in OBS browser source */
}

/* Glassmorphism Container */
.overlay-container {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 350px;
    display: flex;
    flex-direction: column;
    
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 255, 255, 0.1);
    
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: all 0.3s ease;
}

/* Header */
.header {
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    text-align: right;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 2s linear infinite;
}

h1.glitch {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: var(--text-glow);
    margin-bottom: 5px;
    position: relative;
    text-transform: uppercase;
}

.subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    color: #88cedb;
    font-weight: 500;
}

#member-count {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 5px var(--primary-color);
}

/* Member List */
.member-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* We allow vertical scrolling if the list gets too long, but hide the scrollbar */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.member-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Member Items */
.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
    overflow: hidden;
    animation: floatIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Subtle hover effect for the stream if desired, though normally it's static */
.member-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.member-id {
    font-size: 9px;
    color: #88cedb;
    letter-spacing: 1px;
    opacity: 0.8;
}

.member-ping {
    font-size: 12px;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.member-ping::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 8px #0f0;
    animation: pulse 1.5s infinite;
}

.ping-high { color: #ffaa00; text-shadow: 0 0 5px rgba(255, 170, 0, 0.5); }
.ping-high::before { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }

.ping-bad { color: #ff0000; text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
.ping-bad::before { background: #ff0000; box-shadow: 0 0 8px #ff0000; }

.loading {
    text-align: center;
    font-size: 12px;
    color: var(--primary-color);
    padding: 20px;
    letter-spacing: 2px;
    animation: textPulse 2s infinite;
}

.pagination-indicator {
    text-align: center;
    font-size: 10px;
    color: #88cedb;
    padding-top: 5px;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Animations */
@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { opacity: 0.5; box-shadow: 0 0 4px currentColor; }
    50% { opacity: 1; box-shadow: 0 0 12px currentColor; }
    100% { opacity: 0.5; box-shadow: 0 0 4px currentColor; }
}

@keyframes textPulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
