/* File: assets/css/lelib-related.css */

/* --- CONTAINER CHUNG --- */
.tv-single-layout {
    display: flex;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    min-height: 100px; 
}

/* --- CỘT TRÁI --- */
.tv-meta-col {
    flex: 6.5; padding: 12px 16px;
    display: flex; flex-direction: column; 
    justify-content: center; gap: 10px; 
}

/* --- CỘT PHẢI --- */
.tv-related-col {
    flex: 3.5; padding: 12px 16px;
    border-left: 1px solid #e5e7eb;
    background-color: #ffffff;
    display: flex; flex-direction: column;
    justify-content: center; position: relative;
}

/* Header */
.tv-related-heading {
    font-size: 0.7rem; font-weight: 800; 
    text-transform: uppercase; color: #9ca3af; letter-spacing: 0.05em;
    margin: 0 0 20px 0 !important; /* [Đã tăng khoảng cách] */
    display: flex; justify-content: space-between; align-items: center;
}

/* Slider Viewport */
.tv-related-viewport {
    position: relative;
    width: 100%;
    height: 120px; 
    overflow: hidden;
}

.tv-related-list {
    list-style: none; padding: 0; margin: 0;
    width: 100%; height: 100%; position: relative;
}

/* SLIDE LAYER */
.tv-rel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; gap: 10px;
}

.tv-rel-slide.is-active {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

/* ITEM CON */
.tv-rel-item {
    position: relative; width: 100%;
    display: flex; align-items: center;
}

/* Link Layout */
.tv-rel-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit; width: 100%;
}

/* Thumb */
.tv-rel-thumb {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
    background: #f3f4f6; border: 1px solid #e5e7eb;
}
.tv-rel-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Title */
.tv-rel-info { flex: 1; min-width: 0; }
.tv-rel-title {
    font-size: 0.85rem; font-weight: 600; color: #374151; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; transition: color 0.2s;
}
.tv-rel-link:hover .tv-rel-title { color: var(--tv-accent, #2563eb); }

/* --- DOTS NAV (Tĩnh & Clickable) --- */
.tv-slider-nav { 
    display: flex; 
    gap: 6px; 
    align-items: center;
}

.tv-nav-dot {
    display: block;
    width: 6px; height: 6px; 
    background: #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tv-nav-dot:hover {
    background: #d1d5db; 
    transform: scale(1.2);
}

.tv-nav-dot.is-active {
    background: var(--tv-accent, #4A5D23);
    width: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tv-single-layout { flex-direction: column; min-height: 0; }
    .tv-meta-col { border-bottom: 1px solid #e5e7eb; }
    .tv-related-col { border-left: none; padding: 12px 16px; background-color: #f9fafb; }
    .tv-related-viewport { height: 120px; }
}