:root {
    --twitch-purple: #9146ff;
    --twitch-purple-hover: #772ce8;
    --bg-dark: #121214;
    --bg-sidebar: #1a1a1e;
    --bg-card: #242428;
    --glass-bg: rgba(36, 36, 40, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark {
    background-color: var(--bg-dark);
}

.premium-card {
    background-color: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    border-color: rgba(168, 85, 247, 0.4);
}

.live-badge {
    background: linear-gradient(to right, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.video-js {
    width: 100%;
    height: 100%;
}

/* ── PLAYER LAYOUT (Twitch-style) ── */
#player-view {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

/* Left column: scrollable content */
#player-content {
    flex: 1 1 0%;
    min-width: 0;
    overflow-y: auto;
    display: flow;
    flex-direction: column;
}

/* Video fills width, 16/9 */
#video-wrapper {
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

#video-wrapper video,
#video-wrapper .video-js {
    width: 100% !important;
    height: 100% !important;
}

/* Right column: chat — fixed width, full height, never scrolls as a whole */
#chat-container {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: #0e0e10;
}

#chat-messages {
    flex: 1 1 0%;
    overflow-y: auto;
    padding: 1rem;
}

@media (max-width: 768px) {
    #chat-container {
        display: none;
    }
}
