/* Topic Hub — single efcfo_custom_topic (topic/*) */

.single-efcfo_custom_topic .cfo-top-bar {
    display: none;
}

.single-efcfo_custom_topic #cfo-premium-body {
    background: #000 !important;
}

.single-efcfo_custom_topic .cs-title,
.thub-page.cfo-cs-hero-layout .cs-title {
    text-transform: none;
    letter-spacing: -0.01em;
}

/* ─── Topic hub hero banner ─── */
.single-efcfo_custom_topic .thub-hero-banner.cs-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(300px, 42vh, 460px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 130% 85% at 50% -25%, rgba(201, 168, 76, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 55% 40% at 8% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 92% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #0c0c0c 0%, #060606 52%, #000 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.single-efcfo_custom_topic .thub-hero-banner.cs-hero::before {
    background:
        linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(201, 168, 76, 0.035) 0,
            rgba(201, 168, 76, 0.035) 1px,
            transparent 1px,
            transparent 14px
        );
    opacity: 0.75;
}

.single-efcfo_custom_topic .thub-hero-banner.cs-hero::after {
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%),
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 168, 76, 0.1) 0%, transparent 72%);
}

.thub-hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: min(720px, 90vw);
    height: 360px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.16) 0%, transparent 68%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.thub-hero-frame {
    position: absolute;
    inset: clamp(0.85rem, 2vw, 1.35rem);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 3px;
    pointer-events: none;
    z-index: 0;
}

.thub-hero-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(201, 168, 76, 0.45);
    border-style: solid;
}

.thub-hero-corner--tl {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.thub-hero-corner--tr {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.thub-hero-corner--bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.thub-hero-corner--br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.single-efcfo_custom_topic .thub-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1100px, 100%);
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.25rem, 4.5vw, 3.75rem);
}

.single-efcfo_custom_topic .thub-hero-brand {
    margin-bottom: 1.35rem;
}

.single-efcfo_custom_topic .thub-hero-position {
    margin: 0 0 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.72);
}

.single-efcfo_custom_topic .thub-hero-tagline {
    margin-bottom: 1rem;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    color: rgba(212, 188, 110, 0.95);
}

.thub-hero-title-wrap {
    position: relative;
    margin: 0 auto 1.35rem;
    max-width: 820px;
}

.thub-hero-title-wrap::before,
.thub-hero-title-wrap::after {
    content: '';
    display: block;
    width: min(140px, 24vw);
    height: 1px;
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.55) 50%, transparent);
}

.thub-hero-title-wrap::before {
    margin-bottom: 1.35rem;
}

.thub-hero-title-wrap::after {
    margin-top: 1.35rem;
}

.single-efcfo_custom_topic .thub-hero-title {
    margin: 0;
    font-size: clamp(2.35rem, 5.2vw, 3.85rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-transform: none;
    color: #f8f6f1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

@supports (-webkit-background-clip: text) {
    .single-efcfo_custom_topic .thub-hero-title {
        background: linear-gradient(118deg, #fff8ee 0%, #ffffff 42%, #d4bc6e 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
    }
}

.single-efcfo_custom_topic .thub-hero-desc {
    max-width: 620px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245, 240, 230, 0.78);
}

.thub-hero-meta {
    margin-bottom: 1.35rem;
}

.thub-hero-total {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.08);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(212, 188, 110, 0.95);
}

.thub-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.thub-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 6.25rem;
    padding: 0.9rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thub-hero-stat:hover {
    border-color: rgba(201, 168, 76, 0.28);
    transform: translateY(-1px);
}

.thub-hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1;
    color: #f5f0e6;
}

.thub-hero-stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.82);
}

.thub-page {
    background: #000;
    color: #e8e4db;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
}

.thub-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.thub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-decoration: none !important;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
}

.thub-btn:hover {
    transform: translateY(-1px);
}

.thub-btn-primary {
    background: #c9a84c;
    color: #050505 !important;
    border: 1px solid #c9a84c;
}

.thub-btn-primary:hover {
    opacity: 0.9;
}

.thub-btn-outline {
    background: #000;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.thub-btn-outline:hover {
    background: rgba(201, 168, 76, 0.08);
}

/* Content sections */
.thub-content {
    padding: 3.5rem 0 5.5rem;
}

.thub-section {
    margin-bottom: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.thub-section:first-child {
    border-top: none;
    padding-top: 0;
}

.thub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.thub-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f5f0e6;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.thub-section-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #7a7684;
}

.thub-section-count {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #c9a84c;
    white-space: nowrap;
    padding: 8px 14px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 6px;
}

.thub-section-head--plain {
    justify-content: flex-start;
}

.thub-mc-category-grid {
    margin-top: 0;
}

.thub-mc-explore-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Card grid */
.thub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.thub-section-expandable:not(.is-expanded) .thub-grid > :nth-child(n+21) {
    display: none;
}

.thub-section-mc-accordion .thub-section-head {
    margin-bottom: 2.25rem;
}

.thub-mc-accordion-shell {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.thub-mc-groups {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.thub-mc-category-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.thub-mc-category-group:last-child {
    border-bottom: none;
}

.thub-mc-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 1.65rem 1.75rem 1.75rem 1.5rem;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        padding 0.25s ease;
}

.thub-mc-category-head:hover {
    background: rgba(201, 168, 76, 0.04);
    border-left-color: rgba(201, 168, 76, 0.45);
}

.thub-mc-category-group.is-expanded .thub-mc-category-head {
    background: rgba(201, 168, 76, 0.07);
    border-left-color: #c9a84c;
    padding-bottom: 1.35rem;
}

.thub-mc-category-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: #f5f0e6;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.thub-mc-category-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.thub-mc-category-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #c9a84c;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.08);
}

.thub-mc-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.thub-mc-category-head:hover .thub-mc-expand-btn,
.thub-mc-category-group.is-expanded .thub-mc-expand-btn {
    background: rgba(201, 168, 76, 0.18);
    border-color: rgba(201, 168, 76, 0.55);
}

.thub-mc-expand-icon {
    display: block;
    transition: transform 0.25s ease;
}

.thub-mc-category-group:not(.is-expanded) .thub-mc-expand-icon {
    transform: rotate(-90deg);
}

.thub-mc-category-panel {
    padding: 0.5rem 1.75rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.thub-mc-category-panel[hidden] {
    display: none !important;
}

.thub-mc-category-panel .thub-grid {
    margin-top: 0.25rem;
}

.thub-mc-category-link-wrap {
    margin: 0 0 1.25rem;
    padding-bottom: 0.25rem;
}

.thub-mc-category-archive-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #c9a84c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thub-mc-category-archive-link:hover {
    color: #e8d5a3;
}

@media (max-width: 768px) {
    .thub-mc-category-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.35rem 1.25rem 1.45rem;
    }

    .thub-mc-category-meta {
        width: 100%;
        justify-content: space-between;
    }

    .thub-mc-category-title {
        padding-right: 0;
    }

    .thub-mc-category-panel {
        padding: 0.5rem 1.25rem 1.5rem;
    }
}

.thub-view-more-wrap {
    text-align: center;
    margin-top: 2.25rem;
    padding-top: 0.5rem;
}

.thub-section-expandable.is-expanded .thub-view-more-wrap {
    display: none;
}

.thub-view-more {
    cursor: pointer;
    min-width: 220px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thub-view-more-icon {
    flex-shrink: 0;
    display: block;
}

.thub-view-more:hover {
    border-color: rgba(201, 168, 76, 0.45);
    background: rgba(201, 168, 76, 0.06);
}

.thub-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 22px 18px;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.07) 0%, #0e0e0e 38%, #0a0a0a 100%);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.thub-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.1) 0%, #121212 38%, #0d0d0d 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.08);
}

.thub-card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #c9a84c;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.9;
}

.thub-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #f5f0e6;
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thub-card-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    padding-top: 4px;
}

.thub-card-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 5px 12px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: rgba(201, 168, 76, 0.9);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thub-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #c9a84c;
    transition: color 0.2s ease;
}

.thub-card:hover .thub-card-action {
    color: #e8d5a3;
}

.thub-card-video {
    cursor: pointer;
}

/* Topic hub blog cards — image on top, content below */
.thub-page .thub-blog-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.07) 0%, #0e0e0e 38%, #0a0a0a 100%);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.thub-page .thub-blog-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.1) 0%, #121212 38%, #0d0d0d 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.08);
}

.thub-page .thub-blog-card .thub-blog-card__thumb {
    border-radius: 0;
}

.thub-page .thub-blog-card:hover .thub-blog-card__thumb img {
    transform: scale(1.05);
}

.thub-blog-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.thub-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.05rem;
}

.thub-blog-card__body .thub-card-label {
    margin-bottom: 0.55rem;
}

.thub-blog-card__body .thub-card-title {
    font-size: 1.05rem;
    -webkit-line-clamp: 2;
    flex-grow: 0;
    margin-bottom: 0.55rem;
}

.thub-blog-card__desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thub-blog-card__footer {
    margin-top: auto;
    width: 100%;
}

.thub-blog-card__footer .thub-card-tag {
    margin-bottom: 0.65rem;
}

.thub-blog-card__footer .thub-card-action {
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    .thub-blog-card__body .thub-card-title {
        font-size: 0.98rem;
    }
}

/* Topic hub video cards — match videos-new layout on dark theme */
.thub-page .thub-video-card.cfov-video-card {
    min-height: 0;
    padding: 0;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.07) 0%, #0e0e0e 38%, #0a0a0a 100%);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    color: inherit;
}

.thub-page .thub-video-card.cfov-video-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.08);
}

.thub-page .thub-video-card .cfov-thumb {
    border-radius: 12px 12px 0 0;
}

.thub-page .thub-video-card__body.cfov-card-body {
    padding: 1rem 1.1rem 1.05rem;
}

.thub-page .thub-video-card__body .thub-card-label {
    margin-bottom: 0.55rem;
}

.thub-page .thub-video-card__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f5f0e6;
    line-height: 1.4;
    margin: 0 0 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thub-page .thub-video-card:hover .cfov-card-body h3 {
    color: #e8d5a3;
}

.thub-page .thub-video-card__body p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    -webkit-line-clamp: 2;
}

.thub-video-card__footer {
    margin-top: auto;
    width: 100%;
}

.thub-video-card__footer .thub-card-tag {
    margin-bottom: 0.65rem;
}

.thub-video-card__footer .thub-card-action {
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    .thub-page .thub-video-card__body h3 {
        font-size: 0.98rem;
    }
}

/* Video lightbox (shared with videos-new page) */
.cfov-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#cfov-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 100;
}

#cfov-lightbox-share.cfov-lb-share-btn {
    position: absolute;
    top: 1.5rem;
    right: 5.5rem;
    z-index: 100;
}

.cfov-lb-content {
    display: flex;
    width: min(1280px, 95vw);
    max-height: 85vh;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.cfov-lb-main {
    flex: 1;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.cfov-lb-main--player::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 52px;
    width: 112px;
    height: 72px;
    z-index: 3;
    pointer-events: auto;
    background: transparent;
}

#cfov-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#cfov-lb-sidebar {
    width: 360px;
    background: #0f0f0f;
    display: none;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cfov-lb-sidebar-head {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cfov-lb-sidebar-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

#cfov-lb-pl-count {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

#cfov-lb-pl-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cfov-lb-pl-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.cfov-lb-pl-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cfov-lb-pl-active {
    background: rgba(184, 148, 63, 0.1);
    border-color: rgba(184, 148, 63, 0.2);
}

.cfov-lb-pl-thumb {
    width: 100px;
    position: relative;
    flex-shrink: 0;
}

.cfov-lb-pl-thumb img {
    width: 100%;
    border-radius: 8px;
}

.cfov-lb-pl-thumb span {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.65rem;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
}

.cfov-lb-pl-info h4 {
    font-size: 0.85rem;
    color: #fff;
    margin: 0 0 4px;
    font-weight: 600;
    line-height: 1.3;
}

.cfov-lb-pl-info span {
    font-size: 0.75rem;
    color: #666;
}

.cfov-lb-pl-active .cfov-lb-pl-info h4 {
    color: #b8943f;
}

.cfov-custom-scroll::-webkit-scrollbar {
    width: 5px;
}

.cfov-custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .cfov-lb-content {
        flex-direction: column;
        width: 98vw;
        max-height: 95vh;
        margin: 10px;
    }

    #cfov-lb-sidebar {
        width: 100%;
        max-height: 35vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cfov-lb-main {
        width: 100%;
        flex: none;
    }

    #cfov-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    #cfov-lightbox-share.cfov-lb-share-btn {
        top: 0.5rem;
        right: 3.25rem;
        padding: 8px 12px;
        font-size: 0.62rem;
    }

    #cfov-lightbox-share.cfov-lb-share-btn span {
        display: none;
    }
}

.thub-chev {
    flex-shrink: 0;
    display: block;
    width: 12px;
    height: 12px;
}

.thub-empty {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed rgba(201, 168, 76, 0.25);
    border-radius: 8px;
}

.thub-empty h2 {
    font-family: 'Playfair Display', serif;
    color: #f5f0e6;
    margin-bottom: 0.5rem;
}

.thub-empty p {
    color: #6e6a78;
    max-width: 520px;
    margin: 0 auto;
}

/* Related Topics */
.thub-related {
    margin-top: 1rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.thub-related-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f5f0e6;
    margin: 0 0 0.75rem;
}

.thub-related-desc {
    margin: 0 0 1.75rem;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.6;
    color: #6e6a78;
}

.thub-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.thub-related-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 24px 24px 20px;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.05) 0%, transparent 55%);
    border: 1px solid rgba(201, 168, 76, 0.16);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.thub-related-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.1) 0%, rgba(255, 255, 255, 0.02) 55%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.thub-related-xref {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #7a7684;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.thub-related-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5f0e6;
    line-height: 1.35;
    margin: 0 0 auto;
}

.thub-related-link {
    margin-top: 18px;
    font-size: 12px;
    color: #c9a84c;
}

@media (max-width: 1100px) {
    .thub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thub-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .thub-wrap {
        padding: 0 20px;
    }

    .single-efcfo_custom_topic .thub-hero-banner.cs-hero {
        min-height: auto;
    }

    .single-efcfo_custom_topic .thub-hero-inner {
        padding: 1.75rem 1rem 2.5rem;
    }

    .thub-hero-frame {
        inset: 0.75rem 0.85rem 1rem;
    }

    .thub-hero-corner {
        width: 14px;
        height: 14px;
    }

    .single-efcfo_custom_topic .thub-hero-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .thub-hero-stats {
        gap: 0.55rem;
    }

    .thub-hero-stat {
        min-width: calc(50% - 0.55rem);
        flex: 1 1 calc(50% - 0.55rem);
        padding: 0.75rem 0.85rem;
    }

    .thub-hero {
        padding-top: 100px;
        padding-bottom: 2.5rem;
    }

    body.admin-bar .thub-hero {
        padding-top: calc(46px + 100px);
    }

    .thub-hero-inner {
        padding: 1.75rem 1.25rem 0;
    }

    .thub-series-tag {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }

    .thub-breadcrumb {
        letter-spacing: 2px;
        font-size: 0.62rem;
    }

    .thub-stats {
        gap: 10px;
    }

    .thub-stat-pill {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
        padding: 10px 12px;
    }

    .thub-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .thub-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .thub-card {
        min-height: 200px;
        padding: 20px 18px 16px;
    }

    .thub-stats {
        gap: 1.25rem 1.5rem;
    }

    .thub-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
