/* Base */
.nv-tlv, .nv-th{
  --brand:#8B1FA9; --active-accent:#00C853;
  --text:#1f2937; --muted:#6b7280; --bg:#f4f7f9;
  --thumb-w:120px; --thumb-h:90px; --thumb-radius:12px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text); background: var(--bg);
  padding: 12px 8px 6px; position: relative;
}
.nv-tlv-heading{ text-align:center; font-weight:900; font-size:28px; letter-spacing:.3px; color:var(--brand); margin: 6px 0 18px }

/* Button */
.nv-tl-readmore{ display:inline-block; padding:10px 14px; border-radius:10px; background:var(--active-accent); color:#fff; border:0; cursor:pointer; font-weight:800; transition:transform .2s ease, box-shadow .2s ease }
.nv-tl-readmore:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,200,83,.25) }
.nv-tl-readmore:active{ transform:translateY(0) scale(.98) }
.nv-tl-readmore:focus{ outline:2px solid var(--brand); outline-offset:2px }

/* Load more */
.nv-tl-loadmore{ display:grid; place-items:center; margin-top:8px }
.nv-tl-loadmore-btn{ padding:10px 16px; border:0; border-radius:10px; background:var(--active-accent); color:#fff; font-weight:800; cursor:pointer }
.nv-tl-loading{ margin-top:8px; color:#6b7280; font-size:14px }

/* Modal */
.nv-tl-modal[aria-hidden="true"]{ display:none }
.nv-tl-modal{ position:fixed; inset:0; z-index:9999 }
.nv-tl-modal__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.5) }
.nv-tl-modal__content{ position:relative; max-width:840px; width:calc(100% - 32px); margin:8vh auto 0; background:#fff; border-radius:14px; padding:20px 22px 26px; box-shadow:0 20px 60px rgba(0,0,0,.25) }
.nv-tl-modal__close{ position:absolute; top:8px; right:12px; border:0; background:transparent; font-size:28px; line-height:1; cursor:pointer }
.nv-tl-modal__title{ margin:0 0 8px; font-size:22px; font-weight:900 }

/* --------- FX: reveal on scroll + pulse + parallax ---------- */
@keyframes nv-reveal-up{ from{ opacity:0; transform:translateY(18px)} to{opacity:1; transform:none} }
@keyframes nv-pulse{ 0%{ box-shadow:0 0 0 0 rgba(0,200,83,.45)} 70%{ box-shadow:0 0 0 14px rgba(0,200,83,0)} 100%{ box-shadow:0 0 0 0 rgba(0,200,83,0)} }
@keyframes nv-bob{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-4px) } }

.nv-fx--reveal .nv-tlv-item,
.nv-fx--reveal .nv-th-item,
.nv-fx--reveal-pulse .nv-tlv-item,
.nv-fx--reveal-pulse .nv-th-item,
.nv-fx--parallax .nv-tlv-item,
.nv-fx--parallax .nv-th-item{ opacity:0; transform:translateY(18px) }

.nv-fx--reveal .is-visible,
.nv-fx--reveal-pulse .is-visible,
.nv-fx--parallax .is-visible{ animation: nv-reveal-up .6s ease forwards }

.nv-fx--reveal-pulse .is-visible .nv-tlv-dot,
.nv-fx--reveal-pulse .is-visible .nv-th-dot{ animation: nv-pulse 1.8s ease 0.2s 1 }

.nv-fx--parallax .is-visible .nv-tlv-drop,
.nv-fx--parallax .is-visible .nv-tlv-badge,
.nv-fx--parallax .is-visible .nv-th-pill,
.nv-fx--parallax .is-visible .nv-th-year-badge{ animation: nv-bob 3s ease-in-out infinite }

/* Shared hover for cards */
.nv-tlv-left, .nv-th-card{ transition: transform .25s ease, box-shadow .25s ease }
.nv-tlv-left:hover, .nv-th-card:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(0,0,0,.1) }
/* === Video Play button overlay (áp dụng chung) === */
.nv-tlv-thumb,
.nv-th-thumb{
  position: relative;           /* để nút overlay định vị theo khung ảnh */
  overflow: hidden;
}

.nv-tl-video{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(0,0,0,.55);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  z-index: 2;
}
.nv-tl-video:hover{ transform: translate(-50%, -50%) scale(1.06); background: rgba(0,0,0,.7); }
.nv-tl-video:focus{ outline: 2px solid var(--active-accent); outline-offset: 2px; }

/* Nút play kiểu lớn cho Story mode */
.nv-tl-video.large{ width: 72px; height: 72px; font-size: 24px }
/* GLASS */
.nv-style--glass .nv-tlv-item,
.nv-style--glass .nv-th-card{
  position:relative;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  box-shadow:0 12px 30px rgba(16,24,40,.08);
}

/* Chip căn giữa đè lên mép card */
.nv-style--glass .nv-tlv-drop,
.nv-style--glass .nv-th-pill{
  position:absolute;
  top:-18px;
  left:50%;
  transform:translateX(-50%);
  background:var(--brand);
  color:#fff;
  border:none;
  padding:8px 18px;
  border-radius:999px;
  font-weight:600;
  box-shadow:0 8px 18px rgba(16,24,40,.12);
}

/* Tiêu đề có gạch nhấn */
.nv-style--glass .nv-tlv-title,
.nv-style--glass .nv-th-title{
  margin-top:10px;
  padding-bottom:10px;
  border-bottom:2px solid color-mix(in srgb, var(--brand) 70%, #fff 30%);
}

/* Nút */
.nv-style--glass .nv-tl-readmore{
  border-radius:999px;
  padding:10px 18px;
  background:var(--btn-bg);
  color:var(--btn-text);
  font-weight:600;
}
.nv-style--glass .nv-tl-readmore:hover{ background:var(--btn-hover) }

/* Trục và marker */
.nv-style--glass .nv-tlv-axis,
.nv-style--glass .nv-th-line{
  background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.06));
}
.nv-style--glass .nv-tlv-dot,
.nv-style--glass .nv-th-dot{
  width:14px; height:14px; border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px var(--brand) inset, 0 2px 8px rgba(0,0,0,.12);
}
/* GRADIENT AURORA */
.nv-style--gradient .nv-tlv-item,
.nv-style--gradient .nv-th-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  box-shadow:0 12px 28px rgba(17,24,39,.08);
}

/* Chip tím nổi */
.nv-style--gradient .nv-tlv-drop,
.nv-style--gradient .nv-th-pill{
  position:absolute;
  top:-18px; left:50%; transform:translateX(-50%);
  background:linear-gradient(135deg, #6f2cff, var(--brand));
  color:#fff; border:none; border-radius:999px;
  padding:8px 18px; font-weight:700;
  box-shadow:0 10px 22px rgba(111,44,255,.28);
}

/* Nhấn tiêu đề và gạch nhấn */
.nv-style--gradient .nv-tlv-title,
.nv-style--gradient .nv-th-title{
  color:#0f172a;
  padding-bottom:12px;
  border-bottom:2px solid rgba(111,44,255,.25);
}

/* Nút bo tròn, đậm nhịp */
.nv-style--gradient .nv-tl-readmore{
  border-radius:12px;
  padding:10px 18px;
  background:var(--btn-bg); color:var(--btn-text); font-weight:700;
}
.nv-style--gradient .nv-tl-readmore:hover{ background:var(--btn-hover) }

/* Marker có vòng sáng */
.nv-style--gradient .nv-tlv-dot,
.nv-style--gradient .nv-th-dot{
  width:14px; height:14px; border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px #6f2cff inset, 0 0 0 8px rgba(111,44,255,.12);
}
.nv-style--gradient .nv-tlv-axis,
.nv-style--gradient .nv-th-line{ background:#e5e7eb }
/* NEUMORPH */
.nv-style--neumorph .nv-tlv-item,
.nv-style--neumorph .nv-th-card{
  background:#f4f6fb;
  border-radius:18px;
  border:1px solid #eef1f7;
  box-shadow:
    12px 12px 24px #dfe4ee,
    -12px -12px 24px #ffffff;
}

/* Chip sáng nổi vừa đủ */
.nv-style--neumorph .nv-tlv-drop,
.nv-style--neumorph .nv-th-pill{
  position:absolute; top:-18px; left:50%; transform:translateX(-50%);
  background:#ffffff; color:#111827;
  border:1px solid #eef1f7; border-radius:999px;
  padding:8px 18px; font-weight:600;
  box-shadow:
    6px 6px 12px #dfe4ee,
    -6px -6px 12px #ffffff;
}

/* Marker dập nổi */
.nv-style--neumorph .nv-tlv-dot,
.nv-style--neumorph .nv-th-dot{
  width:14px; height:14px; border-radius:50%;
  background:#f4f6fb;
  box-shadow:
    inset 6px 6px 10px #dfe4ee,
    inset -6px -6px 10px #ffffff;
}

/* Nút viên thuốc */
.nv-style--neumorph .nv-tl-readmore{
  border-radius:999px; padding:10px 18px;
  background:var(--btn-bg); color:var(--btn-text);
  box-shadow:
    6px 6px 12px #dfe4ee,
    -6px -6px 12px #ffffff;
}
.nv-style--neumorph .nv-tl-readmore:hover{ background:var(--btn-hover) }
/* OUTLINE = SPEECH BUBBLE */
.nv-style--outline .nv-tlv-item,
.nv-style--outline .nv-th-card{
  position:relative;
  background:#fff;
  border:2px solid color-mix(in srgb, var(--brand) 70%, #000 10%);
  border-radius:12px;
  box-shadow:0 10px 0 color-mix(in srgb, var(--brand) 30%, #000 10%);
}

/* Nếp gấp "speech bubble" bên trái cho layout dọc */
.nv-style--outline .nv-tlv-item::before{
  content:"";
  position:absolute; left:-10px; top:50%; transform:translateY(-50%) rotate(45deg);
  width:16px; height:16px; border-radius:2px;
  background:#fff;
  border-left:2px solid color-mix(in srgb, var(--brand) 70%, #000 10%);
  border-bottom:2px solid color-mix(in srgb, var(--brand) 70%, #000 10%);
}

/* Chip viền tối giản */
.nv-style--outline .nv-tlv-drop,
.nv-style--outline .nv-th-pill{
  position:absolute; top:-18px; left:50%; transform:translateX(-50%);
  background:#fff; color:color-mix(in srgb, var(--brand) 80%, #000 10%);
  border:2px solid currentColor; border-radius:999px;
  padding:6px 14px; font-weight:700;
}

/* Nút theo màu project */
.nv-style--outline .nv-tl-readmore{
  border-radius:10px; padding:10px 18px;
  background:var(--btn-bg); color:var(--btn-text); font-weight:700;
}
.nv-style--outline .nv-tl-readmore:hover{ background:var(--btn-hover) }

/* Trục đen mảnh, marker trắng viền đậm như ảnh 2 */
.nv-style--outline .nv-tlv-axis,
.nv-style--outline .nv-th-line{ background:#111 }
.nv-style--outline .nv-tlv-dot,
.nv-style--outline .nv-th-dot{
  width:14px; height:14px; border-radius:50%;
  background:#fff; box-shadow:0 0 0 2px #111 inset;
}

/* Biến thể color block giống ảnh 2
   Áp vào card để tạo nhịp xen kẽ: */
.nv-style--outline .nv-tlv-item:nth-child(odd),
.nv-style--outline .nv-th-item:nth-child(odd) .nv-th-card{
  background:#2ad4c6; color:#fff; border-color:#2ad4c6;
  box-shadow:none;
}
.nv-style--outline .nv-tlv-item:nth-child(even),
.nv-style--outline .nv-th-item:nth-child(even) .nv-th-card{
  background:#ef4444; color:#fff; border-color:#ef4444;
  box-shadow:none;
}
/* Giữ nút tương phản trên nền màu */
.nv-style--outline .nv-tlv-item:nth-child(odd) .nv-tl-readmore,
.nv-style--outline .nv-th-item:nth-child(odd) .nv-tl-readmore,
.nv-style--outline .nv-tlv-item:nth-child(even) .nv-tl-readmore,
.nv-style--outline .nv-th-item:nth-child(even) .nv-tl-readmore{
  background:#fff; color:#111;
}
.nv-style--outline .nv-tlv-item:nth-child(odd) .nv-tl-readmore:hover,
.nv-style--outline .nv-th-item:nth-child(odd) .nv-tl-readmore:hover,
.nv-style--outline .nv-tlv-item:nth-child(even) .nv-tl-readmore:hover,
.nv-style--outline .nv-th-item:nth-child(even) .nv-tl-readmore:hover{
  background:#f3f4f6;
}
