:root {
    --primary-bg: #0f0f0f;
    --secondary-bg: #1a1a1a;
    --accent-color: #ffd700; /* Gold */
    --accent-hover: #e5c100;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333;
    --sidebar-width: 300px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background-color: var(--secondary-bg);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-info {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.match-info .vs {
    color: var(--accent-color);
    margin: 0 10px;
}

.btn-login {
    background-color: var(--accent-color);
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Layout */
.main-container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebars */
.left-sidebar, .right-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-placeholder {
    background-color: #222;
    border: 1px dashed #444;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
    font-weight: bold;
}

.banner-placeholder.long {
    width: 100%;
    height: 90px;
    min-height: auto;
}

/* Main Player Section */
.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0; /* Prevent flex overflow */
}

.match-header-small {
    background-color: var(--secondary-bg);
    padding: 10px;
    border-left: 4px solid var(--accent-color);
    font-weight: bold;
}

.video-container {
    position: relative;
    width: 100%;
    background: black;
    aspect-ratio: 16/9;
}

/* Skip Button */
.skip-btn {
    position: absolute;
    bottom: 60px; /* Above control bar */
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 90;
    transition: all 0.2s;
}

.skip-btn:hover {
    background-color: var(--accent-color);
    color: black;
    border-color: var(--accent-color);
}

.ad-timer {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 90;
}

.hidden {
    display: none !important;
}

/* Betting Bar */
.betting-bar {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.bet-btn {
    flex: 1;
    background: linear-gradient(90deg, #ff8c00, #ff0000);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.bet-btn.secondary {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Chat */
.chat-container {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.online-count {
    color: #00ff00;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.msg .user {
    font-weight: bold;
    color: #aaa;
    margin-right: 5px;
}

.msg.system {
    color: var(--accent-color);
}

.msg.system .user {
    color: var(--accent-color);
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: #333;
    border: none;
    padding: 8px;
    color: white;
    border-radius: 4px;
}

.chat-input-area button {
    background: var(--accent-color);
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
}

.login-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay button {
    background: var(--accent-color);
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Bottom Banner */
.bottom-banner {
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    .left-sidebar, .right-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    .banner-placeholder {
        min-width: 250px;
    }
    .chat-container {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .match-info {
        display: none; /* Hide match info on very small screens or move it */
    }
    .left-sidebar {
        display: none; /* Hide left banners on mobile */
    }
    .right-sidebar {
        flex-direction: column;
    }
}
