/* Topic Hub — single efcfo_custom_topic (topic/*) — homepage compact rhythm */

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

.single-efcfo_custom_topic #cfo-premium-body {
    background: #070707 !important;
    scroll-behavior: smooth;
}

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

.thub-page {
    background: #070707;
    color: #e8e4db;
    min-height: 100vh;
    padding-top: var(--cfo-header-offset, 64px);
    margin-top: 0;
}

body.admin-bar .thub-page {
    padding-top: calc(32px + var(--cfo-header-offset, 64px));
}

@media (max-width: 782px) {
    body.admin-bar .thub-page {
        padding-top: calc(46px + var(--cfo-header-offset, 64px));
    }
}

.thub-page > .thub-hero-banner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ─── Start Here–style split hero ─── */
.thub-hero-banner {
    position: relative;
    overflow: hidden;
    background: #070707;
}

.thub-hero-split {
    display: grid;
    grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    min-height: 0;
    max-height: 6.75rem;
    border-bottom: 1px solid rgba(184, 148, 63, 0.22);
}

.thub-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0.4rem 1.25rem 0.4rem max(2rem, calc((100vw - 1440px) / 2 + 2rem));
    text-align: left;
    background:
        radial-gradient(90% 140% at 0% 80%, rgba(184, 148, 63, 0.2), transparent 58%),
        linear-gradient(160deg, #16130e 0%, #0c0c0c 62%);
}

.thub-hero-inner::before {
    content: '';
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: -35%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(232, 206, 140, 0.22), transparent);
    animation: thub-hero-glow 8s ease-in-out infinite;
    pointer-events: none;
}

.thub-hero-inner > * {
    position: relative;
    z-index: 1;
}

@keyframes thub-hero-glow {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.25;
    }
    50% {
        transform: translateX(280%);
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thub-hero-inner::before {
        animation: none;
    }
}

.thub-hero-kicker {
    margin: 0 0 0.2rem;
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8943f;
}

.thub-hero-title {
    margin: 0 0 0.28rem;
    max-width: 34rem;
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
}

.thub-hero-desc {
    display: none;
}

.thub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.thub-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.18rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 999px;
    background: #b8943f;
    color: #111;
    font-family: 'Libre Franklin', 'Franklin Fallback', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #b8943f;
}

.thub-hero-btn:hover {
    background: #d4b56a;
    color: #111;
}

.thub-hero-visual {
    position: relative;
    min-height: 6.75rem;
    max-height: 6.75rem;
    overflow: hidden;
}

.thub-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thub-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    background: #080808;
    border-top: 1px solid rgba(184, 148, 63, 0.16);
}

.thub-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    min-width: 9.5rem;
    min-height: 2.55rem;
    padding: 0.32rem 1.35rem;
    border: 0;
    border-left: 1px solid rgba(184, 148, 63, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.thub-hero-stat:first-child {
    border-left: 0;
}

.thub-hero-stat:hover {
    border-color: rgba(184, 148, 63, 0.18);
    background: rgba(184, 148, 63, 0.1);
    transform: none;
}

.thub-hero-stat:hover .thub-hero-stat-num,
.thub-hero-stat:hover .thub-hero-stat-label {
    color: #b8943f;
}

.thub-hero-stat-num {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.thub-hero-stat-label {
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thub-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.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: 0.75rem 0 2.25rem;
    scroll-margin-top: calc(var(--cfo-header-offset, 64px) + 12px);
}

.thub-section {
    margin-bottom: 0.85rem;
    padding: 0.95rem 1.15rem 1.05rem;
    scroll-margin-top: calc(var(--cfo-header-offset, 64px) + 12px);
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(184, 148, 63, 0.07), transparent 55%),
        #0b0b0b;
    border: 1px solid rgba(184, 148, 63, 0.18);
    border-radius: 14px;
}

.thub-section:first-child {
    border-top: 1px solid rgba(184, 148, 63, 0.18);
    padding-top: 1.15rem;
}

.thub-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b8943f;
}

.thub-kicker::before {
    content: '';
    width: 1.35rem;
    height: 1px;
    background: #b8943f;
}

.thub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(184, 148, 63, 0.14);
    flex-wrap: wrap;
}

.thub-section-title {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
    letter-spacing: -0.02em;
}

.thub-section-sub {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(245, 240, 230, 0.55);
}

.thub-section-count {
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8943f;
    white-space: nowrap;
    padding: 0.28rem 0.7rem;
    background: rgba(184, 148, 63, 0.08);
    border: 1px solid rgba(184, 148, 63, 0.22);
    border-radius: 999px;
}

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

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

.thub-mc-explore-inner {
    max-width: none;
    margin: 0;
    padding: 0;
}

.thub-page .thub-mc-category-grid.cs-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    counter-reset: thubmc;
}

.thub-page .thub-mc-card.cs-category-card {
    min-height: 0;
    padding: 0.95rem 1rem 0.9rem;
    background: #0d0d0d;
    border: 1px solid rgba(184, 148, 63, 0.28);
    border-radius: 12px;
    box-shadow: none;
}

.thub-page .thub-mc-card.cs-category-card:hover {
    border-color: #b8943f;
    transform: translateY(-2px);
    box-shadow: none;
}

.thub-page .thub-mc-card .cs-category-card-icon {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0;
    line-height: 0;
}

.thub-page .thub-mc-card .cs-category-card-icon::before {
    counter-increment: thubmc;
    content: counter(thubmc, decimal-leading-zero);
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #b8943f;
}

.thub-page .thub-mc-card .cs-category-card-title {
    font-size: 0.98rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thub-page .thub-mc-card .cs-category-card-desc,
.thub-page .thub-mc-card .cs-category-card-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
}

.thub-page .thub-mc-card .cs-category-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background: #b8943f;
    color: #111;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Card grid */
.thub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.thub-section-expandable:not(.is-expanded) .thub-grid > :nth-child(n+5) {
    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: 1.15rem;
    padding-top: 0.25rem;
}

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

.thub-view-more {
    cursor: pointer;
    min-width: 0;
    min-height: 34px;
    padding: 0.35rem 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #b8943f !important;
    border: 1px solid #b8943f;
}

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

.thub-view-more:hover {
    border-color: #b8943f;
    background: rgba(184, 148, 63, 0.12);
    color: #d4b56a !important;
}

.thub-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.05rem 1.1rem 0.95rem;
    background: #0d0d0d;
    border: 1px solid rgba(184, 148, 63, 0.22);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.thub-card:hover {
    border-color: #b8943f;
    background: rgba(184, 148, 63, 0.06);
    transform: translateY(-3px);
    box-shadow: none;
}

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

.thub-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    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(184, 148, 63, 0.95);
    background: rgba(184, 148, 63, 0.08);
    border: 1px solid rgba(184, 148, 63, 0.22);
    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: #b8943f;
    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: #0d0d0d;
    border: 1px solid rgba(184, 148, 63, 0.28);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: none;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.thub-page .thub-blog-card:hover {
    border-color: #b8943f;
    background: #101010;
    transform: translateY(-3px);
    box-shadow: none;
}

.thub-page .thub-blog-card .thub-blog-card__thumb {
    height: 8rem;
    overflow: hidden;
    border-radius: 0;
}

.thub-page .thub-blog-card .thub-blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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: 0.85rem 0.95rem 0.9rem;
}

.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: #0d0d0d;
    border: 1px solid rgba(184, 148, 63, 0.28);
    border-radius: 12px;
    box-shadow: none;
    color: inherit;
}

.thub-page .thub-video-card.cfov-video-card:hover {
    border-color: #b8943f;
    box-shadow: none;
}

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

.thub-page .thub-video-card__body.cfov-card-body {
    padding: 0.85rem 0.95rem 0.9rem;
}

.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-lb-player-share {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 52px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: auto;
}

.cfov-lb-share-btn--player {
    position: static;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    font-size: inherit;
    box-shadow: none;
}

.cfov-lb-share-btn--player svg {
    width: 22px;
    height: 22px;
}

.cfov-lb-share-btn--player:hover,
.cfov-lb-share-btn--player:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: transparent;
    color: #fff;
    transform: none;
}

.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-lb-player-share {
        width: 72px;
        height: 48px;
    }
}

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

.thub-empty {
    text-align: left;
    padding: 1.15rem 1.25rem 1.25rem;
    background: #0b0b0b;
    border: 1px solid rgba(184, 148, 63, 0.18);
    border-radius: 14px;
}

.thub-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: #fff;
    margin: 0 0 0.35rem;
}

.thub-empty p {
    color: rgba(245, 240, 230, 0.55);
    max-width: 40rem;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.thub-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    counter-reset: thubrel;
}

.thub-related-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.95rem 1rem 0.9rem;
    background: #0d0d0d;
    border: 1px solid rgba(184, 148, 63, 0.28);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.thub-related-card:hover {
    border-color: #b8943f;
    background: rgba(184, 148, 63, 0.06);
    transform: translateY(-3px);
    box-shadow: none;
}

.thub-related-xref {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: #b8943f;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.thub-related-xref::before {
    counter-increment: thubrel;
    content: counter(thubrel, decimal-leading-zero);
}

.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: 0.85rem;
    font-family: 'IBM Plex Mono', 'Plex Mono Fallback', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8943f;
}

@media (max-width: 1100px) {
    .thub-grid,
    .thub-related-grid,
    .thub-page .thub-mc-category-grid.cs-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thub-hero-stat {
        min-width: calc(33.33% - 1px);
        padding: 0.32rem 0.7rem;
    }

    .thub-hero-split {
        grid-template-columns: 1fr;
        max-height: none;
    }

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

    .thub-hero-visual {
        min-height: 6.75rem;
        max-height: 6.75rem;
    }
}

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

    .thub-hero-inner {
        padding: 0.65rem 1.1rem;
    }

    .thub-hero-title {
        font-size: clamp(1.05rem, 5vw, 1.3rem);
    }

    .thub-hero-stat {
        min-width: calc(50% - 1px);
        padding: 0.4rem 0.65rem;
    }

    .thub-grid,
    .thub-related-grid,
    .thub-page .thub-mc-category-grid.cs-category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .thub-card {
        min-height: 0;
        padding: 0.95rem 1rem 0.85rem;
    }

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