@media (min-width: 768px) {
    #sidebar.sidebar {
        position: fixed !important; top: 0; bottom: 0; left: 0;
        height: 100vh !important; overflow-y: auto; overflow-x: hidden;
        z-index: 1030; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
    }
    #sidebar.sidebar::-webkit-scrollbar { width: 4px; }
    #sidebar.sidebar::-webkit-scrollbar-track { background: transparent; }
    #sidebar.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
    .main-container > .main-content { margin-left: 190px; transition: margin-left 0.2s ease; }
    .main-container.sidebar-collapse > .main-content { margin-left: 43px; }
}

/* Hero bar (navy theme) */
.live-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #0d1b2a 100%);
    border-radius: 10px; padding: 16px 20px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.live-hero .hero-left h2 { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0 0 3px; }
.live-hero .hero-left p { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0; }
.live-hero .hero-right { color: rgba(255,255,255,0.75); font-size: 0.82rem; text-align: right; }
.live-hero .hero-right span { display: block; font-size: 1rem; font-weight: 600; color: #fff; }
.live-hero .live-pulse {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 800;
    color: #fff; background: #e5397f; border-radius: 20px; padding: 3px 12px; font-size: 0.72rem;
}
.live-hero .live-pulse .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livePulse 1.2s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.welcome-alert {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.95rem; border-radius: 8px;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #0d1b2a 100%) !important;
    border: 1px solid #0d1b2a !important; color: #fff !important; padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.welcome-alert, .welcome-alert strong, .welcome-alert .welcome-guest { color: #fff !important; }
.welcome-alert .green { color: #35d07f !important; }
.welcome-alert .fa-futbol-o { color: #35d07f !important; }
.welcome-alert .close { color: #fff !important; opacity: 0.85; text-shadow: none; }
.welcome-alert .close:hover { opacity: 1; }
.welcome-alert .welcome-guest { display: inline-flex; align-items: center; gap: 6px; }
.welcome-alert img { margin: 0 2px; }

.ad-banner { margin: 14px 0; display: flex; justify-content: center; }
.ad-slot { width: 100%; max-width: 728px; min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot img, .ad-slot ins, .ad-slot iframe { max-width: 100%; height: auto; }
.ad-placeholder {
    width: 100%; min-height: 90px; display: flex; align-items: center; justify-content: center;
    border: 1px dashed #c7d0dd; border-radius: 8px;
    background: repeating-linear-gradient(45deg, #f4f7fb, #f4f7fb 12px, #eef2f8 12px, #eef2f8 24px);
    color: #8a97a8; font-size: 0.8rem; letter-spacing: 0.02em; text-align: center; padding: 10px;
}

/* Live match cards */
.live-card {
    background: #fff; border: 1px solid #e0e7ef; border-radius: 10px;
    overflow: hidden; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.live-card .lc-head {
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    background: linear-gradient(135deg, #0d1b2a, #1a3a5c); color: #fff;
}
.live-card .lc-head .lc-title { font-weight: 700; font-size: 0.95rem; }
.live-card .lc-head .lc-tag {
    margin-left: auto; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
    background: #e5397f; color: #fff; border-radius: 8px; padding: 2px 9px; font-weight: 800;
}
.live-card .lc-body { padding: 16px; }
.live-card video { width: 100%; height: auto; border-radius: 8px; background: #000; }
.live-card .lc-note { margin: 12px 0 0; font-size: 0.82rem; color: #666; }
.live-card .btn-watch {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
    background: linear-gradient(135deg, #0d7a5f, #12a37e); color: #fff; border: none;
    border-radius: 24px; padding: 10px 20px; text-decoration: none;
}
.live-card .btn-watch:hover { transform: translateY(-1px); color: #fff; }

.live-empty {
    text-align: center; padding: 40px 20px; color: #888;
    background: #fff; border: 1px dashed #d5dde8; border-radius: 10px;
}
.live-empty i { font-size: 2.4rem; color: #1a3a5c; display: block; margin-bottom: 10px; }

@media (max-width: 767px) {
    .page-content { padding-left: 8px !important; padding-right: 8px !important; }
    .main-content-inner { padding: 0 !important; }
    .live-hero .hero-right { display: none; }
    .live-hero { padding: 12px 14px; }
    .welcome-alert { font-size: 0.85rem; padding: 9px 12px; }
    .welcome-alert img { height: 14px; }
    .ad-banner { margin: 10px 0; }
    .ad-slot, .ad-placeholder { min-height: 60px; }
}