﻿/* Videos library page */

.cfov-page {
    background-color: #0b0b0b;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Premium Search Box Refinement */
.cfov-search-box {
    flex: 0 0 320px;
}
.cfov-search-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}
.cfov-search-inner:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(184, 148, 63, 0.5);
    box-shadow: 0 0 25px rgba(184, 148, 63, 0.15);
    transform: translateY(-2px);
}
.cfov-search-icon {
    width: 18px;
    height: 18px;
    color: #666;
    margin-right: 12px;
    transition: color 0.4s;
}
.cfov-search-inner:focus-within .cfov-search-icon {
    color: #b8943f;
}
#cfov-search {
    background: none !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 0 !important;
    font-size: 0.9rem;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}
#cfov-search::placeholder {
    color: #555;
    transition: all 0.4s;
}
#cfov-search:focus::placeholder {
    opacity: 0.4;
    transform: translateX(8px);
}

.cfov-controls-outer {
    background: #0b0b0b;
    padding: 10px 0;
    border: none;
    position: sticky;
    top: 0;
    z-index: 100;
}
.cfov-playlist-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.cfov-tab {
    background: none !important;
    border: none !important;
    color: #666;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0 0 10px;
    margin-right: 30px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.cfov-tab.active {
    color: #b8943f;
}
.cfov-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 40%;
    height: 3px;
    background: #3e9c35; /* Green underline as per image */
    border-radius: 3px;
}
.cfov-tab-count {
    background: rgba(255,255,255,0.05);
    color: #888;
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Category Sections */
.cfov-category-section {
    margin-bottom: 60px;
}
.cfov-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

/* Featured Section */
.cfov-featured-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.cfov-player-aspect {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.cfov-player-aspect iframe { width: 100%; height: 100%; border: none; }

.cfov-featured-play {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.cfov-featured-play .cfov-player-aspect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cfov-featured-play:hover .cfov-player-aspect img {
    transform: scale(1.03);
}

.cfov-featured-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    transition: background 0.3s ease;
}

.cfov-featured-play:hover .cfov-featured-play-overlay {
    background: rgba(0, 0, 0, 0.38);
}

.cfov-featured-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #d4af37);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    transition: transform 0.25s ease;
}

.cfov-featured-play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #111;
}

.cfov-featured-play:hover .cfov-featured-play-btn {
    transform: scale(1.08);
}

.cfov-featured-play .cfov-vid-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.cfov-feat-actions {
    margin-bottom: 24px;
}

.cfov-share-btn,
.cfov-lb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.08);
    color: #e8d5a3;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cfov-share-btn:hover,
.cfov-lb-share-btn:hover {
    background: rgba(201, 168, 76, 0.16);
    border-color: rgba(201, 168, 76, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.cfov-share-btn svg,
.cfov-lb-share-btn svg {
    width: 16px;
    height: 16px;
}

.cfov-lb-share-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    position: absolute;
    top: 1.5rem;
    right: 5.5rem;
    z-index: 100;
}

.cfov-lb-main--player {
    position: relative;
    overflow: hidden;
}

/* Block YouTube's bottom-right "More videos" overlay on embeds */
.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-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cfov-feat-label {
    color: #b8943f;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}
.cfov-feat-title { font-size: 2.2rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.cfov-feat-desc { color: #888; font-size: 1rem; margin-bottom: 30px; line-height: 1.6; }

.cfov-feat-next {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
}
.cfov-next-thumb {
    width: 140px;
    position: relative;
    flex-shrink: 0;
}
.cfov-next-thumb img { width: 100%; border-radius: 8px; }
.cfov-next-body h4 { font-size: 0.95rem; margin: 0 0 5px; color: #fff; }
.cfov-next-body .cfov-channel { display: block; font-size: 0.75rem; color: #888; }
.cfov-next-body .cfov-stats { font-size: 0.75rem; color: #666; }


.sv-card-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0; /* Square cards as in image */
}

.cfov-thumb { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px 8px 0 0; }
.cfov-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cfov-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.cfov-card-body p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.cfov-channel-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.cfov-av-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}
.cfov-av-small img { width: 100%; height: 100%; object-fit: cover; }
.cfov-ch-name { display: block; font-size: 0.8rem; color: #fff; font-weight: 500; }
.cfov-ch-stats { font-size: 0.75rem; color: #666; }

/* Existing Info Card Overrides */
.cfov-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cfov-controls-bar { flex-direction: column; align-items: stretch; gap: 20px; }
    .cfov-search-box { flex: none; width: 100%; max-width: none; }
    .cfov-info-card { flex-direction: column; text-align: center; gap: 30px; }
    .cfov-info-left { flex-direction: column; }
    .cfov-info-right { width: 100%; justify-content: center; }
    .cfov-series-hero { grid-template-columns: 1fr; gap: 30px; }
    .cfov-strip-row { grid-template-columns: 1fr; gap: 20px; }
    /* Single-row horizontal scroll — overrides cfo-premium flex-wrap: wrap */
    .cfov-playlist-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 0;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .cfov-playlist-tabs::-webkit-scrollbar {
        display: none;
    }
    .cfov-tab {
        flex-shrink: 0;
    }
}

/* Series Hero Styles Refined */
.cfov-series-hero {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.1fr;
    gap: 30px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px 30px;
    border-radius: 24px;
    margin-bottom: 80px;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.cfov-series-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 40%; height: 100%;
    background: radial-gradient(circle at center, rgba(184, 148, 63, 0.05), transparent 70%);
}
.cfov-hero-label { color: #b8943f; font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; }
.cfov-hero-title { font-size: 2.2rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.cfov-hero-author { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cfov-hero-author img { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(184, 148, 63, 0.3); object-fit: cover; }
.cfov-hero-author span { font-size: 0.8rem; color: #888; font-weight: 500; }
.cfov-hero-desc { color: #777; margin-bottom: 25px; line-height: 1.5; font-size: 0.85rem; max-width: 95%; }

.cfov-hero-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    padding: 14px 30px; 
    background: rgba(184, 148, 63, 0.15); 
    border: 1px solid rgba(184, 148, 63, 0.4); 
    color: #fff; 
    border-radius: 100px; 
    text-decoration: none; 
    font-weight: 700;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(184, 148, 63, 0.1);
}
.cfov-hero-btn .cfov-btn-icon { color: #b8943f; display: flex; align-items: center; justify-content: center; transform: scale(1.2); }
.cfov-hero-btn svg { width: 24px; height: 24px; }
.cfov-hero-btn:hover { 
    background: #b8943f; 
    color: #000; 
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 148, 63, 0.4);
}
.cfov-hero-btn:hover .cfov-btn-icon { color: #000; }

.cfov-hero-progress { display: flex; gap: 10px; margin-top: 50px; }
.cfov-hero-progress span { height: 3px; background: rgba(255,255,255,0.1); flex: 1; border-radius: 10px; position: relative; }
.cfov-hero-progress span.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    width: 100%;
    border-radius: 10px;
}

.cfov-hero-player-wrap { 
    position: relative; 
    width: 100%; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 2px solid #b8943f; 
    box-shadow: 0 0 50px rgba(184,148,63,0.3);
    cursor: pointer;
    transition: 0.4s;
}
.cfov-hero-player-wrap:hover { transform: scale(1.02); }
.cfov-hero-player-wrap img { width: 100%; height: auto; display: block; border-radius: 18px; }

.cfov-hero-pl-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.1);
}
.cfov-hero-pl-progress::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 45%; height: 100%;
    background: #b8943f;
    box-shadow: 0 0 10px #b8943f;
}

.cfov-playlist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding: 0 10px; }
.cfov-playlist-header span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.cfov-playlist-nav { display: flex; gap: 8px; }
.cfov-playlist-nav button { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s;
}
.cfov-playlist-nav button:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.cfov-playlist-nav button svg { width: 16px; height: 16px; }

.cfov-playlist-list { display: flex; flex-direction: column; gap: 8px; }
.cfov-pl-item { display: flex; gap: 15px; padding: 15px; border-radius: 16px; transition: 0.3s; cursor: pointer; border: 1px solid transparent; }
.cfov-pl-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.05); }
.cfov-pl-item.active { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.cfov-pl-thumb { width: 120px; position: relative; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.cfov-pl-thumb img { width: 100%; display: block; border-radius: 10px; }
.cfov-pl-dur { position: absolute; bottom: 8px; right: 8px; font-size: 0.7rem; background: rgba(0,0,0,0.8); color: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.cfov-pl-info { flex: 1; }
.cfov-pl-info h4 { font-size: 0.95rem; font-weight: 600; margin: 0 0 8px; line-height: 1.3; color: #fff; }
.cfov-pl-stats { font-size: 0.8rem; color: #777; font-weight: 500; }
.cfov-pl-progress { height: 3px; background: rgba(184, 148, 63, 0.2); width: 100%; margin-top: 12px; border-radius: 10px; position: relative; overflow: hidden; }
.cfov-pl-progress::after { content: ''; position: absolute; inset: 0; width: 40%; background: #b8943f; box-shadow: 0 0 10px #b8943f; }

/* Strip Styles Refined */
.cfov-series-strip-wrap { margin-bottom: 80px; }
.cfov-strip-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 40px; color: #fff; letter-spacing: -0.5px; }
.cfov-strip-row { display: grid; grid-template-columns: 1.2fr 2.8fr; gap: 40px; }

.cfov-strip-info-box { position: relative; padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.cfov-strip-left-meta { display: flex; flex-direction: column; gap: 20px; }
.cfov-sl-thumb { width: 100%; aspect-ratio: 16/9; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.cfov-sl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cfov-sl-thumb::after {
    content: '';
    position: absolute;
    inset: 0; background: rgba(0,0,0,0.2);
}
.cfov-sl-info h4 { font-size: 1.8rem; line-height: 1.2; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cfov-sl-info p { color: #888; font-size: 1rem; line-height: 1.6; }

.cfov-strip-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.cfov-strip-item, .cfov-strip-more { cursor: pointer; transition: 0.3s; }
.cfov-strip-item:hover, .cfov-strip-more:hover { transform: translateY(-5px); }

.cfov-si-thumb, .cfov-sm-thumb { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.cfov-si-thumb img, .cfov-sm-thumb img { width: 100%; display: block; border-radius: 16px; }
.cfov-si-dur { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.8); font-size: 0.75rem; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); z-index: 2; }

.cfov-si-progress-track {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: rgba(255,255,255,0.1);
}
.cfov-si-progress-fill {
    height: 100%; background: #b8943f;
    box-shadow: 0 0 10px #b8943f;
}

.cfov-si-info h4 { font-size: 1.1rem; line-height: 1.4; font-weight: 700; margin-bottom: 8px; color: #fff; }
.cfov-si-stats { font-size: 0.9rem; color: #777; font-weight: 500; }

.cfov-sm-thumb img { filter: brightness(0.3) blur(2px); }
.cfov-sm-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.cfov-sm-count { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cfov-sm-link { font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 5px; color: #fff; background: rgba(255,255,255,0.1); padding: 6px 16px; border-radius: 100px; backdrop-filter: blur(5px); }
.cfov-sm-link svg { width: 14px; height: 14px; color: #fff; }

.cfov-sm-playlist-icon {
    position: absolute; bottom: 10px; right: 10px;
    width: 32px; height: 32px; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #fff; z-index: 2;
}
.cfov-sm-playlist-icon svg { width: 18px; height: 18px; }

/* Responsive Refinements */
@media (max-width: 1200px) {
    .cfov-series-hero { grid-template-columns: 1fr 1fr; }
    .cfov-series-hero-right { grid-column: span 2; }
    .cfov-strip-row { grid-template-columns: 1fr; gap: 30px; }
    .cfov-strip-info-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-right: 0; padding-bottom: 30px; }
}

@media (max-width: 768px) {
    .cfov-container { padding: 0 15px !important; }
    .cfov-featured-row { grid-template-columns: 1fr; gap: 30px; }
    .cfov-series-hero { grid-template-columns: 1fr; padding: 20px 15px; gap: 20px; }
    .cfov-series-hero-right { grid-column: span 1; }
    .cfov-hero-title { font-size: 1.8rem; }
    .cfov-hero-desc { max-width: 100%; }

    .cfov-pl-item { padding: 10px; gap: 10px; }
    .cfov-pl-thumb { width: 90px; }
    .cfov-lb-content { flex-direction: column; width: 98vw; max-height: 95vh; margin: 10px; }
    #cfov-lb-sidebar { width: 100%; height: auto; max-height: 35vh; border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
    .cfov-lb-main { aspect-ratio: 16/9; width: 100%; flex: none; }
    #cfov-lightbox-close { top: 0.5rem; right: 0.5rem; width: 36px; height: 36px; font-size: 1rem; }
    
    .cfov-strip-list { grid-template-columns: 1fr; gap: 20px; }
    .cfov-strip-row { gap: 30px; }
    .cfov-sl-info h4 { font-size: 1.4rem; }
    .cfov-strip-title { font-size: 1.6rem; margin-bottom: 25px; }
    .cfov-series-strip-wrap { margin-bottom: 60px; }
    .cfov-playlist-header { margin-bottom: 15px; }
}

/* Lightbox Sidebar Specific Styles */
.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-track { background: transparent; }
.cfov-custom-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.cfov-custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
