/* =====================================================================
   Xoăn Media — THƯ VIỆN ẢNH CHUẨN PINTEREST
   Website: xoanmedia.com
   ===================================================================== */

body[data-page="thu-vien"] {
  background-color: var(--bg-page);
}

/* Ẩn tiêu đề cho SEO */
.tv-an {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================= THANH TAB DÍNH ĐẦU TRANG ================= */
.tv-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: top 0.2s ease;
}

.tv-tabs-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tv-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 2px 0;
}

.tv-tabs::-webkit-scrollbar {
  display: none;
}

.tv-tabs .tab {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid transparent;
}

.tv-tabs .tab:hover {
  background: rgba(0, 0, 0, 0.09);
}

.tv-tabs .tab.on {
  background: var(--text-main);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tv-hanh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tv-tron {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  color: var(--text-main);
}

.tv-tron:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.tv-tron svg {
  width: 19px;
  height: 19px;
}

.tv-tron.active {
  background: var(--accent);
  color: #fff;
}

.sodem {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-page);
}

/* ================= THANH TÌM KIẾM TỨC THÌ ================= */
.tv-search-box {
  max-width: 800px;
  margin: 12px auto 0;
  padding: 0 16px;
  display: none;
}

.tv-search-box.open {
  display: block;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 44px 0 44px;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap .clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.search-input-wrap.has-val .clear-btn {
  display: flex;
}

/* ================= KHUNG CHỨA LƯỚI ẢNH ================= */
.tv-tran {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 16px 80px;
  min-height: 70vh;
}

.tv-dem-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.tv-dem-bar b {
  color: var(--text-main);
}

.active-filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 122, 40, 0.12);
  color: var(--accent-hover);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 500;
}

.filter-tag-badge button {
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

/* ================= MASONRY GRID CHUẨN PINTEREST ================= */
.masonry-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* THẺ ẢNH (PIN CARD) */
.tv-anh {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #E7E3DC;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

.tv-anh:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tv-anh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tv-anh img.da-tai {
  opacity: 1;
}

/* Overlay khi hover */
.tv-anh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 2;
  pointer-events: none;
}

.tv-anh:hover::before {
  opacity: 1;
}

/* Nút Lưu ở góc trên */
.tv-luunut {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scale(0.92);
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tv-anh:hover .tv-luunut {
  opacity: 1;
  transform: scale(1);
}

.tv-anh.da-luu .tv-luunut {
  background: #1A1816;
  opacity: 1;
}

/* Huy hiệu Đã Lưu */
.tv-danhan {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(26, 24, 22, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 10;
}

.tv-anh.da-luu .tv-danhan {
  display: block;
}

/* Nút góc dưới (Share, Like, Zoom) */
.tv-ogoc {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
  z-index: 10;
}

.tv-anh:hover .tv-ogoc {
  opacity: 1;
  transform: translateY(0);
}

.tv-otron {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: #1A1816;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.tv-otron:hover {
  background: #fff;
  transform: scale(1.08);
}

.tv-ocap {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 80px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 10;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-anh:hover .tv-ocap {
  opacity: 1;
}

/* ================= TRẠNG THÁI KHÔNG CÓ KẾT QUẢ ================= */
.tv-concept-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  margin: 30px auto;
  max-width: 540px;
}

.tv-concept-empty b {
  font-size: 18px;
  color: var(--text-main);
  display: block;
  margin-bottom: 8px;
}

.tv-concept-empty p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.tv-concept-empty .chip-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.chip-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #F7F3EC;
}

.chip-btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ================= MÀN XEM CHI TIẾT 1 ẢNH (CLOSEUP) ================= */
.tv-xem {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg-page);
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  padding-bottom: 80px;
}

.tv-xem[data-open] {
  display: block;
  opacity: 1;
}

.xa-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tv-noi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.tv-noi:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Thanh điều hướng Trước/Sau trên đầu màn xem chi tiết */
.xa-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.xa-top-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.xa-top-btn:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.xa-top-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 54px;
  text-align: center;
  letter-spacing: 0.02em;
}

.xa-the {
  max-width: 1040px;
  margin: 30px auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popup);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
}

.xa-anhbox {
  background: #11100F;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.xa-anhbox img {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  animation: xaFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes xaFadeIn {
  from {
    opacity: 0.45;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Nút mũi tên chuyển ảnh floating trên ảnh */
.xa-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-select: none;
}

.xa-nav:hover {
  background: rgba(224, 164, 88, 0.95);
  color: #11100F;
  border-color: rgba(224, 164, 88, 1);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 24px rgba(224, 164, 88, 0.4);
}

.xa-prev {
  left: 14px;
}

.xa-next {
  right: 14px;
}

@media (max-width: 768px) {
  .xa-top-nav {
    gap: 4px;
    padding: 2px 6px;
  }
  .xa-top-btn {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .xa-top-count {
    font-size: 11px;
    min-width: 44px;
  }
  .xa-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .xa-prev { left: 8px; }
  .xa-next { right: 8px; }
}

.xa-giongnut {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 12;
}

.xa-giongnut:hover {
  transform: scale(1.1);
  background: #fff;
}

.xa-than {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.xa-hanh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.xa-hanh .nut {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.xa-hanh .nut svg {
  width: 20px;
  height: 20px;
}

.xa-hanh .nut:hover {
  background: rgba(0, 0, 0, 0.1);
}

.xa-hanh .nut.liked {
  color: #E74C3C;
  background: rgba(231, 76, 60, 0.12);
}

.xa-hanh .day {
  flex: 1;
}

.tv-dam {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14.5px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(224, 122, 40, 0.25);
}

.tv-dam.da-luu {
  background: #1A1816;
}

.tv-dam:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.xa-boten {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 18px;
}

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tagrow .chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tagrow .chip:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.xa-nut2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
}

.tv-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* KHỐI ẢNH TƯƠNG TỰ */
.tv-tuongtu {
  max-width: 1440px;
  margin: 40px auto 0;
  padding: 0 16px;
}

.tv-tuongtu .ten {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
  letter-spacing: -0.01em;
}

/* ================= BẢNG LỌC ĐA TIÊU CHÍ (FILTER MODAL) ================= */
#tvLoc {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

#tvLoc[data-open] {
  display: block;
}

#tvLoc .nen {
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 11, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#tvLoc .hop {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-popup);
  animation: slideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 768px) {
  #tvLoc .hop {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    width: 620px;
    max-height: 80vh;
    border-radius: 24px;
    transform: translate(-50%, -50%);
    animation: zoomModal 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes zoomModal {
  from { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

#tvLoc .dau {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#tvLoc .dau b {
  font-size: 18px;
  font-weight: 700;
}

#tvLoc .than {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.loc-nhom h4 {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.loc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-opt {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.loc-opt.on {
  background: var(--text-main);
  color: #fff;
  font-weight: 600;
}

#tvLoc .chan {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-page);
}

/* ================= MÀN HÌNH ĐÃ LƯU (SAVED COLLECTION) ================= */
#xemLuu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg-page);
  overflow-y: auto;
  display: none;
  padding-bottom: 80px;
}

#xemLuu[data-open] {
  display: block;
}

.xl-dau {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.xl-dau h2 {
  font-size: 20px;
  font-weight: 700;
}

.xl-nut {
  max-width: 1440px;
  margin: 16px auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.xl-trong {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 40px auto;
}

.xl-trong b {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.xl-trong p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tv-bonut {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 24, 22, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 12;
  transition: var(--transition);
}

.tv-bonut:hover {
  background: #E74C3C;
  transform: scale(1.1);
}

/* ================= TRÌNH XEM PHÓNG TO TOÀN MÀN HÌNH (FULLSCREEN LIGHTBOX) ================= */
#lightboxModal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(10, 9, 8, 0.96);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
}

#lightboxModal.open {
  display: flex;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-img-wrap img,
.lb-img-wrap video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lb-caption {
  color: #EDE8E0;
  margin-top: 14px;
  font-size: 14.5px;
  text-align: center;
  font-family: var(--font-serif);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

@media (max-width: 900px) {
  .xa-the {
    grid-template-columns: 1fr;
    margin: 16px 12px;
  }
  .xa-anhbox {
    min-height: 340px;
  }
}

/* Badge hiển thị video trên thẻ thư viện */
.tv-play-badge{position:absolute;bottom:10px;left:10px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;background:rgba(14,13,11,.86);backdrop-filter:blur(8px);border:1px solid rgba(224,164,88,.6);border-radius:99px;color:var(--gold,#e0a458);font-size:11.5px;font-weight:600;letter-spacing:.02em;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.6)}
.tv-play-badge svg{fill:currentColor}

/* Badge hiển thị TAG tương ứng trên từng thẻ ảnh */
.tv-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 15, 13, 0.78);
  color: #e5b95a;
  border: 1px solid rgba(212, 163, 64, 0.45);
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  z-index: 6;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ================= VIDEO SPOTLIGHT TRONG THƯ VIỆN ================= */
.tv-video-spotlight {
  margin: 14px 0 24px;
  background: linear-gradient(135deg, rgba(26, 23, 20, 0.95), rgba(18, 16, 14, 0.98));
  border: 1px solid rgba(224, 164, 88, 0.35);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 24px);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tv-video-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(224, 164, 88, 0.15), transparent 70%);
  pointer-events: none;
}
.tv-vspot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 992px) {
  .tv-vspot-inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
  }
}
.tv-vspot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #E0A458);
  background: rgba(224, 164, 88, 0.12);
  border: 1px solid rgba(224, 164, 88, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.tv-vspot-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  color: #FAF6EF;
}
.tv-vspot-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 246, 239, 0.82);
}
.tv-vspot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tv-vspot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tv-vspot-btn.fb {
  background: #1877F2;
  color: #fff;
}
.tv-vspot-btn.fb:hover {
  background: #0d65d9;
  transform: translateY(-1px);
}
.tv-vspot-btn.book {
  background: rgba(255, 255, 255, 0.1);
  color: #FAF6EF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.tv-vspot-btn.book:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.tv-vspot-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 314;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.tv-vspot-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}


