/* ========================================
   VIDEO LIST COMPACT STYLE - UNIVERSAL
   Use for: index, category, tag, search
   Save as: assets/css/video-list-compact.css
   ======================================== */

.video-list-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.video-list-compact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
}

.video-item-compact {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.video-item-compact:last-child {
    border-bottom: 0 !important;
}

.video-item-compact:hover {
    background: rgba(200, 30, 30, 0.05);
}

/* ========== THUMBNAIL ========== */
.video-thumb-small {
    position: relative !important;
    display: block !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 101px !important;
    min-height: 101px !important;
    max-height: 101px !important;
    border-radius: 6px;
    overflow: hidden;
    background: #2a2a2a;
    flex-shrink: 0 !important;
}

.video-thumb-small img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
    transition: transform 0.3s ease;
}

.video-item-compact:hover .video-thumb-small img {
    transform: scale(1.05);
}

.thumb-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

/* ========== VIDEO INFO ========== */
.video-info-compact {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.video-title-compact {
    margin: 2px 0 8px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title-compact a {
    color: inherit;
    text-decoration: none;
}

.video-item-compact:hover .video-title-compact a {
    color: #c81e1e;
}

/* ========== FIGHTERS ROW ========== */
.video-fighters-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
}

.fighter-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fighter-link:hover {
    color: #c81e1e;
    text-decoration: underline;
}

.vs {
    opacity: 0.7;
    font-size: 13px;
    color: #888;
    font-weight: normal;
}

/* ========== FOOTER ROW ========== */
.video-footer-row {
    margin-top: auto;
    padding-top: 4px;
    font-size: 13px;
}

.video-category {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-category:hover {
    color: #c81e1e;
    text-decoration: underline;
}

.video-category i {
    font-size: 12px;
    color: #c81e1e;
}

/* ========== CODE BADGES ========== */
.video-code-compact {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.video-code-compact.UFC { background: #d4af37; color: #000; }
.video-code-compact.KSW { background: #0066cc; color: #fff; }
.video-code-compact.BFL { background: #ff6600; color: #fff; }
.video-code-compact.Bellator { background: #006633; color: #fff; }
.video-code-compact.PFL { background: #1e88e5; color: #fff; }
.video-code-compact.ONE { background: #000; color: #fff; border: 1px solid #c81e1e; }
.video-code-compact.Cage { background: #8b0000; color: #fff; }
.video-code-compact.LFA { background: #cc0000; color: #fff; }

/* ========== HOVER BAR ========== */
.video-item-compact {
    position: relative;
}

.video-item-compact::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: #c81e1e;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.video-item-compact:hover::before {
    transform: scaleY(1);
}

/* ========== ANIMATIONS ========== */
.video-item-compact {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.video-item-compact:nth-child(1) { animation-delay: 0.05s; }
.video-item-compact:nth-child(2) { animation-delay: 0.1s; }
.video-item-compact:nth-child(3) { animation-delay: 0.15s; }
.video-item-compact:nth-child(4) { animation-delay: 0.2s; }
.video-item-compact:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== LOADING SHIMMER ========== */
.video-thumb-small img[loading="lazy"] {
    background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 768px) {
    .video-list-container { 
        padding: 15px 10px;
        margin: 15px 0;
    }
    
    .video-list-compact { 
        gap: 12px; 
    }
    
    .video-item-compact { 
        gap: 12px !important; 
    }
    
    .video-thumb-small {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        height: 84px !important;
        min-height: 84px !important;
        max-height: 84px !important;
    }
    
    .video-title-compact { 
        font-size: 16px !important; 
    }
    
    .video-fighters-row { 
        font-size: 13px; 
    }
    
    .video-footer-row { 
        font-size: 12px; 
    }
    
    .video-code-compact {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 6px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 480px) {
    .video-list-container { 
        padding: 12px 8px;
        margin: 12px 0;
    }
    
    .video-list-compact { 
        gap: 10px; 
    }
    
    .video-item-compact { 
        gap: 10px !important;
        padding: 8px 0 !important;
    }
    
    .video-thumb-small {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
    }
    
    .video-title-compact { 
        font-size: 15px !important;
        margin: 0 0 6px !important;
    }
    
    .video-fighters-row { 
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .video-footer-row { 
        font-size: 11px; 
    }
    
    .fighter-link {
        font-size: 12px;
    }
}

/* ========== PRINT ========== */
@media print {
    .video-list-container {
        background: transparent;
        border: 1px solid #000;
    }
    
    .video-thumb-small { 
        width: 100px !important;
        min-width: 100px !important;
        height: 56px !important;
    }
    
    .thumb-label, 
    .video-code-compact { 
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
    
    .video-item-compact::before {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
.video-thumb-small:focus,
.video-title-compact a:focus,
.fighter-link:focus,
.video-category:focus {
    outline: 2px solid #c81e1e;
    outline-offset: 2px;
}

/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #aaa;
}

.no-results p {
    font-size: 16px;
}