/* Minimalist High-Fashion Editorial Broadcast Widgets for /unikon/live & /unikon/talk
 * Designed to slide in ("chạy ra") and slide out ("chạy vào") smoothly on #avatar-stage
 * without obstructing Luna Mai's face in the center. */

.ukl-lux-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Top perimeter bar: Live Editorial Status (left) + Voice/Gesture Aura (right) */
.ukl-lux-top-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

.ukl-lux-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: rgba(7, 7, 10, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 176, 130, 0.34);
  border-radius: 2px;
  color: #f4efe6;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.ukl-lux-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9b082;
  box-shadow: 0 0 10px #c9b082;
  animation: uklLuxPulse 2.2s infinite ease-in-out;
}

@keyframes uklLuxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.82); }
}

/* Shared Luxury Card Base + Enter/Exit Motion Choreography */
.ukl-lux-widget {
  position: absolute;
  background: linear-gradient(135deg, rgba(10, 10, 14, 0.86) 0%, rgba(16, 15, 22, 0.78) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 176, 130, 0.36);
  border-radius: 2px;
  color: #f4efe6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(244, 239, 230, 0.08);
  pointer-events: auto;
  overflow: hidden;
  will-change: transform, opacity;
  transition:
    transform 0.56s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.ukl-lux-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e5d5b5 0%, #c9b082 55%, rgba(201, 176, 130, 0.15) 100%);
}

/* 1. Bottom-Left Editorial Lower-Third (Zodiac Signs & Sky Today) */
.ukl-lux-lower-third {
  left: 16px;
  bottom: 46px;
  width: min(300px, 31%);
  padding: 11px 15px 13px 17px;
}

.ukl-lux-lower-third[data-widget-state="hidden"] {
  opacity: 0;
  transform: translate3d(-44px, 12px, 0) scale(0.98);
  pointer-events: none;
}
.ukl-lux-lower-third[data-widget-state="entering"],
.ukl-lux-lower-third[data-widget-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ukl-lux-lower-third[data-widget-state="exiting"] {
  opacity: 0;
  transform: translate3d(-36px, 6px, 0) scale(0.985);
  pointer-events: none;
}

/* 2. Left-Mid Floating Viewer Comment Spotlight */
.ukl-lux-comment-card {
  left: 16px;
  top: 56px;
  width: min(285px, 31%);
  padding: 10px 14px 11px 16px;
  border-color: rgba(229, 213, 181, 0.52);
}

.ukl-lux-comment-card[data-widget-state="hidden"] {
  opacity: 0;
  transform: translate3d(-48px, -8px, 0) scale(0.97);
  pointer-events: none;
}
.ukl-lux-comment-card[data-widget-state="entering"],
.ukl-lux-comment-card[data-widget-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ukl-lux-comment-card[data-widget-state="exiting"] {
  opacity: 0;
  transform: translate3d(-40px, -6px, 0) scale(0.98);
  pointer-events: none;
}

/* 3. Bottom-Right Luxury Pinned Product / Natal Crest Card */
.ukl-lux-product-card {
  right: 16px;
  bottom: 46px;
  width: min(285px, 31%);
  padding: 11px 14px 12px 16px;
}

.ukl-lux-product-card[data-widget-state="hidden"] {
  opacity: 0;
  transform: translate3d(46px, 10px, 0) scale(0.97);
  pointer-events: none;
}
.ukl-lux-product-card[data-widget-state="entering"],
.ukl-lux-product-card[data-widget-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ukl-lux-product-card[data-widget-state="exiting"] {
  opacity: 0;
  transform: translate3d(40px, 8px, 0) scale(0.98);
  pointer-events: none;
}

/* 4. Top-Right / Upper-Right Order & Milestone Toast */
.ukl-lux-toast-card {
  right: 16px;
  top: 56px;
  width: min(275px, 30%);
  padding: 10px 14px 11px 16px;
  border-color: rgba(229, 213, 181, 0.62);
  background: linear-gradient(135deg, rgba(22, 19, 14, 0.90) 0%, rgba(12, 11, 15, 0.86) 100%);
}

.ukl-lux-toast-card[data-widget-state="hidden"] {
  opacity: 0;
  transform: translate3d(42px, -10px, 0) scale(0.97);
  pointer-events: none;
}
.ukl-lux-toast-card[data-widget-state="entering"],
.ukl-lux-toast-card[data-widget-state="visible"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.ukl-lux-toast-card[data-widget-state="exiting"] {
  opacity: 0;
  transform: translate3d(36px, -8px, 0) scale(0.98);
  pointer-events: none;
}

/* Typography inside Luxury Widgets */
.ukl-lux-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9b082;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.ukl-lux-title {
  margin: 0;
  font: 500 18.5px/1.2 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.02em;
  color: #f4efe6;
}

.ukl-lux-sub {
  margin: 4px 0 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(244, 239, 230, 0.78);
  font-weight: 300;
}

.ukl-lux-quote {
  margin: 4px 0 0 0;
  font: italic 400 14.5px/1.35 "Cormorant Garamond", Georgia, serif;
  color: #f4efe6;
}

.ukl-lux-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(244, 239, 230, 0.09);
}

.ukl-lux-price {
  font: 600 13px Inter, sans-serif;
  color: #e5d5b5;
  letter-spacing: 0.06em;
}

.ukl-lux-cta {
  padding: 4px 10px;
  font: 500 10px Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #070709;
  background: #c9b082;
  border: 1px solid #c9b082;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ukl-lux-cta:hover {
  background: #f4efe6;
  border-color: #f4efe6;
}

/* Hairline Progress Bar & Audio Stream Bar */
.ukl-lux-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 239, 230, 0.07); overflow: hidden; }
.ukl-lux-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, rgba(201, 176, 130, 0.35), #e5d5b5); transition: width 0.22s linear; }
.ukl-audio-stream-bar { position: relative; padding: 7px 10px 10px; background: rgba(7, 7, 9, 0.85); border: 1px solid rgba(201, 176, 130, 0.25); border-radius: 3px; margin-bottom: 6px; }
.ukl-viewer-cmt { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 7px !important; padding: 10px 12px !important; }
.ukl-cmt-body { display: grid; gap: 4px; min-width: 0; width: 100%; line-height: 1.4; }
.ukl-cmt-reply { display: block; color: #c9b082; font-size: 11.5px; line-height: 1.4; padding-left: 8px; border-left: 2px solid rgba(201, 176, 130, 0.45); }
.ukl-viewer-cmt > .ukl-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-start; width: 100%; }
#viewer-account-presets { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
#viewer-account-presets .ukl-btn { min-height: 30px; padding: 5px 8px; font-size: 10px; justify-content: flex-start; text-align: left; }

/* Control bar below video stage to inspect/test widget enter-exit choreography */
.ukl-lux-choreo-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 8px 12px; background: rgba(11, 11, 15, 0.78);
  border: 1px solid rgba(201, 176, 130, 0.24); border-radius: 3px; font-size: 11px;
}
.ukl-lux-choreo-bar .ukl-btn { min-height: 28px; padding: 4px 10px; font-size: 10px; }
body.ukl-broadcast-clean .ukl-lux-choreo-bar,
body.ukl-broadcast-clean #livestream-director-card,
body.ukl-broadcast-clean #live-shop-card,
body.ukl-broadcast-clean .ukl-stage-col > .ukl-controls,
body[data-viewer-room="1"] .ukl-lux-choreo-bar { display: none !important; }

@media (max-width: 720px) {
  .ukl-lux-top-bar { top: 6px; left: 6px; right: 6px; }
  .ukl-lux-pill { padding: 2px 6px; font-size: 7px; letter-spacing: 0.06em; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .ukl-lux-lower-third { left: 6px; right: auto; bottom: 26px; width: 31%; padding: 4px 6px; }
  .ukl-lux-product-card { right: 6px; left: auto; bottom: 26px; width: 31%; padding: 4px 6px; }
  .ukl-lux-comment-card { left: 6px; right: auto; top: 26px; bottom: auto; width: 31%; padding: 4px 6px; }
  .ukl-lux-toast-card { right: 6px; left: auto; top: 26px; width: 31%; padding: 4px 6px; }
  .ukl-lux-eyebrow { font-size: 7px; letter-spacing: 0.08em; margin-bottom: 2px; }
  .ukl-lux-title { font-size: 10px; line-height: 1.15; }
  .ukl-lux-sub, .ukl-lux-meta-row { display: none; }
  .ukl-lux-quote { font-size: 9px; line-height: 1.2; }
  .ukl-stage-overlay { left: 6px; right: 6px; bottom: 3px; }
  .ukl-stage-overlay .ukl-badge { padding: 2px 6px; font-size: 6.5px; letter-spacing: 0.08em; }
  #viewer-comment-form { display: grid !important; grid-template-columns: 1fr; gap: 6px; }
  #viewer-comment-form input, #viewer-comment-form button { width: 100% !important; }
}

