.ap-viewport,
.ap-fullscreen {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.ap-viewport {
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ap-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  border-radius: 0;
}

.ap-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.ap-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.ap-slide.active {
  opacity: 1;
  z-index: 2;
}

.ap-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ap-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.ap-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.ap-slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ap-slide .ap-html-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  padding: 40px;
  box-sizing: border-box;
}

.ap-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  font-size: 1.5rem;
  background: #1a1a1a;
}

.ap-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.ap-viewport:hover .ap-controls {
  opacity: 1;
}

.ap-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.ap-controls button:hover {
  background: rgba(255,255,255,0.2);
}

.ap-counter {
  color: #fff;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

.ap-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ap-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.ap-indicators span.active {
  background: #fff;
}
