.adpc-showcase {
  --adpc-blue: #0079d3;
  --adpc-green: #22c55e;
  --adpc-text: #111827;
  --adpc-muted: #6b7280;
  --adpc-border: #e5e7eb;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.adpc-card {
  background: #ffffff;
  border: 1px solid var(--adpc-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adpc-card__title {
  font-size: 18px;
  font-weight: 900;
  color: var(--adpc-text);
  text-align: center;
  margin: 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.adpc-card__clip {
  position: relative;
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  overflow: visible;
}

.adpc-carousel {
  position: relative;
  height: 240px;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  overflow: visible;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}

.adpc-carousel.is-dragging {
  cursor: grabbing;
}

.adpc-slide {
  position: relative;
  flex: 0 0 240px;
  max-width: 240px;
  height: 240px;
  background: #f3f4f6 center/cover no-repeat;
  background-image: var(--adpc-img);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: flex-basis 0.35s ease, transform 0.35s ease, filter 0.35s ease,
    box-shadow 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  filter: saturate(0.88) brightness(0.94);
  overflow: hidden;
  z-index: 1;
  cursor: zoom-in;
}

.adpc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.12));
  z-index: 1;
  pointer-events: none;
}

.adpc-slide[data-adpc-pos="0"] {
  flex-basis: 240px;
  transform: scale(1.045);
  margin-inline: -6px;
  z-index: 10;
  filter: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.adpc-slide[data-adpc-pos="-1"],
.adpc-slide[data-adpc-pos="1"] {
  flex-basis: 44px;
  opacity: 0.96;
  z-index: 5;
  filter: saturate(0.85) brightness(0.92);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.adpc-slide[data-adpc-pos="-1"] {
  transform: translateX(6px) scale(0.94) rotateY(8deg);
}

.adpc-slide[data-adpc-pos="1"] {
  transform: translateX(-6px) scale(0.94) rotateY(-8deg);
}

.adpc-slide[data-adpc-pos="-2"],
.adpc-slide[data-adpc-pos="2"] {
  flex-basis: 22px;
  opacity: 0.88;
  z-index: 3;
  filter: saturate(0.82) brightness(0.9);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
}

.adpc-slide[data-adpc-pos="-2"] {
  transform: translateX(8px) scale(0.9) rotateY(12deg);
}

.adpc-slide[data-adpc-pos="2"] {
  transform: translateX(-8px) scale(0.9) rotateY(-12deg);
}

.adpc-slide:not([data-adpc-pos]) {
  flex-basis: 0.0001px;
  opacity: 0;
  pointer-events: none;
}

.adpc-carousel[data-adpc-edge="left"] .adpc-slide[data-adpc-pos="0"] {
  margin-inline-start: 0;
  transform: scale(1.045) translateX(3px);
}

.adpc-carousel[data-adpc-edge="right"] .adpc-slide[data-adpc-pos="0"] {
  margin-inline-end: 0;
  transform: scale(1.045) translateX(-3px);
}

.adpc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--adpc-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 121, 211, 0.35);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.adpc-badge--new {
  background: var(--adpc-green);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}

.adpc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.adpc-row--center {
  justify-content: center;
}

.adpc-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
}

.adpc-rating__stars {
  display: flex;
  gap: 6px;
}

.adpc-rating__star {
  width: 28px;
  height: 28px;
  display: block;
  fill: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease, fill 0.2s ease;
}

.adpc-rating__star:hover {
  transform: scale(1.15);
  fill: #f59e0b;
}

.adpc-rating__number {
  display: none !important;
}

.adpc-subtitle {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--adpc-text);
}

.adpc-text {
  margin: 4px 0 2px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--adpc-muted);
}

.adpc-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--adpc-text);
}

.adpc-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.35;
}

.adpc-list li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--adpc-green);
  font-weight: 900;
}

.adpc-cta {
  display: block;
  box-sizing: border-box;
  margin-top: 8px;
  background: var(--adpc-blue);
  color: #ffffff !important;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 121, 211, 0.3);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.adpc-cta:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 121, 211, 0.35);
}

.adpc-cta:active {
  transform: translateY(0);
}

.adpc-ui {
  position: absolute;
  inset: auto 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.adpc-dots {
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.adpc-dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.adpc-dots button.is-active {
  width: 18px;
  border-radius: 999px;
  background: #111827;
}

.adpc-count {
  display: none !important;
}

.adpc-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.adpc-lightbox.is-open {
  display: flex;
}

.adpc-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(1.2) blur(2px);
}

.adpc-lightbox__image {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.adpc-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  border: none;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
  opacity: 0.9;
}

.adpc-lightbox__close:hover {
  opacity: 1;
}

.adpc-carousel:not([data-adpc-ready]) .adpc-slide {
  opacity: 1 !important;
  flex-basis: 240px !important;
  pointer-events: auto;
}
