.hu {
  --hu-blue: #0069FE;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(680px, 1fr);
  overflow: visible;
  gap: 40px;
  align-items: center;
  direction: rtl;
  background: transparent;
  color: #eef4ff;
  font-family: IRANSansX, IRANSans, Vazirmatn, Tahoma, sans-serif;
  padding: 24px 0 40px;
  box-sizing: border-box;
}
.hu-copy { position: relative; justify-self: start; width: min(340px, 100%); min-height: 440px; }
.hu-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #7eb0ff;
  font-size: 14px;
  font-weight: 700;
}
.hu-kicker span { width: 3px; height: 16px; border-radius: 3px; background: #0069FE; }
.hu-copy h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
}
.hu-lead {
  max-width: 340px;
  height: 68px;
  margin: 14px 0 0 auto;
  color: #b7c7de;
  font-size: 14px;
  line-height: 1.9;
  overflow: hidden;
}
.hu-tabs {
  position: absolute;
  top: 168px;
  right: 0;
  display: grid;
  gap: 6px;
  width: 280px;
  margin: 0;
}
.hu-tab {
  position: relative;
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #d5e2f5;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
}
.hu-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0;
  background: rgba(0, 105, 254, 0.55);
}
.hu-tab svg { width: 26px; height: 26px; flex: 0 0 auto; color: #0069FE; }
.hu-tab:hover,
.hu-tab:focus {
  background: rgba(0, 105, 254, 0.16) !important;
  border-color: #0069FE !important;
  color: #fff !important;
}
.hu-tab.is-on {
  background: rgba(0, 105, 254, 0.28);
  border-color: rgba(0, 105, 254, 0.7);
  color: #fff;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 8px 22px rgba(0,105,254,0.22);
}
.hu-tab.is-on::before {
  top: 0;
  bottom: 0;
  width: 7px;
  background: #0069FE;
}
.hu-tab.is-on svg { color: #fff; }
.hu-stage {
  position: relative;
  width: 100%;
  min-width: 680px;
  height: 460px;
  min-height: 460px;
  perspective: 1200px;
}
.hu-device,
.hu-device.is-phone,
.hu-device.is-tablet,
.hu-device[data-panel="media"] {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  display: none;
  width: 680px;
  height: 490px;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 28, 58, 0.9), rgba(6, 16, 34, 0.92));
  border: 1px solid rgba(0, 105, 254, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 105, 254, 0.22), 0 24px 50px rgba(0,0,0,0.35), 0 0 36px rgba(0, 105, 254, 0.28);
  transform: perspective(1600px) rotateY(8deg) rotateZ(-2deg);
  transform-origin: center center;
  overflow: hidden;
  box-sizing: border-box;
}
.hu-device.is-on,
.hu-device[data-panel="media"].is-on { display: flex; }
.hu-side {
  width: 54px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 22px;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.hu-side i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
}
.hu-side i.is-on { background: #0069FE; }
.hu-screen { flex: 1; padding: 18px 16px; min-width: 0; }
.hu-callbar, .hu-meet-head, .hu-search, .hu-wave {
  margin-bottom: 12px;
  color: #d5e4f8;
  font-size: 13px;
}
.hu-bubble, .hu-line, .hu-step, .hu-cards div, .hu-split div, .hu-clips p {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #d7e3f4;
  font-size: 13px;
  line-height: 1.7;
}
.hu-bubble.is-agent, .hu-step.is-done { background: rgba(0,105,254,0.22); border-color: rgba(0,105,254,0.4); }
.hu-bubble small, .hu-line b, .hu-step b, .hu-cards b, .hu-split b { display: block; color: #9eb6d8; font-size: 11px; }
.hu-media-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; }
.hu-video {
  min-height: 120px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #1d4f9a, #10203a);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.hu-bars, .hu-wave { height: 28px; border-radius: 8px; background: repeating-linear-gradient(90deg, #0069FE 0 6px, transparent 6px 10px); opacity: 0.8; }
.hu-cards { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 8px; margin-top: 10px; }
.hu-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hu-stage { min-width: 680px; height: 460px; min-height: 460px; }
.hu-device[data-panel="media"].is-on { display: flex; }
.hu-media { height: 100%; display: flex; flex-direction: column; gap: 12px; direction: ltr; }
.hu-media-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; min-height: 250px; }
.hu-player, .hu-results, .hu-timeline, .hu-tool {
  border: 1px solid rgba(120, 170, 255, 0.22);
  border-radius: 16px;
  background: rgba(8, 20, 42, 0.45);
}
.hu-player { overflow: hidden; }
.hu-video-el { width: 100%; height: 200px; object-fit: cover; background: #071226; display: block; border-radius: 16px 16px 0 0; }
.hu-subbox, .hu-extract { direction: rtl; text-align: right; }
.hu-cue-list { height: 168px; overflow: hidden; }
.hu-cue-track { display: flex; flex-direction: column; transition: transform .35s ease; }
.hu-hit, .hu-hit.is-on { border: 0 !important; box-shadow: none; min-height: 0; padding: 2px 0; background: transparent; }
.hu-hit.is-on { background: rgba(0, 105, 254, 0.22); border-radius: 8px; }
.hu-wavebar { position: relative; height: 54px; overflow: hidden; border-radius: 10px; background: rgba(8, 22, 48, 0.35); }
.hu-wave-track { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.hu-wavebar i,
.hu-wave-track i {
  display: block;
  width: 1px;
  flex: 0 0 1px;
  border-radius: 1px;
  background: rgba(0, 105, 254, 0.7);
  box-shadow: none;
}
.hu-wave-win { position: absolute; top: 8px; bottom: 8px; width: 18%; border-radius: 8px; background: rgba(0, 105, 254, 0.28); border: 1px solid rgba(120, 170, 255, 0.65); pointer-events: none; }
.hu-wave-play { position: absolute; top: 4px; bottom: 4px; width: 2px !important; background: #fff; pointer-events: none; }
.hu-hit { height: auto; align-items: flex-start; overflow: hidden; box-sizing: border-box; }
.hu-hit span { flex: 1; min-width: 0; display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-size: 11px; line-height: 1.5; }
.hu-play,
.hu-mute,
.hu-play:hover,
.hu-mute:hover {
  position: static !important;
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.hu-play::before,
.hu-play::after,
.hu-mute::before,
.hu-mute::after { content: none !important; display: none !important; }
.hu-video-el { position: relative; z-index: 2; }
.hu-device { overflow: hidden; }
.hu-seek i { position: absolute !important; left: 0; top: 0; height: 4px !important; max-height: 4px !important; bottom: auto !important; width: 0; max-width: 100%; background: #0069FE; }
.hu-wave-play { position: absolute; top: 6px; bottom: 6px; left: 0; width: 2px !important; height: auto; background: #fff; }
.hu-hit b { margin-right: auto; color: #9ec4ff; font-size: 12px; min-width: 42px; text-align: left; }
.hu-hit.is-on { background: rgba(0, 105, 254, 0.28); border-color: rgba(0, 105, 254, 0.55); backdrop-filter: blur(10px); color: #fff; }
.hu-player-scene {
  flex: 1;
  min-height: 180px;
  position: relative;
  background: radial-gradient(circle at 70% 40%, #1d4e98, #0b1c36 62%);
}
.hu-cam {
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: 46%;
  height: 46%;
  border-radius: 8px 16px 10px 10px;
  background: linear-gradient(180deg, #1b3f72, #102848);
  box-shadow: 18px 8px 0 rgba(8, 20, 40, 0.45);
}
.hu-cam:before {
  content: "";
  position: absolute;
  left: 18%;
  top: 22%;
  width: 34%;
  height: 46%;
  border-radius: 50%;
  border: 6px solid #8eb6ff;
}
.hu-screen-glow {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 34%;
  height: 42%;
  border-radius: 6px;
  background: rgba(90, 160, 255, 0.35);
}
.hu-player-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #d7e6ff;
  font-size: 12px;
}
.hu-mute { border: 0; background: transparent; color: #d7e6ff; font-size: 11px; cursor: pointer; }
.hu-seek { display: block; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); overflow: hidden; }
.hu-seek b { display: block; height: 4px; width: 0; background: #0069FE; position: static !important; }
.hu-vol, .hu-full { width: 14px; height: 14px; border: 1.5px solid #d7e6ff; border-radius: 3px; }
.hu-results { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.hu-search, .hu-hit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: auto;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 176, 255, 0.2);
  color: #d5e4f8;
  font-size: 13px;
  line-height: 1.6;
}
.hu-hit.is-on { background: rgba(0, 105, 254, 0.28); border-color: rgba(0, 105, 254, 0.55); }
.hu-timeline { padding: 0; border: 0; background: transparent; }
.hu-times { display: flex; justify-content: space-between; color: #8eabc8; font-size: 11px; margin: 0 2px 6px; }
.hu-wavebar { position: relative; height: 54px; overflow: hidden; border-radius: 10px; background: rgba(8, 22, 48, 0.35); padding: 0; border: 1px solid rgba(120, 170, 255, 0.22); }
.hu-wave-win { position: absolute; top: 0; bottom: 0; width: 18%; border-radius: 10px; background: rgba(0, 105, 254, 0.28); border: 1px solid rgba(120, 170, 255, 0.65); pointer-events: none; }
.hu-wavebar i { background: #0069FE; box-shadow: none; }
.hu-wave-play { position: absolute; top: 6px; bottom: 6px; width: 2px; background: #fff; pointer-events: none; }
.hu-extract-label { text-align: right; color: #9eb6d8; font-size: 12px; margin: 2px 4px; }
.hu-hit,
.hu-hit.is-on,
.hu-hit span,
.hu-hit.is-on span {
  font-size: 11px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  transform: none !important;
}
.hu-extract-row {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr 1fr !important;
  gap: 16px !important;
}
.hu-tool {
  margin: 0 !important;
  min-width: 0 !important;
}
.hu-tool { min-height: 92px; display: flex; align-items: center; gap: 10px; padding: 12px; }
.hu-tool b { display: block; margin-bottom: 8px; font-size: 14px; }
.hu-tool small { display: inline-flex; margin-left: 4px; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(150,186,230,0.35); color: #b7c9e4; font-size: 10px; }
.hu-tool-ico { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(140,180,255,0.35); }
.hu-tool em { display: inline-block; width: 14px; height: 14px; border-bottom: 1.6px solid #9eb6d8; border-left: 1.6px solid #9eb6d8; transform: translateY(-2px); }
.hu-tool em.is-arrow { border: 0; border-top: 1.6px solid #9eb6d8; border-right: 1.6px solid #9eb6d8; transform: rotate(45deg); width: 10px; height: 10px; display: inline-block; }
@media (max-width: 900px) {
  .hu { grid-template-columns: 1fr; }
  .hu-device[data-panel="media"] { position: relative; inset: auto; transform: none; }
  .hu-media-top, .hu-extract-row { grid-template-columns: 1fr; }
}
