.lilvr-video-gallery {
  position: fixed;
  inset: 0;
  z-index: 6800;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lilvr-video-gallery.open {
  display: flex;
  pointer-events: auto;
}

.lilvr-video-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lilvr-video-gallery-card {
  position: relative;
  width: min(92vw, 420px);
  max-height: min(78vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(8, 10, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.lilvr-video-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lilvr-video-gallery-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: #e2e8f0;
  margin: 0;
}

.lilvr-video-gallery-tagline {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.lilvr-video-gallery-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lilvr-video-gallery-gate {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.lilvr-video-gallery-toolbar {
  padding: 12px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.lilvr-video-gallery-import {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.18));
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.lilvr-video-gallery-toolbar-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.lilvr-video-gallery-status {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.lilvr-video-gallery-status.busy {
  color: #7dd3fc;
  background: rgba(0, 212, 255, 0.08);
}

.lilvr-video-gallery-status.ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
}

.lilvr-video-gallery-status.err {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.lilvr-video-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
  overflow: auto;
}

.lilvr-video-gallery-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.lilvr-video-gallery-row .lilvr-video-gallery-item {
  flex: 1;
  min-width: 0;
}

.lilvr-video-gallery-row-convert {
  flex-shrink: 0;
  align-self: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.lilvr-video-gallery-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
  color: #78350f;
  background: #fbbf24;
}

.lilvr-video-gallery-empty {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  padding: 24px 8px;
}

.lilvr-video-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.lilvr-video-gallery-item:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

.lilvr-video-gallery-item-title {
  font-size: 14px;
  font-weight: 700;
}

.lilvr-video-gallery-item-meta {
  font-size: 11px;
  color: #94a3b8;
}

.lilvr-video-gallery-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 16px;
}

.lilvr-video-gallery-player {
  width: 100%;
  max-height: 50vh;
  border-radius: 12px;
  background: #000;
}

.lilvr-video-gallery-player-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lilvr-video-gallery-back,
.lilvr-video-gallery-share,
.lilvr-video-gallery-convert {
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.lilvr-video-gallery-share {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(124, 58, 237, 0.25));
  border-color: rgba(0, 212, 255, 0.4);
  color: #e0f2fe;
}

.lilvr-video-gallery-convert {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}
