/* ===========================================
   COMPONENTE: Tarjeta de Video Unificada
   =========================================== */

.video-card {
    background: var(--color-bg-elevated);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'><path d='M8 10 L8 3.5 C8 2.3 9 1.5 10 1.5 C11 1.5 12 2.3 12 3.5 L12 11 L12 8 C12 7 13 6.3 14 6.3 C15 6.3 16 7 16 8 L16 12 L16 9.5 C16 8.5 17 7.8 18 7.8 C19 7.8 20 8.5 20 9.5 L20 16 C20 20 17 22.5 13.5 22.5 L11 22.5 C8.5 22.5 6.5 20.8 5.5 18.5 L3 12.5 C2.5 11.3 3.3 10.3 4.3 10.3 C5 10.3 5.5 10.6 5.8 11.1 L8 14 Z' fill='%23a445ff' stroke='white' stroke-width='1.2' stroke-linejoin='round'/></svg>") 6 1, pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Thumbnail Container */
.video-card .thumb-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* Botón: enviar miniatura al briefing (aparece en hover si hay briefing) */
.video-card .thumb-to-briefing {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(10,14,23,0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(236,72,153,0.5);
    color: #f9a8d4;
    border-radius: 50%;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'><path d='M8 10 L8 3.5 C8 2.3 9 1.5 10 1.5 C11 1.5 12 2.3 12 3.5 L12 11 L12 8 C12 7 13 6.3 14 6.3 C15 6.3 16 7 16 8 L16 12 L16 9.5 C16 8.5 17 7.8 18 7.8 C19 7.8 20 8.5 20 9.5 L20 16 C20 20 17 22.5 13.5 22.5 L11 22.5 C8.5 22.5 6.5 20.8 5.5 18.5 L3 12.5 C2.5 11.3 3.3 10.3 4.3 10.3 C5 10.3 5.5 10.6 5.8 11.1 L8 14 Z' fill='%23a445ff' stroke='white' stroke-width='1.2' stroke-linejoin='round'/></svg>") 6 1, pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 5;
    padding: 0;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.video-card .thumb-to-briefing:hover { background: rgba(236,72,153,0.3); color: #fff; border-color: #ec4899; transform: scale(1.1); }
.video-card .thumb-to-briefing:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.video-card .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumb-img {
    transform: scale(1.1);
}

.video-card .play-overlay {
    position: absolute;
    top: 104px;
    left: 181px;
    width: 21%;
    height: 38%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card .play-overlay i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Badges */
.video-card .vsr-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transition: opacity 0.3s ease;
    box-shadow: 0px 4px 10px rgb(0 0 0)
}
.video-card:hover .vsr-badge { opacity: 0; pointer-events: none; }

.video-card .vsr-badge.vsr-high { background: #e53935; }
.video-card .vsr-badge.vsr-medium { background: #ff9800; }
.video-card .vsr-badge.vsr-good { background: #4caf50; }
.video-card .vsr-badge.vsr-default { background: rgba(0, 0, 0, 0.7); }

.video-card .duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Video Info */
.video-card .video-info {
    padding: 12px 15px 15px;
}

.video-card .channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.video-card .channel-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.video-card .channel-meta {
    flex: 1;
    min-width: 0;
}

.video-card .channel-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.video-card .channel-name {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.video-card .channel-name:hover {
    color: var(--color-brand);
}

.video-card .meta-separator {
    color: var(--color-text-muted);
}

.video-card .likes-count {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.video-card .comments-count {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Title */
.video-card .video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* margin-bottom: 18px; */
    height: 35px;
}

/* Stats Footer */
.video-card .stats-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border: 1px solid var(--color-border);
}

.video-card .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-card .stat-value {
    font-size: 17px;
    font-weight: 700;
}

.video-card .stat-value.green { color: var(--color-success); }
.video-card .stat-value.white { color: var(--color-text-secondary); }
.video-card .stat-value.red { color: var(--color-error); }

.video-card .stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}






