/* TreeKnow V142.7 — cambios puntuales, sin afectar Lecture ni el móvil aprobado. */
/* Home / Cursos / Temas: las miniaturas del tráiler caben siempre en la barra. */
@media (min-width:1024px) and (pointer:fine) {
 .tk-v75-native-shell .tk-chapter-hover-card {width:clamp(158px,12vw,184px)!important;max-width:calc(100% - 12px)!important}
 .tk-v75-native-shell .tk-chapter-hover-caption {font-size:clamp(12px,.91vw,14px)!important;padding:7px 5px 5px!important}
 .tk-v75-native-shell .tk-player .tk-chapter-active-title {font-size:clamp(14px,1.06vw,17px)!important;max-width:min(21vw,235px)!important;font-weight:750!important}
 /* Course individual: discreto aumento del título y la tarjeta de conversión. */
 .tk-course-page .course-preview-frame .tk-player .tk-chapter-active-title {font-size:clamp(14px,1vw,17px)!important;max-width:min(21vw,220px)!important}
 .tk-course-page .course-preview-frame .tk-preview-cta:not(.tk-is-fullscreen .tk-preview-cta) {width:min(88%,390px)!important;gap:12px!important;padding:10px 11px 10px 14px!important}
 .tk-course-page .course-preview-frame .tk-preview-cta-copy strong {font-size:clamp(14px,.98vw,16px)!important}
 .tk-course-page .course-preview-frame .tk-preview-cta-copy span {font-size:clamp(11.5px,.78vw,13px)!important}
 .tk-course-page .course-preview-frame .tk-preview-cta-btn {height:38px!important;padding:0 13px!important}
 .tk-course-page .course-preview-frame .tk-preview-cta-label {font-size:clamp(11px,.82vw,13.5px)!important}
}
/* Course + all reviews modal: name, verified check, flag, status share one visual row. */
#course-ratings-wrap .reviewed-user-name.tk-v1427-review-author-line,
.tk-reviews-modal-name {display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:100%!important;margin-bottom:0!important}
#course-ratings-wrap .tk-v1427-review-author-name,
.tk-reviews-modal-name .tk-v1427-review-author-name {display:inline-block!important;flex:0 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;margin:0!important;text-transform:none!important}
#course-ratings-wrap .tk-v1427-review-author-line>.tk-verified-review-badge,
#course-ratings-wrap .tk-v1427-review-author-line>.tk-review-country,
.tk-reviews-modal-name>.tk-verified-review-badge,
.tk-reviews-modal-name>.tk-review-country{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;margin:0!important}
#course-ratings-wrap .tk-v1427-review-author-line>.tk-audience-badge,
.tk-reviews-modal-name>.tk-audience-badge {display:inline-flex!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;line-height:1.2!important;margin:0 0 0 2px!important;white-space:nowrap!important;text-transform:none!important}
.tk-badge-compact{display:none!important}
/* La columna de comentarios mantiene nombre, bandera y distinción sin reordenarse. */
#tkLectureComments .tk-comment-author .tk-comment-country-flag {order:0}
#tkLectureComments .tk-comment-author .tk-audience-badge {order:0;margin:0!important}
@media (max-width:768px){
 #course-ratings-wrap .tk-v1427-review-author-line {width:100%!important}
 #course-ratings-wrap .tk-v1427-review-author-line>.tk-audience-badge,
 .tk-reviews-modal-name>.tk-audience-badge{padding:2px 6px!important;font-size:9.5px!important}
 .tk-audience-badge .tk-badge-full{display:none!important}
 .tk-audience-badge .tk-badge-compact{display:inline!important}
}

/* V142.8 — insignias coherentes, sin ocupar el tamaño de los nombres (ambas vistas de reseñas). */
#course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge,
.tk-reviews-modal-name > small.tk-audience-badge {
  display:inline-flex!important;align-items:center!important;align-self:center!important;
  width:max-content!important;max-width:fit-content!important;min-height:0!important;
  padding:2px 6px!important;margin:0 0 0 2px!important;
  font-family:system-ui,-apple-system,sans-serif!important;font-size:10px!important;
  font-weight:650!important;line-height:1.25!important;letter-spacing:0!important;
  border-radius:999px!important;white-space:nowrap!important;box-shadow:none!important;
}
#course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge.is-student,
.tk-reviews-modal-name > small.tk-audience-badge.is-student {
  background:#f6f7f9!important;color:#606777!important;border:1px solid #e5e8ee!important;
}
.tk-audience-badge.is-staff{background:#edf3f7!important;color:#3a5568!important;border:1px solid #d9e3e9!important}
#tkLectureComments .tk-audience-badge.is-staff{background:#263743!important;color:#cee1f0!important;border-color:#405769!important}
#tkLectureComments #course-discussion-wrap .tk-comment-relative-time {
  display:block!important;color:#8b929f!important;font-size:10.5px!important;
  line-height:1.35!important;margin:5px 0 7px!important;padding:0!important;font-weight:450!important;
}
#tkLectureComments #course-discussion-wrap .tk-comment-author{flex-wrap:nowrap!important}
#tkLectureComments #course-discussion-wrap .tk-comment-author > a{flex:0 1 auto!important}
#tkLectureComments #course-discussion-wrap .tk-comment-author > .tk-audience-badge {font-size:10px!important}
@media (max-width:768px){
 #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge,
 .tk-reviews-modal-name > small.tk-audience-badge{font-size:9px!important;padding:2px 5px!important}
}
/* V142.8 — tarjeta CTA de tráiler: espacio real entre texto y botón incluso con DevTools. */
@media (min-width:769px) and (pointer:fine){
 .tk-course-page .course-preview-frame .tk-preview-cta:not(.tk-is-fullscreen .tk-preview-cta){
   width:min(94%,480px)!important;max-width:calc(100% - 24px)!important;
   display:flex!important;justify-content:space-between!important;align-items:center!important;
   gap:clamp(17px,1.6vw,28px)!important;padding:10px 12px 10px 15px!important;
 }
 .tk-course-page .course-preview-frame .tk-preview-cta-copy{flex:0 1 auto!important;min-width:max-content!important}
 .tk-course-page .course-preview-frame .tk-preview-cta-btn{flex:0 0 auto!important;min-width:0!important}
}

/* V142.9: etiqueta de reseñas deliberadamente discreta. Modal aprobado intacto. */
@media (min-width:769px){
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge,
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge > span {
    font-size:13px!important;line-height:1.2!important;
  }
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge {
    padding:2px 6px!important;
  }
}
@media (max-width:768px){
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge,
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge > span {
    font-size:11px!important;line-height:1.2!important;
  }
  #course-ratings-wrap .tk-v1427-review-author-line > small.tk-audience-badge {
    padding:1px 5px!important;
  }
}
