
/* Ẩn hoàn toàn floating player trên trang edit / builder */
body.bricks-is-builder #hoaa-bar,
body.bricks-is-builder #hoaa-drawer,
body.bricks-builder-iframe #hoaa-bar,
body.bricks-builder-iframe #hoaa-drawer,
body.bricks-is-frontend.bricks-builder #hoaa-bar,
body.bricks-is-frontend.bricks-builder #hoaa-drawer,
.bricks-builder-body #hoaa-bar,
.bricks-builder-body #hoaa-drawer,
.elementor-editor-active #hoaa-bar,
.elementor-editor-active #hoaa-drawer,
body.wp-admin #hoaa-bar,
body.wp-admin #hoaa-drawer {
  display: none !important;
  visibility: hidden !important;
}
/* ══════════════════════════════════════════════
 * HOAA AUDIO PLAYER - STYLESHEET
 * Dark mode, mint green accent (#00cba0)
 * ══════════════════════════════════════════════ */

/* Reset & ẩn player cũ */
#floating-audio-player, .floating-player, #fp-thumbnail, #fp-thumbnail-mob {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* ════════ 1. SHORTCODE BUTTONS TRANG CATEGORY (HÌNH 1) ════════ */
.hoaa-category-actions,
.hoaa-flow-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.hoaa-flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px; /* Pill */
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-sizing: border-box;
}

/* Nút ĐỌC TIẾP: Nền trắng, chữ đen, icon play (Hình 1) */
.hoaa-btn-read {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.hoaa-btn-read:hover {
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Nút NGHE TIẾP: Nền đen, viền mỏng, chữ trắng, icon tai nghe (Hình 1) */
.hoaa-btn-listen {
  background-color: #111215 !important;
  color: #f3f4f6 !important;
  border-color: #2e3138 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.hoaa-btn-listen:hover {
  background-color: #18191e !important;
  border-color: #00cba0 !important;
  color: #00cba0 !important;
  box-shadow: 0 4px 12px rgba(0, 203, 160, 0.25);
  transform: translateY(-1px);
}

.hoaa-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hoaa-btn-icon svg {
  display: block;
}

/* ════════ 2. CỤM NÚT ĐỌC & NGHE TỪNG CHƯƠNG (HÌNH 3) ════════ */
.hoaa-chuong-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Viền tròn tinh tế cho nút Đọc & Nghe từng chương */
.hoaa-ch-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}
.hoaa-ch-btn:hover:not([disabled]):not(.hoaa-no-audio) {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--hoaa-primary, #00cba0);
}
.hoaa-ch-btn:active:not([disabled]):not(.hoaa-no-audio) {
  transform: scale(0.95);
}

/* Khi chương chưa có audio: hiển thị mờ 30%, màu xám disabled rõ ràng */
.hoaa-ch-btn.hoaa-no-audio,
.hoaa-ch-btn[disabled] {
  opacity: 0.3 !important;
  color: #6b7280 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  filter: grayscale(100%) !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.hoaa-ch-btn.hoaa-no-audio .hoaa-icon,
.hoaa-ch-btn[disabled] .hoaa-icon {
  stroke: #6b7280 !important;
}

.hoaa-ch-btn.hoaa-no-audio .hoaa-btn-label,
.hoaa-ch-btn[disabled] .hoaa-btn-label {
  color: #6b7280 !important;
}

.hoaa-ch-btn .hoaa-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Nút Đọc: Icon sách + Chữ Đọc màu trắng/xám (Hình 3) */
.hoaa-ch-read {
  color: #e5e7eb !important;
}
.hoaa-ch-read .hoaa-icon {
  stroke: #e5e7eb;
}
.hoaa-ch-read .hoaa-btn-label {
  font-size: 10px;
  font-weight: 500;
  color: #d1d5db;
  line-height: 1;
}

/* Nút Nghe: Icon tai nghe + Chữ Nghe màu xanh ngọc (Hình 3) */
.hoaa-ch-listen {
  color: var(--hoaa-primary, #00cba0) !important;
}
.hoaa-ch-listen .hoaa-icon {
  stroke: var(--hoaa-primary, #00cba0);
}
.hoaa-ch-listen .hoaa-btn-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--hoaa-primary, #00cba0);
  line-height: 1;
}

/* Nút Nghe Chương Này trên trang chi tiết chương [hoaa_nghe_chuong_nay] (Background trắng giống nút Đọc tiếp) */
.hoaa-single-listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}
.hoaa-single-listen-btn:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.hoaa-single-listen-btn:active {
  transform: translateY(0);
}
.hoaa-single-listen-btn .hoaa-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hoaa-single-listen-btn .hoaa-btn-icon svg {
  stroke: #111827 !important;
  display: block;
}
.hoaa-single-listen-btn .hoaa-btn-text {
  color: #111827 !important;
  font-size: 13px;
  font-weight: 600;
}

/* ════════ 3. THÔNG BÁO AUDIO TRANG CHI TIẾT CHƯƠNG ════════ */
.hoaa-audio-notice {
  border-radius: 10px;
  padding: 12px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hoaa-audio-notice.notice-no-audio {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}

.hoaa-audio-notice.notice-available {
  background: rgba(0, 203, 160, 0.08);
  border: 1px solid rgba(0, 203, 160, 0.35);
  color: #e5e7eb;
}

.hoaa-notice-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hoaa-notice-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.hoaa-notice-txt {
  line-height: 1.35;
}
.hoaa-notice-title {
  font-weight: 700;
  color: #fff;
}
.hoaa-notice-sub {
  font-size: 11.5px;
  opacity: 0.75;
}

.hoaa-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #00cba0;
  color: #000 !important;
  border: none;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: inherit;
}
.hoaa-notice-btn:hover {
  background: #00e6b5;
  transform: scale(1.04);
}

/* ════════ 4. FLOATING PLAYER BAR CỐ ĐỊNH Ở ĐÁY MÀN HÌNH ════════ */
#hoaa-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--hoaa-bar-bg, #0e0e11);
  color: var(--hoaa-text-color, #fff);
  z-index: 9999999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.85);
  border-top: 1px solid #1f2026;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  display: none;
  user-select: none;
}
#hoaa-bar.hoaa-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Progress bar phía trên mép player bar */
.hb-prog-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  z-index: 2;
  transition: height 0.15s ease;
}
.hb-prog-wrap:hover {
  height: 6px;
}
.hb-prog-fill {
  height: 100%;
  width: 0%;
  background: var(--hoaa-primary, #00cba0);
  pointer-events: none;
  transition: width 0.1s linear;
}

.hb-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 12px;
  position: relative;
}

/* Cover ảnh truyện tỉ lệ 3:5 nhô đè lên trên thanh bar */
.hb-cover {
  width: 40px;
  height: 60px;
  aspect-ratio: 3/5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.6), 0 4px 14px rgba(0, 0, 0, 0.7);
  background: #18191e;
  position: relative;
  top: -10px;
  margin-bottom: -10px;
  z-index: 10;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta: Tên chương & Tên truyện */
.hb-meta {
  flex: 1 1 0%;
  min-width: 0;
}
.hb-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.hb-sub {
  font-size: 11.5px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.hb-sub-series {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-sep {
  opacity: 0.5;
}
.hb-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: #9ca3af;
}

/* Nút điều khiển audio */
.hb-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hb-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
  color: #d1d5db;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.hb-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Nút tắt hình vuông lớn, không bo góc, nền xanh timeline */
.hb-close-bar {
  position: absolute;
  bottom: 100%;
  right: 12px;
  width: 26px;
  height: 26px;
  background: var(--hoaa-primary, #00cba0) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #0b0c10 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 100;
  transition: all 0.15s ease;
  box-sizing: border-box;
  line-height: 1;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}

.hb-close-bar:hover {
  background: #ff4444 !important;
  color: #ffffff !important;
}

.hb-close-bar svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.8;
  display: block;
}

@media (max-width: 768px) {
  .hb-close-bar {
    right: 8px;
    width: 32px !important;
    height: 32px !important;
  }
  .hb-close-bar svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 3 !important;
  }
}
.hb-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.hb-btn svg.hb-icon-stroke,
.hb-icon-stroke {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.hb-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
  color: #d1d5db;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
  box-sizing: border-box;
  line-height: 1;
}
.hb-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Nút Play/Pause chính */
.hb-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin: 0 2px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hb-play:hover {
  transform: scale(1.08);
  background: #f3f4f6;
}
.hb-play:active {
  transform: scale(0.95);
}
.hb-play svg {
  width: 16px;
  height: 16px;
  fill: #000;
  stroke: none;
}
.hb-play .hb-pause-icon {
  display: none;
}
.hb-play.playing .hb-play-icon {
  display: none;
}
.hb-play.playing .hb-pause-icon {
  display: block;
}

.hb-speed {
  font-size: 12px;
  font-weight: 500;
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
}

/* Hẹn giờ tắt */
.hb-sleep-wrap {
  position: relative;
}
.hb-sleep-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #00cba0;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  display: none;
}
.hb-sleep-pop {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  background: #18191e;
  border: 1px solid #2d3039;
  border-radius: 8px;
  width: 150px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  z-index: 10000001;
}
.hb-sleep-pop.open {
  display: block;
}
.hb-sleep-pop-hd {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  border-bottom: 1px solid #262830;
  letter-spacing: 0.5px;
}
.hb-sleep-opt {
  padding: 8px 12px;
  font-size: 12px;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.12s ease;
}
.hb-sleep-opt:hover {
  background: var(--hoaa-primary, #00cba0);
  color: #000;
  font-weight: 700;
}

/* ════════ 5. DRAWER DANH SÁCH CHƯƠNG (HÌNH 2) ════════ */
#hoaa-drawer {
  position: fixed;
  bottom: 64px;
  right: 16px;
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: 520px;
  background: var(--hoaa-drawer-bg, #121316);
  color: var(--hoaa-text-color, #fff);
  border: 1px solid #262830;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.85);
  z-index: 9999998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#hoaa-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #18191e;
  border-bottom: 1px solid #262830;
  flex-shrink: 0;
}
.hd-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.hd-head-icon {
  fill: var(--hoaa-primary, #00cba0);
}
.hd-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}
.hd-close:hover {
  color: #fff;
}

/* Toolbar trong drawer (Thiết kế tinh tế theo ảnh mẫu) */
.hd-toolbar {
  padding: 12px 16px 10px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Thanh tìm kiếm chương: Dạng pill bo tròn thanh thoát */
.hd-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.hd-search-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  stroke: #71717a;
}
.hd-search-inp {
  width: 100%;
  height: 36px;
  background: #0f1013;
  border: 1px solid #27272a;
  border-radius: 9999px; /* Pill */
  color: #fff;
  padding: 0 14px 0 36px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.hd-search-inp:focus {
  border-color: #00cba0;
  background: #14151a;
  box-shadow: 0 0 0 2px rgba(0, 203, 160, 0.15);
}
.hd-search-inp::placeholder {
  color: #52525b;
}

/* Nút Nghe: Dạng pill bo tròn, chữ trắng tinh tế */
.hd-search-btn {
  height: 36px;
  background: var(--hoaa-primary, #14b8a6);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px; /* Pill */
  padding: 0 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}
.hd-search-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.hd-search-btn:active {
  transform: translateY(0);
}

/* Nút Về chương đang nghe: 59 */
.hd-jump-current {
  font-size: 12px;
  color: var(--hoaa-primary, #00cba0);
  padding: 0 4px;
  margin-top: -2px;
}
.hd-jump-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.hd-jump-btn:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.hd-jump-btn strong {
  font-weight: 700;
}

/* Phân đoạn chương: < [ Ch.1-30 v ] > thiết kế gọn gàng */
.hd-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}
.hd-range-nav-btn {
  width: 28px;
  height: 32px;
  background: transparent;
  border: none;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.hd-range-nav-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.hd-range-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.hd-range-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  background: #0f1013;
  border: 1px solid #27272a;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.hd-range-box:hover {
  border-color: #3f3f46;
}
.hd-range-select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #e4e4e7;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  text-align-last: center;
  padding: 0 28px 0 12px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.hd-range-select option {
  background: #18181b;
  color: #fff;
  padding: 8px;
}
.hd-range-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  stroke: #71717a;
}

/* Danh sách chương */
.hd-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: #2d303a transparent;
}
.hd-list::-webkit-scrollbar {
  width: 6px;
}
.hd-list::-webkit-scrollbar-thumb {
  background: #2d303a;
  border-radius: 3px;
}

/* Mỗi item chương trong list */
.hd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  gap: 12px;
  transition: background 0.12s ease;
}
.hd-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.hd-item.active {
  background: rgba(255, 255, 255, 0.05);
}
.hd-item.active .hd-item-name {
  color: var(--hoaa-primary, #00cba0);
  font-weight: 700;
}
.hd-item.active .hd-item-no {
  color: var(--hoaa-primary, #00cba0);
}
.hd-item.active .hd-item-icon svg {
  stroke: var(--hoaa-primary, #00cba0) !important;
  fill: none !important;
}

.hd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.hd-item-no {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  min-width: 24px;
}
.hd-item-name {
  font-size: 13px;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.hd-item-icon svg {
  width: 17px;
  height: 17px;
  stroke: #6b7280;
  fill: none;
}

.hd-empty {
  padding: 30px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ════════ 6. RESPONSIVE MOBILE OPTIMIZATIONS ════════ */
@media (max-width: 600px) {
  #hoaa-bar {
    height: 58px;
  }
  .hb-inner {
    padding: 0 8px;
    gap: 6px;
    justify-content: space-between;
  }
  .hb-cover {
    width: 34px !important;
    height: 50px !important;
    position: relative !important;
    top: -8px !important;
    margin-bottom: -8px !important;
    z-index: 10 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
  }
  .hb-meta {
    display: none;
  }
  .hb-ctrls {
    gap: 4px;
    flex: 1;
    justify-content: space-between;
  }
  .hb-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
  }
  .hb-btn svg {
    width: 15px;
    height: 15px;
  }
  #hb-prev svg,
  #hb-next svg {
    width: 15px;
    height: 15px;
  }
  .hb-pill {
    height: 26px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
    border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.2px;
  }
  .hb-play {
    width: 32px;
    height: 32px;
    margin: 0;
    flex-shrink: 0;
  }
  .hb-play svg {
    width: 15px;
    height: 15px;
  }
  .hb-speed {
    font-size: 12px;
    font-weight: 500;
    min-width: 28px;
    height: 26px;
    padding: 0 5px;
    border: 1px solid var(--hoaa-btn-border, rgba(255, 255, 255, 0.18));
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
  }
  #hoaa-drawer {
    left: 0 !important;
    right: 0 !important;
    bottom: 58px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    border-radius: 16px 16px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.9) !important;
  }
  .hb-sleep-pop {
    bottom: 60px !important;
    right: 0 !important;
  }
}

