/* Ana sayfa Kullanım / Tanıtım video lightbox */

.hv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(15, 23, 42, 0.55);
  opacity: 1;
  transition: opacity 0.2s ease;
}
.hv-backdrop[hidden] {
  display: none !important;
}
body.hv-is-min .hv-backdrop {
  display: none !important;
}

.hv-lightbox {
  position: fixed;
  z-index: 10015;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}
.hv-lightbox[hidden] {
  display: none !important;
}

.hv-lightbox.is-min {
  left: 16px;
  top: auto;
  bottom: 16px;
  /* Canlı destek / Destek butonunun altında kalsın */
  z-index: 9970;
  transform: none;
  width: 280px;
  max-height: none;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}

.hv-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.hv-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hv-tab:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
}
.hv-tab.is-active {
  color: #0f172a;
  background: #facc15;
}
.hv-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hv-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hv-icon-btn {
  appearance: none;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hv-icon-btn:hover {
  background: rgba(148, 163, 184, 0.28);
}

.hv-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 0;
  flex: 1;
}

.hv-lightbox.is-min .hv-body {
  display: none;
}
.hv-lightbox.is-min .hv-tabs .hv-tab:not(.is-active) {
  display: none;
}
.hv-lightbox.is-min .hv-tab {
  pointer-events: none;
  background: transparent;
  color: #e2e8f0;
  padding-left: 4px;
}
.hv-lightbox.is-min .hv-head {
  border-bottom: 0;
  height: 100%;
  padding: 0 10px;
}
.hv-lightbox.is-min .hv-icon-btn[data-hv-close] {
  display: none;
}

.hv-player-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 520px);
}

.hv-player-wrap iframe,
.hv-player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.hv-toolbar-hint {
  font-size: 12px;
  color: #94a3b8;
}

.hv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hv-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.hv-toolbar select {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.hv-toolbar .hv-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.hv-toolbar .hv-btn:hover {
  background: #334155;
}

.hv-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 640px) {
  .hv-lightbox:not(.is-min) {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .hv-tab {
    font-size: 13px;
    padding: 7px 10px;
  }
  .hv-lightbox.is-min {
    width: min(260px, calc(100vw - 88px));
  }
}
