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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: white;
}

.header {
    background: #2a2a2a;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.sidebar {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
}

.main-content {
    display: grid;
    gap: 20px;
}

.stream-selector {
    margin-bottom: 20px;
}

.stream-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.stream-selector input,
.stream-selector select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #444;
    background: #333;
    color: white;
    font-size: 14px;
}

.stream-list {
    max-height: 400px;
    overflow-y: auto;
}

.stream-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.stream-item:hover {
    background: #444;
}

.stream-item.active {
    background: #667eea;
}

.stream-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.stream-item-info {
    font-size: 12px;
    color: #aaa;
}

.player-section {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}

.player-section h2 {
    margin-bottom: 15px;
    color: #ffd700;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.player-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
}

.player-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 10px;
}

.stats-panel {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #333;
    padding: 15px;
    border-radius: 8px;
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4ade80;
}

.button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

.button:hover {
    background: #5568d3;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-live {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

.status-offline {
    background: #95a5a6;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}
