/* YouTube-Style Modern Dark Theme */
:root {
    --bg-main: #0f0f0f;
    --bg-card: #0f0f0f; /* Seamless cards */
    --bg-hover: #272727;
    --text-main: #f1f1f1;
    --text-sec: #aaaaaa;
    --brand-color: #ff0000;
    --accent: #3ea6ff;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Roboto', 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
    padding: 0.7rem 1rem;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link { color: var(--text-main) !important; font-weight: 500; }

/* Filter Chips (The buttons at the top) */
.filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0 20px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-chip {
    display: inline-block;
    background-color: #272727;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}
.filter-chip:hover {
    background-color: #3f3f3f;
    color: #fff;
}
.filter-chip.active {
    background-color: var(--text-main);
    color: #000;
    border-color: var(--text-main);
}

/* Video Cards */
.video-card {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.video-card:hover .thumb-container img {
    border-radius: 0; /* YouTube style edge sharp on hover optional */
}
.thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px;
    background-color: #222;
}
.thumb-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card:hover .thumb-container img {
    transform: scale(1.05);
}

/* Metadata & Avatar */
.card-body { padding: 12px 0 0 0 !important; display: flex; gap: 10px; }
.avatar-placeholder {
    width: 36px;
    height: 36px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.meta-info h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}
.meta-info p {
    font-size: 0.85rem;
    color: var(--text-sec);
    margin: 0;
}

/* Badges (Duration / Type) */
.time-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Shorts Vertical Grid override */
.shorts-wrapper .thumb-container {
    padding-top: 177%; /* 9:16 Aspect Ratio */
    border-radius: 10px;
}