/* 해솔정보시스템 1일 무상 방문 컨설팅 애니메이션 (컴포넌트 스타일) */
.hs-ca {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  container-type: inline-size;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #1C2127;
}
.hs-ca__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1C2127;
  border-radius: 2px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@supports not (aspect-ratio: 16 / 9) {
  .hs-ca__stage { height: 0; padding-top: 56.25%; }
}
.hs-ca__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}
.hs-ca__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hs-ca button { font: inherit; }
.hs-ca svg { display: block; flex: none; }

/* 상시 신청 버튼 */
.hs-ca__pill {
  position: absolute;
  top: 3.6%;
  right: 1.9%;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.62em 1em;
  border: 0;
  border-radius: 2px;
  background: #EF4328;
  color: #FFFFFF;
  font-size: 15px;
  font-size: clamp(11px, 1.25cqw, 15px);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}
.hs-ca__pill:hover { background: #E02D11; }
.hs-ca__pill svg { width: 1.15em; height: 1.15em; }
.hs-ca__pill[data-hidden] { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* 마지막 장면 버튼 */
.hs-ca__end {
  position: absolute;
  left: 7.5%;
  top: 72%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  font-size: 18px;
  font-size: clamp(12px, 1.5cqw, 18px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s, transform 0.45s;
}
.hs-ca__end[data-show] { opacity: 1; transform: none; pointer-events: auto; }
.hs-ca__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.hs-ca__btn svg { width: 1.15em; height: 1.15em; }
.hs-ca__btn--primary { background: #EF4328; color: #FFFFFF; border: 0; }
.hs-ca__btn--primary:hover { background: #E02D11; }
.hs-ca__btn--ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.hs-ca__btn--ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

/* 큰 재생 버튼 */
.hs-ca__bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  width: clamp(54px, 7.5cqw, 92px);
  height: clamp(54px, 7.5cqw, 92px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(239, 67, 40, 0.92);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.25s, transform 0.25s;
}
.hs-ca__bigplay svg { width: 44%; height: 44%; margin-left: 6%; }
.hs-ca__bigplay:hover { transform: translate(-50%, -50%) scale(1.05); }
.hs-ca__bigplay[data-hidden] { opacity: 0; pointer-events: none; }

/* 하단 컨트롤 */
.hs-ca__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  height: clamp(34px, 4cqw, 46px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.62), rgba(10, 14, 20, 0));
}
.hs-ca__ctl {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}
.hs-ca__ctl svg { width: 20px; height: 20px; }
.hs-ca__ctl:hover { background: rgba(255, 255, 255, 0.12); }
.hs-ca__segs { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; height: 100%; }
.hs-ca__seg {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hs-ca__seg::before,
.hs-ca__seg i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 1px;
}
.hs-ca__seg::before { background: rgba(255, 255, 255, 0.3); }
.hs-ca__seg:hover::before { background: rgba(255, 255, 255, 0.55); }
.hs-ca__seg i { background: #EF4328; transform-origin: left center; transform: scaleX(0); }
.hs-ca__label {
  flex: none;
  max-width: 34%;
  overflow: hidden;
  color: #FFFFFF;
  font-size: 14px;
  font-size: clamp(11px, 1.1cqw, 14px);
  font-weight: 600;
  white-space: pre;
  text-overflow: ellipsis;
}
.hs-ca :focus-visible { outline: 2px solid #1F6FEB; outline-offset: 2px; }

@container (max-width: 600px) {
  .hs-ca__pill { display: none; }
  .hs-ca__label { display: none; }
  .hs-ca__bar { height: 28px; gap: 6px; padding: 0 6px; }
  .hs-ca__ctl { width: 24px; height: 24px; }
  .hs-ca__ctl svg { width: 16px; height: 16px; }
  .hs-ca__segs { gap: 2px; }
  .hs-ca__end { left: 7.5%; top: 70.5%; gap: 0.5em; font-size: 11px; }
  .hs-ca__btn { padding: 0.6em 0.9em; }
}
