/* ==========================================================================
   FORMATO PAINEL A PAINEL (TIRAS & WEBCOMICS)
   - Carrossel horizontal estilo Instagram no DESKTOP e no MOBILE
   - Adaptação dinâmica à resolução e proporção de cada prancha/painel
   - Zero drop-shadow / sombra projetada
   ========================================================================== */

.comic-panel-container {
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: none !important;
}

/* CARROSSEL ESTILO INSTAGRAM (DESKTOP & MOBILE) */
.comic-instagram-carousel {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 20px auto 36px auto;
  background: #000000;
  border: 1.5px solid #222222;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  box-shadow: none !important;
  outline: none;
  cursor: default;
  transition: max-width 0.25s ease-out;
}

.comic-carousel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-display, monospace, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  box-shadow: none !important;
}

.comic-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: default;
  box-shadow: none !important;
  transition: aspect-ratio 0.25s ease-out;
}

.comic-carousel-track::-webkit-scrollbar {
  display: none;
}

.comic-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  cursor: default;
  box-shadow: none !important;
  overflow: hidden;
}

.comic-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: default;
  box-shadow: none !important;
}

.comic-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0 14px 0;
  background: #000000;
  border-top: 1px solid #141414;
  box-shadow: none !important;
}

.comic-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: none !important;
}

.comic-carousel-dot.is-active {
  background: var(--red, #c8102e);
  transform: scale(1.35);
}

.comic-carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 8;
  box-shadow: none !important;
}

.comic-carousel-btn {
  pointer-events: auto;
  background: rgba(18, 18, 18, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.comic-carousel-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.comic-carousel-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .comic-instagram-carousel {
    max-width: 100% !important;
    margin: 12px auto 28px auto;
  }
  .comic-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}
