:root {
    --bg-color: #080c14;
    --panel-bg: rgba(25, 28, 41, 0.65);
    --primary: #ef4444;
    --primary-hover: #dc2626;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Blurs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ef4444;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #db2777;
    bottom: -200px;
    right: -100px;
    opacity: 0.3;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
    background: linear-gradient(to right, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    -webkit-text-fill-color: initial;
    color: #f87171;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links li {
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links li i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-links li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.nav-links li.active {
    background: linear-gradient(135deg, var(--primary), #dc2626);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
}

.active-users-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.4));
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    animation: pulse-soft 2s infinite;
    font-size: 0.9rem;
}

.active-users-badge i {
    color: #fca5a5;
    font-size: 1rem;
}

.active-users-badge strong {
    color: #fef08a;
    font-size: 1rem;
}

/* Real Visit Counter Badge */
.real-users-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.4));
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.real-users-badge i {
    color: #93c5fd;
    font-size: 1rem;
}

.real-users-badge strong {
    color: #bfdbfe;
    font-size: 1rem;
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Player Section */
.glass-panel {
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
}

.video-container {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.pulse-icon {
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.player-placeholder h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Channels Section */
.section-title h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #f87171);
    border-radius: 2px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s;
}

.channel-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-icon {
    width: 85px;
    height: 85px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #f87171;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, color 0.3s ease;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.channel-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.channel-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        z-index: 10;
        backdrop-filter: blur(25px);
    }
    .logo {
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .nav-links li {
        white-space: nowrap;
        padding: 10px 16px;
    }
    .main-content {
        padding: 1.5rem;
    }
    header {
        flex-direction: column;
        align-items: center;
    }
    .logo span {
        display: none;
    }
    .logo i {
        font-size: 1.8rem;
    }
}
