.izl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.2s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.izl-overlay.izl-open {
  opacity: 1;
}

.izl-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.izl-counter {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  min-width: 60px;
}

.izl-controls {
  display: flex;
  gap: 8px;
}

.izl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.izl-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.izl-btn:active {
  background: rgba(255, 255, 255, 0.32);
}

.izl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.izl-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.izl-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.izl-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.izl-track.izl-no-anim {
  transition: none;
}

.izl-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.izl-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.izl-img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  will-change: transform;
  pointer-events: none;
  -webkit-user-drag: none;
}

.izl-img.izl-dragging {
  transition: none;
  cursor: grabbing;
}

.izl-img.izl-zoomed {
  cursor: grab;
}

.izl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.izl-nav.izl-prev { left: 12px; }
.izl-nav.izl-next { right: 12px; }

@media (max-width: 600px) {
  .izl-btn { width: 44px; height: 44px; }
  .izl-nav.izl-prev { left: 4px; }
  .izl-nav.izl-next { right: 4px; }
}
