/* Tệp đã nộp của bài — dành cho thầy cô (2026-11-16) */
.tf-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px 18px; margin: 0 0 1.25rem; }
.tf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tf-title { font-weight: 700; color: #0F172A; font-size: 1rem; }
.tf-count { color: #64748B; font-weight: 600; }
.tf-add { background: #4F46E5; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.tf-add:hover { background: #4338CA; }
.tf-hint { color: #64748B; font-size: .82rem; margin: 6px 0 12px; }
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.tf-folder { grid-column: 1 / -1; font-weight: 700; color: #3730A3; font-size: .85rem; padding: 6px 0 0; border-top: 1px dashed #E2E8F0; }
.tf-folder:first-child { border-top: 0; padding-top: 0; }
.tf-empty { grid-column: 1 / -1; color: #64748B; font-size: .9rem; padding: 18px; text-align: center; background: #F8FAFC; border-radius: 10px; }
.tf-item { border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; background: #F8FAFC; display: flex; flex-direction: column; }
.tf-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 108px; background: #EEF2FF; border: 0; padding: 0; cursor: zoom-in; }
.tf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-play { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,23,42,.65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tf-doc { font-weight: 800; color: #4F46E5; letter-spacing: 1px; font-size: .9rem; }
.tf-doc.big { font-size: 2rem; }
.tf-name { font-size: .78rem; color: #0F172A; padding: 6px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-meta { font-size: .72rem; color: #64748B; padding: 0 8px; }
.tf-acts { display: flex; gap: 6px; padding: 6px 8px 8px; }
.tf-btn { flex: 1; text-align: center; background: #fff; border: 1px solid #C7D2FE; color: #4F46E5; border-radius: 7px; padding: 4px 0; font-size: .85rem; text-decoration: none; cursor: pointer; }
.tf-btn:hover { background: #EEF2FF; }
.tf-btn.danger { border-color: #FBCFE8; color: #BE185D; }
.tf-btn.danger:hover { background: #FDF2F8; }
.tf-viewer { position: fixed; inset: 0; background: rgba(15,23,42,.94); z-index: 10000; display: none; flex-direction: column; }
.tf-viewer.open { display: flex; }
.tf-vbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #fff; flex-wrap: wrap; }
.tf-vname { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-vpos { color: #CBD5E1; font-size: .85rem; }
.tf-vbtn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: .85rem; cursor: pointer; text-decoration: none; }
.tf-vbtn.danger { background: #BE185D; border-color: #EC4899; }
.tf-vbody { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 56px 16px; }
.tf-vcontent { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.tf-vcontent img, .tf-vcontent video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.tf-vcontent iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 6px; }
.tf-nopreview { color: #E2E8F0; text-align: center; }
.tf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer; }
.tf-nav.prev { left: 8px; } .tf-nav.next { right: 8px; }
@media (max-width: 600px) {
  .tf-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .tf-thumb { height: 92px; }
  .tf-vbody { padding: 0 8px 10px; }
  .tf-nav { width: 34px; height: 34px; font-size: 20px; }
}
