.chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 20px;
}

.chip {
    appearance: none;
    padding: .6rem;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0 !important;
    background-color: var(--lit-teal);
    color: var(--infleqtion-blue);
    line-height: 1;

}

.chip--active {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .06) inset;
}

.chip:active {
    transform: scale(0.98);
}

/* Hide items when filtered out */
.video-item.hidden {
    display: none !important;
}

/* inline tag chips under each video (uses new classes) */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.video-tag {
    padding: .28rem .65rem;
    font-size: .82rem;
    line-height: 1;
    background-color: var(--lit-teal);
    color: var(--infleqtion-blue);
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 8px;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-item {
    text-align: center;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h4 {
    margin: 15px 0 5px;
    font-size: 1rem;
    font-weight: 500;
}

.video-item p,
.video-item small {
    display: block;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #333;
}