/* EDUHUNT R167 — Programme-specific Video Lecture Library */
.video-library-r167{display:grid;gap:14px}
.video-library-toolbar{display:grid;grid-template-columns:minmax(210px,1.3fr) repeat(4,minmax(135px,.7fr));gap:10px;align-items:end;padding:12px}
.video-library-toolbar .form-field{min-width:0}
.video-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.video-library-card{position:relative;display:grid;gap:9px;padding:14px;border:1px solid #d5e1ea;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(31,63,88,.06);min-width:0}
.video-library-card.inactive{opacity:.78;border-style:dashed}
.video-library-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.video-library-card h3{font-size:16px;line-height:1.25;margin:0;color:#17324b}
.video-library-chapter{font-size:13px;font-weight:750;color:#526c80;line-height:1.3}
.video-library-meta{display:flex;flex-wrap:wrap;gap:6px}
.video-library-chip{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border-radius:999px;background:#eff6fb;border:1px solid #caddea;color:#2a506b;font-size:11px;font-weight:800;line-height:1.15}
.video-library-chip.programme{background:#eefaf5;border-color:#bfe4d2;color:#176446}
.video-library-chip.status-active{background:#e7f8ef;border-color:#9fd5b7;color:#11613a}
.video-library-chip.status-inactive{background:#f8ecee;border-color:#e0b3ba;color:#8a2734}
.video-library-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
.video-library-actions .button{min-height:36px;padding:7px 11px}
.video-library-operator-note{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #b9d8eb;border-radius:12px;background:#f1f9ff;color:#284b63;font-size:12px;line-height:1.4}
.video-programme-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}
.video-programme-check{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 10px;border:1px solid #ccdce8;border-radius:10px;background:#f8fbfd;color:#243f54;font-weight:750;font-size:13px;cursor:pointer}
.video-programme-check input{width:17px;height:17px;accent-color:#0879be;flex:0 0 auto}
.video-programme-tools{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.video-programme-tools .button{min-height:32px;padding:5px 9px;font-size:12px}
.video-library-empty{grid-column:1/-1}
.video-library-r167 .edu-video-player{margin-top:4px}
.video-library-r167 .edu-video-frame{aspect-ratio:16/9;min-height:260px}
.video-player-context-r167{font-size:12px;font-weight:750;color:#5e778b;margin-top:3px}

body[data-desktop-theme="dark"] .video-library-card,
html[data-theme="dark"] .video-library-card{background:#071b2f;border-color:#2f536e;color:#edf7ff;box-shadow:none}
body[data-desktop-theme="dark"] .video-library-card h3,
html[data-theme="dark"] .video-library-card h3{color:#f6fbff}
body[data-desktop-theme="dark"] .video-library-chapter,
body[data-desktop-theme="dark"] .video-player-context-r167,
html[data-theme="dark"] .video-library-chapter,
html[data-theme="dark"] .video-player-context-r167{color:#abc2d5}
body[data-desktop-theme="dark"] .video-library-chip,
html[data-theme="dark"] .video-library-chip{background:#0b2b45;border-color:#345b76;color:#dceefa}
body[data-desktop-theme="dark"] .video-library-chip.programme,
html[data-theme="dark"] .video-library-chip.programme{background:#0c382f;border-color:#2d6e59;color:#8ff0c4}
body[data-desktop-theme="dark"] .video-library-chip.status-active,
html[data-theme="dark"] .video-library-chip.status-active{background:#0d3c2c;border-color:#2b7553;color:#9af2c1}
body[data-desktop-theme="dark"] .video-library-chip.status-inactive,
html[data-theme="dark"] .video-library-chip.status-inactive{background:#3a1d25;border-color:#804654;color:#ffc0c9}
body[data-desktop-theme="dark"] .video-library-operator-note,
html[data-theme="dark"] .video-library-operator-note{background:#0a2840;border-color:#315d79;color:#d8eaf7}
body[data-desktop-theme="dark"] .video-programme-check,
html[data-theme="dark"] .video-programme-check{background:#0a2238;border-color:#33556f;color:#edf7ff}
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-library-card{background:#071b2f!important;border-color:#28465f!important;color:#edf6ff!important}
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-library-card h3{color:#f6fbff!important}
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-library-chapter,
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-player-context-r167{color:#aac0d4!important}
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-library-chip{background:#0b2a45!important;border-color:#31536d!important;color:#e7f4ff!important}
body[data-portal-role="STUDENT"][data-student-theme="dark"] .video-library-chip.programme{background:#0c382f!important;border-color:#2d6e59!important;color:#8ff0c4!important}

@media(max-width:1100px){.video-library-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .video-library-r167{gap:10px}
  .video-library-toolbar{grid-template-columns:1fr 1fr;gap:8px;padding:9px}
  .video-library-toolbar .video-search-field{grid-column:1/-1}
  .video-library-grid{grid-template-columns:1fr;gap:8px}
  .video-library-card{padding:11px;border-radius:12px;gap:7px}
  .video-library-card h3{font-size:15px}
  .video-library-chapter{font-size:12px}
  .video-library-chip{font-size:10.5px;min-height:23px}
  .video-library-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .video-library-actions .button{width:100%;min-width:0}
  .video-programme-checks{grid-template-columns:1fr}
  .video-programme-check{min-height:40px}
  .video-library-r167 .edu-video-frame{min-height:200px}
}
