:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --border-color: #333333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); }
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border-color); position: fixed; height: 100vh; }
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text-primary); font-weight: 600; }
.logo svg { color: var(--accent-primary); }
.sidebar-nav { padding: 16px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-secondary); text-decoration: none; border-radius: 8px; margin-bottom: 4px; transition: 0.2s; }
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active { background: var(--accent-primary); color: var(--text-primary); }
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }
.main-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.broadcast-status { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-card); border-radius: 8px; }
.broadcast-indicator { width: 10px; height: 10px; border-radius: 50%; }
.broadcast-indicator.broadcasting { background: var(--accent-success); animation: pulse 1s infinite; }
.broadcast-indicator.live { background: var(--accent-danger); animation: pulse 1s infinite; }
.broadcast-indicator.idle { background: #f59e0b; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.content-section { display: none; padding: 24px; }
.content-section.active { display: block; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.card-body { padding: 20px; }
.stat-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.stat-item:last-child { border-bottom: none; }
.stat-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.stat-icon.video { background: rgba(59, 130, 246, 0.2); color: var(--accent-primary); }
.stat-icon.playlist { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.stat-value { font-size: 24px; font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 13px; }
.live-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.live-status-panel { background: var(--bg-card); border-radius: 12px; padding: 24px; text-align: center; }
.live-indicator { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; padding: 16px; background: var(--bg-secondary); border-radius: 8px; }
.indicator-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); }
.live-indicator.broadcasting .indicator-dot { background: var(--accent-success); }
.live-indicator.live .indicator-dot { background: var(--accent-danger); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; }
.btn-primary { background: var(--accent-primary); color: white; }
.btn-live-start { background: var(--accent-success); color: white; padding: 16px 32px; border-radius: 8px; }
.btn-live-stop { background: var(--accent-danger); color: white; padding: 16px 32px; border-radius: 8px; }
.btn-live-stop:disabled { opacity: 0.5; cursor: not-allowed; }
.info-item { display: flex; justify-content: space-between; padding: 12px; background: var(--bg-secondary); border-radius: 8px; margin-bottom: 8px; }
.info-item code { color: var(--accent-primary); font-family: monospace; }
.live-info-panel { background: var(--bg-card); border-radius: 12px; padding: 24px; }
.live-info-panel h3 { margin-bottom: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.videos-grid, .playlists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.system-status { display: flex; align-items: center; gap: 8px; padding: 16px 20px; color: var(--text-secondary); font-size: 13px; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.status-indicator.online { background: var(--accent-success); }
