/* ===== SCRS Video Library ===== */

/* Sidebar menu */
#vlSidebarMenu, #vlSidebarMenu ul { list-style: none; padding: 0; margin: 0; }
#vlSidebarMenu .vl-parent { margin-bottom: 4px; }

.vl-toggle {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: #174873; color: #fff;
    cursor: pointer; border-radius: 3px; user-select: none; font-size: 14px;
}
.vl-toggle:hover, .vl-toggle.vl-open { background: #0d2e4e; }
.vl-submenu { display: none; background: #eef2f7; padding: 4px 0; margin-bottom: 4px; }

.vl-series-parent { margin: 2px 6px; }
.vl-series-toggle {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; background: #2a6099; color: #fff;
    cursor: pointer; border-radius: 2px; font-size: 13px; user-select: none;
}
.vl-series-toggle:hover, .vl-series-toggle.vl-open { background: #1a4a7a; }

.vl-series-submenu { display: none; background: #f9f9f9; padding: 3px 0; }
.vl-series-submenu li a,
.vl-submenu li a.vl-acronym-link {
    display: block; padding: 6px 20px; color: #333;
    text-decoration: none; font-size: 13px;
}
.vl-series-submenu li a:hover,
.vl-series-submenu li a.vl-active-link,
.vl-submenu li a.vl-acronym-link:hover,
.vl-submenu li a.vl-active-link {
    background: #dce8f5; color: #174873; font-weight: bold;
}

.vl-arrow { font-style: normal; font-size: 10px; transition: transform 0.2s; }
.vl-toggle.vl-open .vl-arrow,
.vl-series-toggle.vl-open .vl-arrow { transform: rotate(90deg); }
.vl-count { font-size: 11px; opacity: 0.8; font-weight: normal; }

/* Thumbnail */
.vl-thumb { position: relative; display: inline-block; width: 100%; cursor: pointer; }
.vl-thumb img { display: block; width: 100%; border-radius: 4px; }
.vl-thumb .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.82); color: #fff;
    font-size: 22px; padding: 10px 14px; border-radius: 50%;
    pointer-events: none; line-height: 1; transition: transform 0.15s, background 0.15s;
}
.vl-thumb:hover .play-btn {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.12);
}

/* ===== Video List Card ===== */
.vl-video-card {
    display: flex;
    gap: 16px;
    border: 1px solid #1b599a !important;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.vl-video-card:hover { box-shadow: 0 3px 12px rgba(27,89,154,0.15); }

/* Thumbnail */
.vl-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}
.vl-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.vl-card-thumb .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(255,0,0,0.82); color: #fff;
    font-size: 20px; padding: 8px 12px;
    border-radius: 50%; pointer-events: none; line-height: 1;
    transition: transform 0.15s, background 0.15s;
}
.vl-card-thumb:hover .play-btn { background: rgba(255,0,0,1); transform: translate(-50%,-50%) scale(1.12); }

/* Body */
.vl-card-body { flex: 1; min-width: 0; }

.vl-type-badge {
    display: inline-block;
    background: #1b599a; color: #fff;
    font-size: 11px; padding: 2px 8px;
    border-radius: 3px; margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.vl-card-title { margin: 0 0 8px; font-size: 16px; }
.vl-card-title a { color: #1b599a; text-decoration: none; }
.vl-card-title a:hover { text-decoration: underline; }

/* Speaker row */
.vl-card-speaker { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.vl-speaker-photo {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid #1b599a;
}
.vl-speaker-info { display: flex; flex-direction: column; font-size: 13px; }
.vl-speaker-info strong { color: #222; }
.vl-designation { color: #555; }
.vl-affiliation { color: #888; font-size: 12px; }

.vl-abstract { font-size: 13px; color: #666; margin: 0; }

/* Responsive */
@media (max-width: 600px) {
    .vl-video-card { flex-direction: column; }
    .vl-card-thumb { width: 100%; height: 180px; }
}

/* Video list panels */

.vl-player-wrap { border: 2px solid #174873; border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.vl-player-header { background: #174873; color: #fff; padding: 10px 16px; }
.vl-player-header h4 { margin: 0; font-size: 16px; }
.vl-player-body { padding: 16px; }

/* ===== Detail Page Tabs ===== */
.vl-tabs-nav {
    list-style: none; padding: 0; margin: 0 0 0 0;
    display: flex; border-bottom: 2px solid #1b599a;
}
.vl-tab-btn {
    padding: 8px 20px; cursor: pointer;
    font-weight: 500; font-size: 14px; color: #1b599a;
    border: 1px solid transparent; border-bottom: none;
    border-radius: 4px 4px 0 0; margin-right: 3px;
    background: #f5f8fc;
    transition: background 0.15s;
}
.vl-tab-btn:hover { background: #dce8f5; }
.vl-tab-btn-active {
    background: #1b599a !important; color: #fff !important;
    border-color: #1b599a;
}
.vl-tab-panel {
    border: 1px solid #1b599a; border-top: none;
    padding: 16px; border-radius: 0 0 4px 4px;
}
.vl-tab-body { font-size: 14px; line-height: 1.7; color: #333; }

/* Play thumbnail */
.vl-play-thumb { position: relative; cursor: pointer; display: inline-block; width: 100%; max-width: 480px; }
.vl-play-thumb img { display: block; width: 100%; border-radius: 4px; }
.vl-play-thumb .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(255,0,0,0.85); color: #fff;
    font-size: 28px; padding: 12px 16px; border-radius: 50%;
    pointer-events: none; line-height: 1;
}
.vl-play-thumb:hover .play-btn { background: rgba(255,0,0,1); }

/* Speaker row inside tab */
.vl-speaker-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.vl-speaker-row .vl-speaker-photo {
    width: 60px; height: 60px; border-radius: 50%;
    object-fit: cover; border: 2px solid #1b599a; flex-shrink: 0;
}
.vl-speaker-photo{
    width: 50px !important;
}