:root {
    --navy: #1a2340;
    --gold: #f0c040;
}

/* ── Facebook channel strip — exact match of YouTube strip ── */
.br-channel-strip {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 24px 0;
}

.br-channel-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.br-channel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    background: #2a3454;
}

.br-channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.br-channel-info {
    flex: 1;
}

.br-channel-name {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.br-channel-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Roboto", sans-serif;
}

.br-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: #fff;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 3px;
    flex-shrink: 0;
    transition:
        background 0.2s,
        color 0.2s !important;
    transform: none !important;
}

.br-channel-link:hover {
    background: #1558b0;
    color: #fff;
    transform: none !important;
}

/* ── Content ── */
.bridges-content {
    background: #f7f5f0;
    padding: 64px 0 80px;
}

.bridges-container {
    max-width: 1800px;
    width: calc(100% - 64px);
    margin: 0 auto;
    padding: 0;
}

/* Cards row — flex so any count centers naturally */
.bridges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 28px;
    justify-content: center;
}

/* ── Card: poster top, info bottom ── */
.bridges-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    border: 1px solid #ede8d8;
    transition:
        box-shadow 0.25s,
        border-color 0.25s;
    flex: 0 1 calc(33.333% - 32px);
    min-width: 280px;
}

.bridges-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

.bridges-poster {
    background: #eae4d5;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.bridges-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.bridges-info {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.bridges-episode-title {
    font-family: "Playfair Display", serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 4px;
}

.bridges-meta {
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.75;
    flex: 1;
}

.bridges-meta p {
    margin-bottom: 3px;
}
.bridges-meta strong {
    color: #333;
}

.bridges-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    padding: 7px 18px;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-family: "Roboto", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    width: fit-content;
    transition:
        background 0.2s,
        color 0.2s;
}

.bridges-video-btn:hover {
    background: var(--navy);
    color: #fff;
}

.bridges-row-divider {
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 28px;
}

/* ── Poster zoom cursor ── */
.bridges-poster img {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.bridges-poster img:hover {
    opacity: 0.88;
}

/* ── Lightbox ── */
.blb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.blb-overlay.open {
    display: flex;
}

.blb-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    animation: blbIn 0.22s ease;
}

@keyframes blbIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.blb-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.blb-close:hover {
    opacity: 1;
}
/* --- Tablets --- */
@media (max-width: 991px) {
    .bridges-row {
        gap: 24px;
    }
    .bridges-card {
        flex: 0 1 calc(50% - 12px);
    }
}

/* --- Mobile Phones: 2-column compact grid --- */
@media (max-width: 576px) {
    .bridges-content {
        padding: 32px 0 48px;
    }

    .bridges-container {
        width: calc(100% - 24px);
    }

    .bridges-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    /* Cards must NOT flex — grid controls sizing */
    .bridges-card {
        flex: none;
        min-width: unset;
        border-radius: 6px;
        cursor: pointer;
    }

    .bridges-poster {
        aspect-ratio: 1 / 1;
    }

    /* Subtle "tap" hint on poster */
    .bridges-poster::after {
        content: "TAP FOR INFO";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(26, 35, 64, 0.78));
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.52rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        font-family: "Roboto", sans-serif;
        text-align: center;
        padding: 18px 4px 5px;
        pointer-events: none;
    }

    .bridges-info {
        padding: 8px 10px 10px;
    }

    .bridges-episode-title {
        font-size: 0.76rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bridges-meta {
        display: none;
    }

    .bridges-video-btn {
        margin-top: 6px;
        padding: 5px 10px;
        font-size: 0.63rem;
        gap: 4px;
    }

    .bridges-row-divider {
        margin-bottom: 14px;
    }
}

/* ── Card Info Popup (mobile) ── */
.br-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.br-popup-overlay.open {
    display: flex;
}

.br-popup-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px 16px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    max-height: 85vh;
    overflow-y: auto;
    animation: sheetUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
}

@keyframes sheetUp {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.br-popup-drag-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
}

.br-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.br-popup-close:hover {
    color: #333;
}

.br-popup-body {
    display: flex;
    gap: 14px;
    padding: 16px 18px 20px;
    align-items: flex-start;
}

.br-popup-thumb {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gold);
    background: #eae4d5;
}

.br-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.br-popup-thumb img:hover {
    opacity: 0.85;
}

.br-popup-text {
    flex: 1;
    min-width: 0;
}

.br-popup-title {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 8px;
}

.br-popup-meta {
    font-family: "Roboto", sans-serif;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
}

.br-popup-meta p {
    margin-bottom: 2px;
}

.br-popup-meta strong {
    color: #333;
}

.br-popup-footer {
    padding: 0 18px 20px;
    border-top: 1px solid #f0ece0;
    padding-top: 14px;
}

.br-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-family: "Roboto", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    width: 100%;
    justify-content: center;
    transition:
        background 0.2s,
        color 0.2s;
}

.br-popup-btn:hover,
.br-popup-btn:active {
    background: var(--navy);
    color: #fff;
}

/* ── Channel strip: Visit Page button bottom-centered on mobile ── */
@media (max-width: 576px) {
    .br-channel-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .br-channel-info {
        width: 100%;
    }

    .br-channel-link {
        width: 100%;
        justify-content: center;
        order: 3;
    }
}
