* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #111; 
  color: #fff;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  margin: 0;
  background: #eee; 
  padding: 0;
}

/* =========================
   1) LIST / CARD (feed list)
========================= */
#list {
  margin: 0 auto;
}

.card {
  background: #eb99ff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
}

.cardHeader {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cardHeader .meta {
  opacity: 0.85;
  font-size: 12px;
}

.thumbWrap {
  position: relative;
  background: #000;
}

.thumbWrap video {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  display: block;
  background: #000;
}

.openReelsBtn {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
}

.openReelsBtn span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 600;
}

.cardFooter {
  font-size: 12px;
  opacity: 0.85;
  word-break: break-all;
}

#load-more {
  display: block;
  margin: 12px auto 24px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}

.v-bg-name-film {text-align: center;
  justify-content: center;}
.name-film {
    
  text-align: center;
  justify-content: center;
}
/* =========================
   2) REELS (full-screen)
========================= */
#reels {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  z-index: 9999;
}
#reels.active { display: block; }

#reelsFeed {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: #000;
}

.slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}

.slide video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  display: block;
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0) 70%,
    rgba(0,0,0,0.35)
  );
}

.topRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pill {
  pointer-events: none;
  font-size: 13px;
  padding: 8px 10px;
}

.controls {
  position: absolute;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.05);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}

.bottomRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.reelsHint {
  position: absolute;
  left: 2px;
  bottom: 2px;
  font-size: 13px;
  line-height: 1.3;
  max-width: 70%;
  pointer-events: none;
}

.caption {
  max-width: 70%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.clickLayer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: transparent;
}

.tapHint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  opacity: 0;
  transition: opacity .14s ease;
  pointer-events: none;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}

.slide.is-paused .tapHint { opacity: 1; }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  pointer-events: auto;
  opacity: 0.6;
}

.progress > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 5);
}

.progress .seek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  width: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  opacity: 0.4;
}

#closeReels {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.001);
  color: #fff;
  cursor: pointer;
}

/* =========================
   3) BASIC UI ELEMENTS
========================= */
button { margin: 5px; }

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
  color: inherit;
}

/* =========================
   4) FLEX GRID (row/col)
========================= */
.row {
  display: flex;
  padding-left: 0;
  padding-right: 0;
  flex-wrap: wrap;
}


.col {
  padding: 10px;
  flex: 0 0 50%;
  max-width: 50%;
}

/* responsive cho .col */
@media (min-width: 576px) {
  .col { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 680px) {
  .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 992px) {
  .col { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 1600px) {
  .col { flex: 0 0 16.6667%; max-width: 16.6667%; }
}
@media (min-width: 2560px) {
  .col { flex: 0 0 12.5%; max-width: 12.5%; }
}
@media (min-width: 3840px) {
  .col { flex: 0 0 10%; max-width: 10%; }
}

/* =========================
   5) BOX CARD (grid items)
========================= */
.box {
  position: relative;
  background: #fff;
  padding: 5px;
  text-align: center;
  box-shadow: 4px 8px 10px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.5s ease;
}
.box:hover { transform: scale(1.1); }

.box img {
  width: 100%;
  height: 30vh;
  min-height: 150px;
  object-fit: cover;
}

.box h3 {
  margin: 10px;
  font-size: 16px;
  color: #333;
}

/* =========================
   6) NAVBAR
========================= */
.navbar {
  background: #222;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: top 0.3s ease-in-out;
  z-index: 999;
}

.navbar .title {
  font-weight: bold;
  font-size: 18px;
}

.navbar select {
  padding: 6px;
  border-radius: 5px;
  font-size: 14px;
}

/* =========================
   7) MASONRY GALLERY (column-count version)
========================= */
.gallery {
  column-count: 3;
  column-gap: 15px;
  padding: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 2px solid #fc0;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px #c0f;
}

.gallery-item img {
  width: 100%;
  display: block;
  height: auto;
}

/* responsive cho .gallery column-count */
@media screen and (min-width: 1600px) {
  .gallery { column-count: 5; }
}
@media screen and (min-width: 1200px) and (max-width: 1599px) {
  .gallery { column-count: 4; }
}
@media screen and (max-width: 900px) {
  .gallery { column-count: 2; }
}
@media screen and (max-width: 600px) {
  .gallery { column-count: 1; }
}

/* =========================
   8) BOTTOM BAR
========================= */
.bottom-bar {
  display: flex;
  background: #333;
  color: #fff;
  padding: 15px 20px;
  font-size: 14px;
  text-align: center;
  justify-content: center;
}

.bottom-bar > div { padding: 0 10px; }

.bar-left { width: 25%; }
.bar-center { width: 50%; text-align: center; }
.bar-right { width: 25%; text-align: right; }

@media screen and (max-width: 700px) {
  .bottom-bar { flex-direction: column; text-align: center; }
  .bar-left, .bar-center, .bar-right { width: 100%; margin: 5px 0; }
}

/* =========================
   9) OVERLAY TEXT
========================= */
.description {
  padding: 3px;
  opacity: 0.5;
  color: #fff;
  position: relative;
  bottom: 82px;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
  text-align: justify;
}

.description::after {
  content: "";
  display: inline-block;
  width: 100%;
}

@media screen and (min-width: 701px) { .description { font-size: 13px; } }
@media screen and (max-width: 700px) { .description { font-size: 10px; } }

.number-photos {
  opacity: 0.75;
  position: absolute;
  right: 5px;
  top: 5px;
  background: rgba(128,128,128,0.4);
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.title-name {
  padding: 5px;
  background: rgb(255, 255, 255, 0.75);
  margin-top: -82px;
  position: relative;
  text-align: center;
  width: 100%;
  font-weight: 300;
  color: #000;
}

/* =========================
   10) GRID SYSTEM (Bootstrap-like)
========================= */
[class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}

.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;      max-width: 25%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6  { flex: 0 0 50%;      max-width: 50%; }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9  { flex: 0 0 75%;      max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%;     max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-sm-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-sm-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-sm-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-sm-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-sm-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-sm-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-sm-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-sm-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-md-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-md-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-lg-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-lg-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-lg-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-lg-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-xl-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-xl-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-xl-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-xl-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-xl-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-xl-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-xl-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-xl-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-xl-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-xl-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 2000px) {
  .col-xxl-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-xxl-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-xxl-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-xxl-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-xxl-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-xxl-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-xxl-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-xxl-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-xxl-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-xxl-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-xxl-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-xxl-12 { flex: 0 0 100%;     max-width: 100%; }
}

/* =========================
   11) EXTRA LAYOUT / FILM GRID
========================= */
.bg-div {
  padding: 10px;
  border: 3 solid #fff; 
  background-color: #ccc;
  border-radius: 8px;
}

/* item card theo combo class */
.col-6.col-sm-4.col-xl-3 {
  text-align: center;
  overflow: hidden;
  padding-bottom: 10px;
  transition: transform 0.3s;
  background-color: #fff;
}
.col-6.col-sm-4.col-xl-3:hover { transform: scale(1.05); }

.col-6.col-sm-4.col-xl-3 img {
  width: 100%;
  height: auto;
  border-bottom: 2px solid #f1f1f1;
}

.col-6.col-sm-4.col-xl-3 p {
  font-size: 14px;
  font-weight: bold;
  margin: 8px 0 5px;
  color: #fff;
}

.col-6.col-sm-4.col-xl-3 .tag {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: #ffe6ee;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.div-film {
  padding: 0.5vh;
  transition: transform 0.3s ease;
}
.div-film p { color: #c0f; }
.div-film:hover { transform: scale(1.04); }

.v-bg-film {
  font-size: 12px;
  color: #ffcc00;
  overflow: hidden;
  border: 2px solid #800080;
  border-radius: 5px;
  background-color: #333;
}

.v-category {
  position: absolute;
  background: rgba(128, 128, 128, 0.4);
  color: #fff;
}
.v-lenght-time {
  position: absolute;
  background: rgba(128, 128, 128, 0.4);
}

.img-poster {
  width: 100%;
  height: 20vh;
  object-fit: cover;
  transition: transform 1s;
}
.v-bg-film:hover .img-poster {
  transform: scale(1.3);
  transform-origin: 50% 50%;
}

.v-bg-name-film {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #c0f;
  font-size: 2vh;
  margin-top: 0;
}

/* =========================
   12) FULLSCREEN VIDEO BLOCK + CONTROLS
========================= */
.video-block{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-block video{
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center center; 
  display: block;
}

.video-controls {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.65);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.video-controls button {
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s;
}

.video-controls button:hover {
  background-color: #ffc107;
  color: #000;
  transform: scale(1.05);
}


/* ===== Code 2 overlay ids ===== */
#c2ReelsOverlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  z-index: 999999;
}

#c2ReelsFeedOverlay {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: #000;
}

#c2CloseReelsOverlay {
  font-size: 22px;
}

/* ===== Code 2 slide/classes ===== */
#c2ReelsFeedOverlay .c2-slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}

#c2ReelsFeedOverlay .c2-slide.c2-is-paused .c2-tapHint {
  opacity: 1 !important;
}
#CLOSE_ID {font-size: 20px;}



/* =========================================================
   BTN2 + DROPDOWN2 (Bootstrap-like, FULL)
   - Buttons: .btn2, .btn2-sm, .btn2-lg, color variants
   - Group: .btn-group2, split button look
   - Dropdown: .dropdown2, .dropdown2-toggle, .dropdown2-menu, items
   - Show menu by toggling .dropdown2.is-open (via your JS)
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --b2-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  --b2-radius: .5rem;
  --b2-radius-sm: .375rem;

  --b2-border: rgba(0,0,0,.15);
  --b2-shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --b2-shadow: 0 .5rem 1rem rgba(0,0,0,.15);

  /* Bootstrap-ish palette */
  --b2-primary:   #0d6efd;
  --b2-secondary: #6c757d;
  --b2-success:   #198754;
  --b2-danger:    #dc3545;
  --b2-warning:   #ffc107;
  --b2-info:      #0dcaf0;
  --b2-light:     #f8f9fa;
  --b2-dark:      #212529;

  --b2-body:      #212529;
  --b2-white:     #fff;

  --b2-focus-ring: 0 0 0 .25rem rgba(13,110,253,.25);
}

/* ---------- Accessibility helper (Bootstrap-like) ---------- */
.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Base button ---------- */
.btn2{
  --b2-btn-bg: var(--b2-primary);
  --b2-btn-bd: var(--b2-primary);
  --b2-btn-tx: var(--b2-white);

  --b2-btn-hover-bg: #0b5ed7;
  --b2-btn-hover-bd: #0a58ca;

  --b2-btn-active-bg: #0a58ca;
  --b2-btn-active-bd: #0a53be;

  --b2-btn-focus-ring: var(--b2-focus-ring);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  font-family: var(--b2-font-sans);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: .20rem .10rem;
  line-height: 1;  

  border-radius: var(--b2-radius);
  border: 1px solid var(--b2-btn-bd);
  background: var(--b2-btn-bg);
  color: var(--b2-btn-tx);

  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn2:hover{
  background: var(--b2-btn-hover-bg);
  border-color: var(--b2-btn-hover-bd);
  color: var(--b2-btn-tx);
}

.btn2:active{
  background: var(--b2-btn-active-bg);
  border-color: var(--b2-btn-active-bd);
  transform: translateY(1px);
}

.btn2:focus{ outline: none; }
.btn2:focus-visible{
  box-shadow: var(--b2-btn-focus-ring);
}

.btn2:disabled,
.btn2.is-disabled{
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ---------- Sizes ---------- */
.btn2-sm{
  padding: .35rem .7rem;
  font-size: .875rem;
  border-radius: var(--b2-radius-sm);
}
.btn2-lg{
  padding: .75rem 1.2rem;
  font-size: 1.05rem;
  border-radius: calc(var(--b2-radius) + .1rem);
}

/* ---------- Outline (optional) ---------- */
.btn2-outline{
  background: transparent;
  color: var(--b2-btn-bg);
  border-color: var(--b2-btn-bd);
}
.btn2-outline:hover{
  background: var(--b2-btn-bg);
  border-color: var(--b2-btn-bd);
  color: var(--b2-btn-tx);
}

/* ---------- Color variants ---------- */
.btn2-primary{
  --b2-btn-bg: var(--b2-primary);
  --b2-btn-bd: var(--b2-primary);
  --b2-btn-tx: var(--b2-white);
  --b2-btn-hover-bg: #0b5ed7;
  --b2-btn-hover-bd: #0a58ca;
  --b2-btn-active-bg: #0a58ca;
  --b2-btn-active-bd: #0a53be;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(13,110,253,.25);
}
.btn2-secondary{
  --b2-btn-bg: var(--b2-secondary);
  --b2-btn-bd: var(--b2-secondary);
  --b2-btn-tx: var(--b2-white);
  --b2-btn-hover-bg: #5c636a;
  --b2-btn-hover-bd: #565e64;
  --b2-btn-active-bg: #565e64;
  --b2-btn-active-bd: #51585e;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(108,117,125,.25);
}
.btn2-success{
  --b2-btn-bg: var(--b2-success);
  --b2-btn-bd: var(--b2-success);
  --b2-btn-tx: var(--b2-white);
  --b2-btn-hover-bg: #157347;
  --b2-btn-hover-bd: #146c43;
  --b2-btn-active-bg: #146c43;
  --b2-btn-active-bd: #13653f;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(25,135,84,.25);
}
.btn2-danger{
  --b2-btn-bg: var(--b2-danger);
  --b2-btn-bd: var(--b2-danger);
  --b2-btn-tx: var(--b2-white);
  --b2-btn-hover-bg: #bb2d3b;
  --b2-btn-hover-bd: #b02a37;
  --b2-btn-active-bg: #b02a37;
  --b2-btn-active-bd: #a52834;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(220,53,69,.25);
}
.btn2-warning{
  --b2-btn-bg: var(--b2-warning);
  --b2-btn-bd: var(--b2-warning);
  --b2-btn-tx: #1f2328;
  --b2-btn-hover-bg: #ffca2c;
  --b2-btn-hover-bd: #ffc720;
  --b2-btn-active-bg: #ffc720;
  --b2-btn-active-bd: #ffbe0b;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(255,193,7,.25);
}
.btn2-info{
--b2-btn-bg: #0dcaf0;
  --b2-btn-bd: #0dcaf0;
  --b2-btn-tx: #0b0f14;
  --b2-btn-hover-bg: #1cbfe2;
  --b2-btn-hover-bd: #17b8dc;
  --b2-btn-active-bg: #17b8dc;
  --b2-btn-active-bd: #0aa2c0;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(13,202,240,.35);
}

.btn2-info2{
  --b2-btn-bg: #0bb8db;
  --b2-btn-bd: #0bb8db;
  --b2-btn-tx: #ffffff;
  --b2-btn-hover-bg: #0aa9c9;
  --b2-btn-hover-bd: #099fbe;
  --b2-btn-active-bg: #099fbe;
  --b2-btn-active-bd: #087f97;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(11,184,219,.4);
}
.btn2-pink1{
  --b2-btn-bg: #f6c1cc;
  --b2-btn-bd: #f6c1cc;
  --b2-btn-tx: #3a1f26;
  --b2-btn-hover-bg: #f2aebb;
  --b2-btn-hover-bd: #ee9cab;
  --b2-btn-active-bg: #ee9cab;
  --b2-btn-active-bd: #e58a9a;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(246,193,204,.4);
}
.btn2-pink2{
  --b2-btn-bg: #f2a1b3;
  --b2-btn-bd: #f2a1b3;
  --b2-btn-tx: #ffffff;
  --b2-btn-hover-bg: #ea8fa3;
  --b2-btn-hover-bd: #e27f94;
  --b2-btn-active-bg: #e27f94;
  --b2-btn-active-bd: #cc6a80;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(242,161,179,.45);
   text-decoration: underline;
}
.btn2-pink3{
  --b2-btn-bg: #c97a86;
  --b2-btn-bd: #c97a86;
  --b2-btn-tx: #ffffff;
  --b2-btn-hover-bg: #b96a76;
  --b2-btn-hover-bd: #ad5f6a;
  --b2-btn-active-bg: #ad5f6a;
  --b2-btn-active-bd: #8f4c55;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(201,122,134,.5);
}

.btn2-light{
  --b2-btn-bg: var(--b2-light);
  --b2-btn-bd: #dee2e6;
  --b2-btn-tx: var(--b2-body);
  --b2-btn-hover-bg: #e9ecef;
  --b2-btn-hover-bd: #dde1e5;
  --b2-btn-active-bg: #dde1e5;
  --b2-btn-active-bd: #d3d8dd;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(248,249,250,.35);
}
.btn2-dark{
  --b2-btn-bg: var(--b2-dark);
  --b2-btn-bd: var(--b2-dark);
  --b2-btn-tx: var(--b2-white);
  --b2-btn-hover-bg: #1c1f23;
  --b2-btn-hover-bd: #1a1e21;
  --b2-btn-active-bg: #1a1e21;
  --b2-btn-active-bd: #171a1d;
  --b2-btn-focus-ring: 0 0 0 .25rem rgba(33,37,41,.25);
}

/* =========================================================
   BTN-GROUP2 (Bootstrap-like)
   - Makes buttons join with shared borders
   ========================================================= */
.btn-group2{
  display: inline-flex;
  vertical-align: middle;
}

.btn-group2 > .btn2{
  position: relative;
  flex: 0 0 auto;
}

.btn-group2 > .btn2:not(:first-child){
  margin-left: -1px; /* collapse borders */
}

.btn-group2 > .btn2:first-child{
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group2 > .btn2:last-child{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Middle buttons (if any) */
.btn-group2 > .btn2:not(:first-child):not(:last-child){
  border-radius: 0;
}

/* Keep active/hover on top of neighbor border */
.btn-group2 > .btn2:hover,
.btn-group2 > .btn2:focus-visible,
.btn-group2 > .btn2:active{
  z-index: 2;
}

/* Split toggle: make it narrower like Bootstrap */
.btn-group2 .dropdown2-toggle{
  padding-left: .65rem;
  padding-right: .65rem;
}

/* optional: remove caret if you want icon-only toggles */
/* .btn-group2 .dropdown2-toggle::after{ display:none; } */

/* =========================================================
   DROPDOWN2 (Bootstrap-like)
   ========================================================= */
.dropdown2{
  position: relative;
  display: inline-block;
  
 
}

/* Toggle caret (Bootstrap-ish) */
.dropdown2-toggle::after{
  content: "";
  display: none !important;/* display: inline-block; */
  margin-left: .35rem;
  vertical-align: .15em;
  border-top: .35em solid currentColor;
  border-right: .35em solid transparent;
  border-left: .35em solid transparent;
  opacity: .9;
}

/* When toggle is split (narrow), keep caret centered */
.btn-group2 .dropdown2-toggle{
  justify-content: center;
}

/* Menu */
.dropdown2-menu{
--d2-bg: #fbe4e8;                
--d2-tx: #4a2a32;                
--d2-bd: #f2c6cf;                
--d2-item-hover-bg: #f6d5db;     
--d2-item-active-bg: #ee9cab;    
--d2-item-active-tx: #4a2a32;

  position: absolute;
  top: 100%;
  left: 0;

  min-width: 12rem;
  padding: .5rem;
  margin: 0;

  list-style: none;
  background: var(--d2-bg);
  color: var(--d2-tx);
  border: 1px solid var(--d2-bd);
  border-radius: var(--b2-radius);
  box-shadow: var(--b2-shadow);
  z-index: 1000;

  display: none !important; /* display: none; */
}
.btn-group2 > .btn2:not(:first-child){
  margin-left: -4px;
}
/* Show menu */
.dropdown2.is-open > .dropdown2-menu{
  display: block;
}

/* Align end */
.dropdown2-menu-end{
  left: auto;
  right: 0;
}

/* Items */
.dropdown2-item{
  display: flex;
  align-items: center;
  gap: .5rem;

  width: 100%;
  padding: .45rem .6rem;
  border-radius: .4rem;

  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;

  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.dropdown2-item:hover{
  background: var(--d2-item-hover-bg);
}

.dropdown2-item:focus{ outline: none; }
.dropdown2-item:focus-visible{
  box-shadow: var(--b2-focus-ring);
}

/* Active */
.dropdown2-item.is-active,
.dropdown2-item:active{
  background: var(--d2-item-active-bg);
  color: var(--d2-item-active-tx);
}

/* Disabled */
.dropdown2-item.is-disabled{
  opacity: .55;
  pointer-events: none;
}

/* Divider */
.dropdown2-divider{
  height: 1px;
  margin: .4rem .2rem;
  background: rgba(0,0,0,.12);
}

/* Header */
.dropdown2-header{
  padding: .35rem .6rem;
  font-size: .8rem;
  opacity: .7;
}

/* =========================================================
   DROPDOWN2 MENU COLOR THEMES
   ========================================================= */
.dropdown2-menu-dark{
  --d2-bg: #1f2328;
  --d2-tx: #f8f9fa;
  --d2-bd: rgba(255,255,255,.12);
  --d2-item-hover-bg: rgba(255,255,255,.08);
  --d2-item-active-bg: rgba(13,110,253,.35);
  --d2-item-active-tx: #fff;
}

.dropdown2-menu-primary{
  --d2-bg: var(--b2-primary);
  --d2-tx: #fff;
  --d2-bd: rgba(255,255,255,.18);
  --d2-item-hover-bg: rgba(255,255,255,.12);
  --d2-item-active-bg: rgba(0,0,0,.22);
  --d2-item-active-tx: #fff;
}

.dropdown2-menu-success{
  --d2-bg: var(--b2-success);
  --d2-tx: #fff;
  --d2-bd: rgba(255,255,255,.18);
  --d2-item-hover-bg: rgba(255,255,255,.12);
  --d2-item-active-bg: rgba(0,0,0,.22);
  --d2-item-active-tx: #fff;
}

.dropdown2-menu-danger{
  --d2-bg: var(--b2-danger);
  --d2-tx: #fff;
  --d2-bd: rgba(255,255,255,.18);
  --d2-item-hover-bg: rgba(255,255,255,.12);
  --d2-item-active-bg: rgba(0,0,0,.22);
  --d2-item-active-tx: #fff;
}

.dropdown2-menu-warning{
  --d2-bg: var(--b2-warning);
  --d2-tx: #1f2328;
  --d2-bd: rgba(0,0,0,.12);
  --d2-item-hover-bg: rgba(0,0,0,.08);
  --d2-item-active-bg: rgba(0,0,0,.22);
  --d2-item-active-tx: #1f2328;
}

.dropdown2-menu-info{
  --d2-bg: var(--b2-info);
  --d2-tx: #0b0f14;
  --d2-bd: rgba(0,0,0,.12);
  --d2-item-hover-bg: rgba(0,0,0,.08);
  --d2-item-active-bg: rgba(0,0,0,.22);
  --d2-item-active-tx: #0b0f14;
}

/* Optional: accent items */
.dropdown2-item-primary{ color: var(--b2-primary); }
.dropdown2-item-success{ color: var(--b2-success); }
.dropdown2-item-danger{  color: var(--b2-danger); }
.dropdown2-item-warning{ color: #9a6b00; }
.dropdown2-item-info{    color: #087990; }

/* In colored/dark menus, keep item accents readable */
.dropdown2-menu-dark .dropdown2-item-primary,
.dropdown2-menu-primary .dropdown2-item-primary,
.dropdown2-menu-success .dropdown2-item-success,
.dropdown2-menu-danger  .dropdown2-item-danger{
  color: inherit;
}

/* =========================================================
   Optional: make dropdown inside btn-group2 align nicely
   ========================================================= */
.dropdown2.btn-group2{
  display: inline-flex;
}

/* Ensure menu is positioned relative to whole group */
.dropdown2.btn-group2 > .dropdown2-menu{
  /* default ok */
}
