/* QDTU open video library: independent from authenticated LMS course progression */
#videos .qv-shell{--qv-brand:#087b73;--qv-border:rgba(103,127,132,.22);--qv-panel:var(--hx-surface,#fff);--qv-ink:var(--hx-ink,#173238);--qv-muted:var(--hx-muted,#62767a);padding:0 0 16px;color:var(--qv-ink)}
#videos .qv-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;border-radius:12px;padding:26px 28px;background:linear-gradient(115deg,#063d48 0%,#075e58 63%,#0d7a69 100%);color:#fff;margin:22px 0 18px;overflow:hidden}
#videos .qv-hero h2{color:#fff!important;font-size:clamp(24px,3vw,34px)!important;line-height:1.14!important;margin:8px 0 9px!important;letter-spacing:-.025em!important}
#videos .qv-hero p{color:#e1f5f2!important;max-width:720px;font-size:15px!important;line-height:1.6;margin:0}
#videos .qv-eyebrow{color:#c3f5eb;font-weight:750;font-size:12px;letter-spacing:.09em;text-transform:uppercase}
#videos .qv-counter{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;min-width:115px;padding:12px 18px;border-radius:9px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.23)}
#videos .qv-counter b{font-size:42px;line-height:1;font-variant-numeric:tabular-nums;color:#fff}
#videos .qv-counter span{font-size:12px;color:#e1f5f2;margin-top:8px}
#videos .qv-filters{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,.65fr);gap:14px;padding:16px;background:var(--qv-panel);border:1px solid var(--qv-border);border-radius:10px}
#videos .qv-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;color:var(--qv-ink)}
#videos .qv-filters select,#videos .qv-filters input{min-height:46px;width:100%;max-width:100%;padding:0 12px;background:var(--qv-panel);color:var(--qv-ink);border:1px solid var(--qv-border);border-radius:7px;font-size:14px}
#videos .qv-filters :is(select,input):focus-visible{outline:3px solid rgba(12,153,135,.32);outline-offset:2px}
#videos .qv-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:27px 0 14px}
#videos .qv-heading h3{font-size:clamp(19px,2.2vw,24px)!important;line-height:1.25!important;margin:0 0 5px!important;color:var(--qv-ink)!important}
#videos .qv-heading p{font-size:13px!important;color:var(--qv-muted)!important;margin:0}
#videos .qv-heading-all{padding-top:12px;border-top:1px solid var(--qv-border)}
#videos #qv-visible-count{font-size:13px;color:var(--qv-muted);font-variant-numeric:tabular-nums}
#videos .qv-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#videos .qv-video,#videos .qv-search-card{min-width:0;overflow:hidden;background:var(--qv-panel);border:1px solid var(--qv-border);border-radius:10px;display:flex;flex-direction:column}
#videos .qv-cover{position:relative!important;display:block!important;aspect-ratio:16/9;width:100%;height:auto;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#092d34;overflow:hidden;cursor:pointer}
#videos .qv-cover img{width:100%;height:100%;object-fit:cover;display:block}
#videos .qv-cover span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;background:rgba(255,255,255,.95);color:#063d48;border-radius:50%;font-size:22px;box-shadow:0 9px 22px #0005}
#videos .qv-body{padding:14px 15px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
#videos .qv-body small{font-size:12px;color:var(--qv-muted);line-height:1.4}
#videos .qv-body h3,#videos .qv-search-card h3{margin:0!important;font-size:16px!important;line-height:1.45!important;color:var(--qv-ink)!important;overflow-wrap:anywhere}
#videos .qv-open,#videos .qv-search-card a{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;align-self:start;min-height:37px;padding:8px 13px!important;font-size:13px!important;font-weight:750;color:#fff!important;background:#087b73!important;border:0!important;border-radius:6px!important;text-decoration:none!important;cursor:pointer}
#videos .qv-open:hover,#videos .qv-search-card a:hover{background:#05645e!important}
#videos .qv-course-art{min-height:140px;background:linear-gradient(135deg,#d9eee7,#e7f5ff);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:35px;gap:10px}
#videos .qv-course-art small{font-size:12px;font-weight:750;color:#125a58}
#videos .qv-search-card{padding:20px;gap:9px}
#videos .qv-search-icon{font-size:38px;color:#087b73}
#videos .qv-search-card p{font-size:13px;line-height:1.5;color:var(--qv-muted);margin:0}
#videos .qv-search-card a{margin-top:10px}
#videos .qv-major-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#videos .qv-major{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid var(--qv-border);background:var(--qv-panel);border-radius:9px}
#videos .qv-symbol{font-size:24px;flex:0 0 35px;text-align:center}
#videos .qv-major-info{min-width:0;flex:1}
#videos .qv-major-info small{font-size:11px;color:var(--qv-muted);line-height:1.3}
#videos .qv-major-info h3{font-size:14px!important;line-height:1.4!important;margin:4px 0 0!important;color:var(--qv-ink)!important}
#videos .qv-major-actions{display:flex;gap:7px;flex-direction:column;align-items:stretch}
#videos .qv-major-actions :is(a,button){white-space:nowrap;font-size:12px!important;padding:7px 9px!important;min-height:30px!important;background:transparent!important;color:var(--qv-brand)!important;border:1px solid rgba(8,123,115,.3)!important;border-radius:5px!important;text-decoration:none!important;cursor:pointer;text-align:center;font-weight:700}
#videos .qv-major-actions :is(a,button):hover{background:rgba(8,123,115,.08)!important}
#videos .qv-sentinel{height:2px}
#videos .qv-load-more{width:100%;margin:16px 0 0;min-height:45px!important;background:var(--qv-panel)!important;border:1px solid var(--qv-border)!important;color:var(--qv-ink)!important;border-radius:7px!important;font-size:14px!important;font-weight:700}
#videos .qv-load-more[hidden]{display:none!important}
#videos .qv-disclaimer{border-top:1px solid var(--qv-border);padding-top:13px;margin:20px 0 8px;font-size:12px;line-height:1.65;color:var(--qv-muted)}
#videos .qv-empty{padding:24px;color:var(--qv-muted)}
@media(max-width:1150px){#videos .qv-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#videos .qv-major-grid{grid-template-columns:1fr}}
@media(max-width:640px){#videos .qv-hero{padding:19px;align-items:flex-start}#videos .qv-counter{min-width:70px;padding:10px}#videos .qv-counter b{font-size:28px}#videos .qv-hero h2{font-size:25px!important}#videos .qv-hero p{font-size:13px!important}#videos .qv-filters{grid-template-columns:1fr}#videos .qv-video-grid{grid-template-columns:1fr}#videos .qv-major{flex-wrap:wrap}#videos .qv-major-actions{flex:1 1 100%;flex-direction:row}#videos .qv-major-actions :is(a,button){flex:1}#videos .qv-heading{align-items:start}#videos .qv-heading h3{font-size:19px!important}}
@media(prefers-reduced-motion:reduce){#videos .qv-shell *{scroll-behavior:auto!important}}

/* Ommaviy katalog bosqichma-bosqich yuklanadigan grid marker */
#videos .qv-video-sentinel{grid-column:1 / -1;height:2px;pointer-events:none}
#videos #qv-all-videos>.qv-load-more{grid-column:1 / -1}


/* Open YouTube lessons use the original #videoWatch player, not a second modal. */
html.hx #shell>main #videoWatch.qv-external-viewer .watch-player{
  position:relative!important;isolation:isolate;z-index:1;
  background:#05080e!important;overflow:hidden!important;
  border-radius:8px!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html.hx #shell>main #videoWatch.qv-external-viewer #watchLikeBtn,
html.hx #shell>main #videoWatch.qv-external-viewer .comments-panel{display:none!important}
html.hx #shell>main #videoWatch.qv-external-viewer .watch-info,
html.hx #shell>main #videoWatch.qv-external-viewer .watch-side{
  background:var(--hx-surface,#fff)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html.hx #shell>main #videoWatch.qv-external-viewer .watch-description .qv-native-youtube-link{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  margin:12px 0;padding:12px 18px;min-height:45px;box-sizing:border-box;
  border-radius:7px;border:0;
  color:#fff!important;background:#087b73!important;
  text-decoration:none;font-size:14px;font-weight:750;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error{
  position:relative;width:100%;min-height:min(55vh,440px);
  display:grid;place-items:center;overflow:hidden;
  background:#091e28;color:#fff;
  padding:20px;box-sizing:border-box;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:brightness(.24) blur(5px);pointer-events:none;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error>div{
  position:relative;z-index:1;max-width:480px;
  display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error b{
  color:#fff!important;font-size:19px;line-height:1.35;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error p{
  margin:0;color:#d4e5e6!important;font-size:13px;line-height:1.5;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-native-player-error a{
  display:inline-flex;align-items:center;justify-content:center;
  background:#e23831!important;color:#fff!important;
  padding:12px 16px;border-radius:7px;text-decoration:none;font-size:14px;font-weight:800;
}
html.hx #shell>main #videoWatch.qv-external-viewer .qv-related-native{
  cursor:pointer;border:0;width:100%;
}
