:root {
    --bg-main: #0a0a0f;
    --bg-side: #13141c;
    --primary: #f83a3a;
    --accent: #5e5ce6;
    --text: #e0e0e0;
    --text-muted: #8b8f9c;
    --border: #222533;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background: var(--bg-side);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}

.brand {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}

.brand i {
    color: var(--primary);
    font-size: 24px;
}

.brand h1 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channel-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.channel-section h2 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 25px 15px;
    letter-spacing: 1.5px;
}

.channel-list {
    list-style: none;
}

.channel-list li {
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.channel-list li:hover {
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent);
}

.channel-list li.active {
    background: rgba(94, 92, 230, 0.1);
    border-left: 3px solid var(--accent);
    color: #fff;
}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.c-name {
    font-weight: 600;
    font-size: 15px;
}

.c-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.status-box {
    padding: 15px 25px;
    background: #1a1a24;
    font-size: 13px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: monospace;
    word-break: break-all;
}

.status-error { color: #f83a3a; }
.status-success { color: #4cd964; }

/* Main Video Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #181a25 0%, #0a0a0f 100%);
    position: relative;
}

header {
    height: 80px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(19, 20, 28, 0.7);
    backdrop-filter: blur(10px);
    z-index: 5;
}

header h2 {
    font-size: 20px;
    font-weight: 600;
}

.player-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shaka-video-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    position: relative;
    border: 1px solid var(--border);
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 40;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Animations that pop */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
