/* Видеотека «Обучение / Лекции Гуру» — экраны, карточки, обложки, прогресс. */

.vt-page { display: flex; flex-direction: column; gap: 14px; }
.vt-skeleton { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.vt-hero,
.vt-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-hero-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
}
.vt-hero-copy,
.vt-header-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.vt-hero-source {
  margin: 2px 0 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.vt-header-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 620;
}

.vt-progress { display: flex; align-items: center; gap: 10px; margin-top: 2px; }

.vt-back {
  margin-bottom: 14px;
}

.vt-back-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-progress-track {
  position: relative;
  display: block;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-soft);
  overflow: hidden;
  min-width: 60px;
}
.vt-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 2px;
  background: var(--good);
  transition: width .25s ease;
}
.vt-progress-text {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.vt-categories,
.vt-groups { display: flex; flex-direction: column; gap: 10px; }

.vt-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  color: var(--text);
  text-decoration: none;
}
.vt-cat:active { transform: scale(.99); }
.vt-cat:focus-visible { outline: 2px solid #78a5ff; outline-offset: 2px; }
.vt-cat-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--accent);
}
.vt-cat-play { display: grid; place-items: center; }
.vt-cat-play svg { width: 20px; height: 20px; }
.vt-cat-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.vt-cat-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.vt-cat-meta { color: var(--subtle); font-size: 12.5px; line-height: 1.3; }
.vt-cat-progress { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.vt-cat-track { flex: 0 1 130px; }
.vt-cat-progress-text { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.vt-cat-chevron { flex: 0 0 auto; color: var(--subtle); }
.vt-cat-chevron svg { width: 18px; height: 18px; }

.vt-list { display: flex; flex-direction: column; gap: 10px; }

.vt-lecture {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
}
.vt-lecture.is-watched { border-color: rgba(55, 224, 138, .22); }
.vt-lecture-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.vt-lecture-main:focus-visible { outline: 2px solid #78a5ff; outline-offset: 2px; border-radius: 10px; }

.vt-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-raised);
}
.vt-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.vt-thumb-fallback { display: grid; place-items: center; color: var(--subtle); }
.vt-thumb-fallback::after { content: ''; display: block; width: 26px; height: 26px; border-radius: 50%; background: currentColor; opacity: .18; }
.vt-thumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--good);
  color: #06281a;
}
.vt-thumb-badge svg { width: 13px; height: 13px; }
.vt-lecture.is-watched .vt-thumb-badge { display: grid; }

.vt-lecture-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 530;
}
.vt-lecture.is-watched .vt-lecture-title { color: var(--muted); }

.vt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.vt-duration {
  margin-left: auto;
  padding: 9px 2px 9px 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vt-yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: #f00;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.vt-yt:active { transform: scale(.98); }
.vt-yt:focus-visible { outline: 2px solid #78a5ff; outline-offset: 2px; }
.vt-yt-icon { display: grid; place-items: center; }
.vt-yt-icon svg { width: 20px; height: 14px; }

.vt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 560;
}
.vt-toggle-icon { display: grid; place-items: center; color: var(--subtle); }
.vt-toggle-icon svg { width: 15px; height: 15px; }
.vt-toggle:active { transform: scale(.98); }
.vt-toggle:focus-visible { outline: 2px solid #78a5ff; outline-offset: 2px; }
.vt-lecture.is-watched .vt-toggle {
  border-color: rgba(55, 224, 138, .34);
  background: rgba(55, 224, 138, .12);
  color: var(--good);
}
.vt-lecture.is-watched .vt-toggle-icon { color: var(--good); }

@media (min-width: 620px) {
  .vt-lecture { padding: 14px; }
  .vt-thumb { width: 168px; }
  .vt-lecture-main { gap: 16px; }
}

/* Карточка раздела «Лекции Гуру» на экране Обучение (jan-56) */
.vt-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.vt-cover-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('/assets/learning/guru-lectures.webp?v=20261114-guru-v1');
  background-size: cover;
  background-position: center 22%;
}

.vt-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.08) 0%,
    rgba(13, 17, 23, 0.32) 46%,
    rgba(13, 17, 23, 0.78) 74%,
    rgba(13, 17, 23, 0.94) 100%
  );
}

.vt-cover-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 16px 16px;
}

/* Весь текст на фото — белый (по решению владельца 2026-11-14). */
.vt-cover-title {
  font-size: 21px;
  line-height: 1.22;
  font-weight: 650;
  color: #fff;
}

.vt-cover-sub {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.vt-cover .vt-progress {
  margin-top: 4px;
}

.vt-cover .vt-progress-text {
  color: #fff;
}

.vt-cover .vt-progress-track {
  background: rgba(255, 255, 255, 0.3);
}

.vt-cover .vt-progress-fill {
  background: #fff;
}

.vt-cover:active {
  transform: scale(0.985);
}
