.sk-menu-ui {
  --sk-bar-font: "PP Fragment Sans", system-ui, sans-serif;
  --sk-panel-serif: Georgia, "Times New Roman", serif;
  --sk-frost-bg: rgba(205, 203, 196, 0.20);
  --sk-frost-blur: blur(10px);
}

/*
 * Lớp frost RIÊNG (fixed, không blend) — backdrop-filter sống ở đây.
 * Lớp controls (.sk-menu-bar) fixed + exclusion — chữ/icon invert theo nền trang.
 * Không gắn mix-blend-mode lên con của fixed: Chrome sẽ grey property đó.
 */
.sk-menu-bar-frost {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

.sk-menu-bar-frost__chip {
  position: fixed;
  border-radius: 999px;
  background: var(--sk-frost-bg);
  backdrop-filter: var(--sk-frost-blur);
  -webkit-backdrop-filter: var(--sk-frost-blur);
  box-sizing: border-box;
}

.sk-menu-bar-frost__active {
  position: fixed;
  border-radius: 999px;
  background: #ffffff;
  box-sizing: border-box;
}

.sk-menu-bar {
  position: fixed;
  bottom: clamp(16px, 3vh, 32px);
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  mix-blend-mode: difference;
}

.sk-menu-bar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1100px, calc(100vw - 24px));
  pointer-events: auto;
}

.sk-menu-bar__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  box-sizing: border-box;
}

/* Nền frost do .sk-menu-bar-frost vẽ — ẩn placeholder trong controls */
.sk-menu-bar__chip-bg {
  display: none;
}

.sk-menu-bar__chip-fg {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 8px 12px;
  box-sizing: border-box;
  color: #ffffff;
  font-family: var(--sk-bar-font);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.sk-menu-bar__icon {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.sk-menu-bar__view { padding: 0; }
.sk-menu-bar__view-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  color: #fff;
}

.sk-menu-bar__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.7;
  box-sizing: border-box;
}

/* Pill trắng thật nằm ở frost layer; ở đây chỉ cần chữ #fff (→ đen trên pill trắng nhờ exclusion) */
.sk-menu-bar__view-btn.is-active {
  background: transparent;
  color: #ffffff;
  opacity: 1;
}

.sk-menu-bar__view-btn.is-active .sk-menu-bar__icon {
  filter: none;
}

.sk-menu-bar__category {
  width: 280px;
  flex-shrink: 0;
}

.sk-menu-bar__category-fg {
  width: 100%;
  justify-content: flex-start;
}

.sk-menu-bar__category-prefix { opacity: 0.7; }

.sk-menu-bar__category-label {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sk-menu-bar__category .sk-menu-bar__chevron {
  margin-left: auto;
  flex-shrink: 0;
}

.sk-menu-bar__chevron { opacity: 0.8; }

/* Progress */
.sk-menu-bar__progress {
  flex: 1;
  min-width: 80px;
  cursor: default;
  overflow: visible;
  border-radius: 999px;
}

.sk-menu-bar__progress-fg {
  position: relative;
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
}

.sk-menu-bar__progress-track {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0.35;
}

.sk-menu-bar__progress-thumb {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 2px;
  height: 16px;
  margin-top: -8px;
  background: currentColor;
  border-radius: 1px;
  will-change: left;
}

.sk-menu-bar__lang { flex-shrink: 0; }
.sk-menu-bar__flag { font-size: 14px; line-height: 1; }

.sk-menu-bar__audio {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
}

.sk-menu-bar__audio .sk-menu-bar__chip-fg {
  padding: 0;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.sk-menu-bar__audio.is-on .sk-menu-bar__audio-icon--off { display: none; }
.sk-menu-bar__audio.is-off .sk-menu-bar__audio-icon--on { display: none; }
.sk-menu-bar__audio.is-off .sk-menu-bar__audio-icon--off { display: block; }

/* Overlay + float panels */
.sk-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.06);
}
.sk-menu-overlay:not([hidden]) { display: block; }

.sk-float-panel {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.sk-float-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sk-float-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--sk-bar-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.sk-float-panel__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #111;
  line-height: 1;
}

.sk-float-panel__footer {
  margin-top: 16px;
  font-family: var(--sk-bar-font);
  font-size: 11px;
  color: rgba(17, 17, 17, 0.45);
  text-align: center;
}

.sk-category-panel__list,
.sk-lang-panel__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: min(50vh, 400px);
}

.sk-category-panel__item,
.sk-lang-panel__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-family: var(--sk-panel-serif);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.sk-category-panel__marker {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0;
  flex-shrink: 0;
}

.sk-category-panel__item.is-active,
.sk-lang-panel__item.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.sk-category-panel__item.is-active .sk-category-panel__marker { opacity: 1; }

body.sk-menu-panel-open { overflow: hidden; }

@media (max-width: 767px) {
  .sk-menu-bar__row { flex-wrap: wrap; justify-content: center; }
  .sk-menu-bar__progress { order: 5; width: 100%; flex: none; }
  .sk-float-panel.is-mobile-sheet {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 20px 20px 0 0;
  }
}

/* Hide Elementor wrapper chrome for the bar container */
.sk-menu-ui-wrap {
  min-height: 0 !important;
  height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}
.sk-menu-ui-wrap > .e-con-inner,
.sk-menu-ui-wrap .elementor-widget-html,
.sk-menu-ui-wrap .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}
