/* General Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 56px;
}

a {
    color: #065fd4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 500;
    font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
    background-color: white;
    height: calc(100vh - 56px);
    overflow-y: auto;
    border-right: 1px solid #e5e5e5;
}

.sidebar .nav-link {
    color: #333;
    border-radius: 0 20px 20px 0;
    padding: 8px 16px;
    margin-bottom: 2px;
}

.sidebar .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
}

.sidebar .nav-link.active {
    background-color: rgba(0,0,0,0.1);
    font-weight: 500;
}

.sidebar-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Video Cards */
.video-card {
    border: none;
    background: none;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    font-size: 0.8rem;
}

/* Categories */
.categories::-webkit-scrollbar {
    display: none;
}

.categories {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ad Units */
.ad-unit {
    overflow: hidden;
}

.ad-leaderboard {
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.ad-banner {
    max-width: 469px;
    margin-left: auto;
    margin-right: auto;
}

.ad-square {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .ad-leaderboard, .ad-banner, .ad-square {
        width: 100%;
    }
}