/* =========================================================================
   PLAN v20: SOCIAL DIARY & PERSONAL WALL (ZALO TIMELINE x DARK LUXURY)
   ========================================================================= */

@media (max-width: 1023px) {
  body.nav-layout-app #modal-hostess-diary .hostess-diary-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    padding-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px)) !important;
  }
  body.nav-layout-app #modal-hostess-diary .sd-top-close-btn {
    display: none !important;
  }
}

/* Primary 3-Tab Switcher Row Flush at Top (Cô Đào | Cộng Đồng | Của Tôi + Compact Close on Desktop/Minimal) */
.sd-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 9px;
  background: rgba(8, 10, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sd-main-tabs {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.sd-top-close-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.sd-main-tab {
  position: relative;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(148, 163, 184, 0.92);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.16s ease;
}
.sd-main-tab.active {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.18), rgba(244, 63, 94, 0.14));
  border-color: rgba(245, 196, 81, 0.45);
  color: #fde68a;
}

.sd-pane {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 28px;
}
.sd-pane.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Community Filter Bar */
.sd-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sd-filter-pills {
  display: inline-flex;
  gap: 6px;
}
.sd-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sd-pill.active {
  background: #f8fafc;
  color: #060811;
  border-color: #f8fafc;
}

/* Zalo-Style Quick Composer Box */
.sd-quick-composer {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-qc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sd-qc-prompt {
  flex: 1;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.sd-qc-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.sd-qc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sd-qc-chip:hover {
  border-color: rgba(245, 196, 81, 0.42);
  color: #fde68a;
}

/* Avatar & Prominent VIP Styling (ONLY "Hội Viên VIP" badge — never revshare %) */
.sd-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 2px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sd-avatar-wrap.is-vip {
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fbbf24);
  box-shadow: 0 0 14px rgba(245, 196, 81, 0.48);
}
.sd-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #14192a;
  display: block;
}
.sd-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.sd-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.24), rgba(217, 151, 31, 0.16));
  border: 1px solid rgba(245, 196, 81, 0.58);
  color: #fde68a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* Zalo Author Group Block + Horizontal Snap Carousel ("Chia sẻ N hoạt động") */
.sd-author-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sd-author-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sd-author-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}
.sd-author-names {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sd-author-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sd-author-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sd-author-sub {
  font-size: 11.5px;
  color: #94a3b8;
}
.sd-author-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sd-follow-mini {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.42);
  background: rgba(245, 196, 81, 0.12);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sd-follow-mini.following {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.sd-more-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Horizontal Carousel for multi-post authors (peeks next card on right!) */
.sd-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sd-carousel::-webkit-scrollbar {
  display: none;
}
.sd-carousel .sd-post-card {
  flex: 0 0 86%;
  max-width: 360px;
  scroll-snap-align: start;
}

/* Single Post Card */
.sd-post-card {
  border-radius: 15px;
  background: rgba(16, 20, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.sd-post-card.is-vip-card {
  border-color: rgba(245, 196, 81, 0.34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(245, 196, 81, 0.16);
}
.sd-post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}
.sd-vis-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
}
.sd-post-text {
  font-size: 13.5px;
  line-height: 1.48;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
}
.sd-post-text.has-bg {
  padding: 22px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.sd-bg-obsidian_gold { background: linear-gradient(135deg, #1a1408, #784c0c 52%, #1e1609); border: 1px solid rgba(245, 196, 81, 0.42); }
.sd-bg-rose_velvet { background: linear-gradient(135deg, #3b0a1f, #be123c 55%, #1e0814); }
.sd-bg-emerald_night { background: linear-gradient(135deg, #06281e, #047857 55%, #071c16); }
.sd-bg-midnight_violet { background: linear-gradient(135deg, #1d103b, #6d28d9 55%, #120b26); }
.sd-bg-crimson_silk { background: linear-gradient(135deg, #330b14, #9f1239 55%, #1f0a12); }
.sd-bg-ocean_abyss { background: linear-gradient(135deg, #082038, #0369a1 55%, #081526); }

.sd-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sd-tag-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.34);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Attached Playable Official Video Card */
.sd-video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070a12;
  cursor: pointer;
}
.sd-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0e1a;
  overflow: hidden;
}
.sd-video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sd-video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}
.sd-video-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sd-video-cap {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sd-video-cap strong {
  font-size: 12.5px;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sd-video-cap span {
  font-size: 11px;
  color: #94a3b8;
}

/* Action Bar underneath every post */
.sd-post-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sd-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 9px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sd-act-btn.liked {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.14);
}
.sd-act-btn.gift {
  color: #fde68a;
  background: rgba(245, 196, 81, 0.12);
}

/* Sponsored Ad Card in Community Feed (Strictly hidden for VIP!) */
.sd-ad-card {
  padding: 13px 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12), rgba(17, 23, 38, 0.94));
  border: 1px solid rgba(245, 196, 81, 0.34);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd-ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #f5c451;
  font-weight: 800;
}
.sd-ad-cta {
  align-self: flex-start;
  margin-top: 2px;
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #f5c451, #d9971f);
  color: #0b0e17;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

/* Personal Wall Profile Hero (VIP Prominent!) */
.sd-wall-hero {
  position: relative;
  border-radius: 16px;
  padding: 16px 14px;
  background: linear-gradient(145deg, rgba(22, 28, 46, 0.94), rgba(10, 13, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sd-wall-hero.is-vip {
  background: linear-gradient(145deg, rgba(72, 48, 12, 0.52), rgba(16, 18, 30, 0.96) 55%, rgba(62, 34, 14, 0.35));
  border-color: rgba(245, 196, 81, 0.56);
  box-shadow: 0 12px 32px rgba(245, 196, 81, 0.14);
}
.sd-wall-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sd-wall-av-big {
  position: relative;
  width: 64px;
  height: 64px;
}
.sd-wall-av-cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #0b0e17;
  background: #f5c451;
  color: #0b0e17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sd-wall-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.sd-wall-stat strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.sd-wall-stat span {
  font-size: 10.5px;
  color: #94a3b8;
}
.sd-wall-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sd-wall-btn {
  flex: 1;
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sd-wall-btn.gold {
  background: linear-gradient(135deg, #f5c451, #d9971f);
  border: none;
  color: #0b0e17;
}

/* Sub-Modals (Composer / Post Detail / Star Gift) */
.sd-submodal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(3, 5, 11, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sd-submodal-backdrop.hidden {
  display: none !important;
}
@media (min-width: 768px) {
  .sd-submodal-backdrop {
    align-items: center;
  }
}
.sd-submodal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  background: #0c101d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .sd-submodal-card {
    border-radius: 18px;
  }
}
.sd-submodal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sd-submodal-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.sd-submodal-body {
  padding: 12px 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.sd-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.sd-bg-picker {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.sd-bg-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.sd-bg-swatch.active {
  border-color: #f5c451;
  transform: scale(1.08);
}
.sd-vis-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.sd-vis-opt {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.sd-vis-opt.active {
  background: rgba(245, 196, 81, 0.18);
  border-color: rgba(245, 196, 81, 0.56);
  color: #fde68a;
}
.sd-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sd-gift-opt {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  background: rgba(245, 196, 81, 0.07);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.sd-gift-opt strong {
  font-size: 13px;
}
.sd-gift-opt span {
  font-size: 12px;
  font-weight: 800;
  color: #f5c451;
}
.sd-cmt-item {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sd-cmt-form {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}
.sd-submit-btn {
  padding: 10px 16px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.sd-submit-btn.gold {
  background: linear-gradient(135deg, #f5c451, #d9971f);
  color: #0b0e17;
}

/* Plan v20.1: Clear Inline Alert Box inside Composer & Wall (Method 2 Nickname Prompt) */
.sd-inline-alert {
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.16), rgba(244, 63, 94, 0.12));
  border: 1px solid rgba(245, 196, 81, 0.55);
  color: #fef3c7;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-inline-alert.hidden {
  display: none !important;
}
.sd-inline-alert.is-error {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fecdd3;
}
.sd-inline-alert-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sd-edited-tag {
  font-size: 10.5px;
  color: #94a3b8;
  font-style: italic;
}

/* =========================================================================
   PLAN v20.1: CUSTOM ANTI-IOS HOSTESS VIP VIDEO PLAYER (100% Canvas + SVG)
   ========================================================================= */
.hvp-preview-tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #070a14;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.hvp-preview-vid {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #070a14;
}
.hvp-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.35) 0%, rgba(6, 9, 18, 0.12) 45%, rgba(6, 9, 18, 0.52) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hvp-preview-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 19, 34, 0.72);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(245, 196, 81, 0.78);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}
.hvp-preview-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.78);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hvp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10070;
  background: #04060d;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}
.hvp-modal-backdrop.hidden {
  display: none !important;
}
.hvp-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + max(env(safe-area-inset-top, 0px), var(--tg-safe-top, 0px))) 12px 14px;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.88) 0%, rgba(4, 6, 13, 0) 100%);
}
.hvp-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hvp-title-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.25), rgba(217, 151, 31, 0.16));
  border: 1px solid rgba(245, 196, 81, 0.56);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.hvp-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hvp-top-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hvp-tool-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 29, 0.72);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hvp-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04060d;
  touch-action: manipulation;
}
#hvp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#hvp-video {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0.01;
  pointer-events: none;
  z-index: 1;
}
.hvp-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 196, 81, 0.76);
  background: rgba(10, 14, 26, 0.68);
  backdrop-filter: blur(8px);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hvp-center-play.hidden {
  opacity: 0;
  pointer-events: none;
}
.hvp-seek-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid rgba(245, 196, 81, 0.52);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}
.hvp-seek-hud.hidden {
  display: none;
}
.hvp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(245, 196, 81, 0.24);
  border-top-color: #f5c451;
  animation: hvpSpin 0.8s linear infinite;
  pointer-events: none;
}
.hvp-spinner.hidden {
  display: none;
}
@keyframes hvpSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hvp-bottom-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(4, 6, 13, 0.94) 0%, rgba(4, 6, 13, 0.55) 70%, rgba(4, 6, 13, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hvp-caption {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hvp-scrub-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.hvp-scrub-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: visible;
}
.hvp-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5c451, #f43f5e);
}
.hvp-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fde68a;
  border: 2px solid #0b0e17;
  box-shadow: 0 0 10px rgba(245, 196, 81, 0.7);
}
.hvp-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hvp-ctrl-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hvp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 20, 35, 0.75);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hvp-time {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
.hvp-tip-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f5c451, #d9971f);
  color: #0b0e17;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Plan v20.2: Vertical Swipe Arrows + Bottom "Clip cô đào gợi ý" Trigger & 2-Tab Sheet */
.hvp-nav-rail {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hvp-nav-rail.hidden {
  display: none !important;
}
.hvp-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hvp-nav-arrow:active {
  transform: scale(0.92);
}
.hvp-nav-counter {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.78);
  border: 1px solid rgba(245, 196, 81, 0.42);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hvp-suggest-trigger {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  background: rgba(14, 18, 32, 0.82);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.hvp-suggest-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.hvp-suggest-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.18);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
}
.hvp-suggest-backdrop {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(3, 5, 11, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hvp-suggest-backdrop.hidden {
  display: none !important;
}
.hvp-suggest-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 64dvh;
  background: #0c101d;
  border-top: 1px solid rgba(245, 196, 81, 0.34);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hvp-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.hvp-suggest-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
}
.hvp-sug-tab {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hvp-sug-tab.active {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.2), rgba(244, 63, 94, 0.14));
  border-color: rgba(245, 196, 81, 0.52);
  color: #fde68a;
}
.hvp-suggest-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hvp-sug-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: #f8fafc;
}
.hvp-sug-item.is-active {
  border-color: rgba(245, 196, 81, 0.65);
  background: rgba(245, 196, 81, 0.12);
}
.hvp-sug-thumb {
  position: relative;
  width: 78px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
  background: #060912;
  flex-shrink: 0;
}
.hvp-sug-thumb img,
.hvp-sug-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hvp-sug-thumb-badge {
  position: absolute;
  left: 4px;
  top: 4px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(6, 8, 15, 0.82);
  color: #fde68a;
  font-size: 9px;
  font-weight: 800;
}
.hvp-sug-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hvp-sug-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hvp-sug-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hvp-sug-cta {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.16);
  border: 1px solid rgba(245, 196, 81, 0.44);
  color: #fde68a;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

