/* Modern Minimalist Dark Theme */
:root {
    --bg-body: #050505;
    --border: #1f1f1f;
}

body {
    background-color: var(--bg-body);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: #fff !important;
}

/* Capsule Category Bar */
.category-scroll-container {
    background: #050505;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 60px; /* Below Navbar */
    z-index: 1000;
}
.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}
.cat-pill {
    background: #1a1a1a;
    color: #ccc;
    padding: 8px 18px;
    border-radius: 100px; /* Capsule shape */
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.2s ease;
    font-weight: 500;
}
.cat-pill:hover, .cat-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    text-decoration: none;
}

/* Video Grid */
.video-card {
    text-decoration: none;
    display: block;
}
.video-card:hover {
    text-decoration: none;
}

.thumb-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
    transition: transform 0.2s ease;
}
.video-card:hover .thumb-wrapper {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-info {
    padding-top: 12px;
}

.video-title {
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card:hover .video-title {
    color: #fff;
}

.video-meta {
    color: #777;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Fallback */
.fallback-thumb {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Pagination */
.pagination .page-link {
    background: #111;
    border-color: #333;
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: #fff;
    border-color: #fff;
    color: #000;
}
