/* Prevent scroll when modal is open */
html.avc-lock, html.avc-lock body {
  overflow: hidden !important;
}

/* CTA button */
.avc-cta-wrap {
  margin: 16px 0 18px;
  display: flex;
  justify-content: center;
}

.avc-cta-btn {
  --ring: rgba(0,0,0,.12);
  --shadow: 0 14px 34px rgba(0,0,0,.14);
  --shadow2: 0 10px 24px rgba(0,0,0,.14);

  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,0,0,.95), rgba(0,0,0,.76));
  color: #fff;
  box-shadow: var(--shadow);
  outline: none;

  transform: translateY(0) scale(1);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.avc-cta-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow2);
  filter: brightness(1.03);
}

.avc-cta-btn:active {
  transform: translateY(0) scale(.99);
}

.avc-cta-btn:focus-visible {
  box-shadow: 0 0 0 6px var(--ring), var(--shadow);
}

.avc-cta-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 14px;
}

.avc-cta-text {
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.2;
}

/* Anchor (invisible) */
.avc-anchor {
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Inline teaser above first H2 */
.avc-inline {
  margin: 10px 0 18px;
}

.avc-inline-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.avc-inline-play {
  position: relative;
  padding: 0;
  border: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
  display: block;
}

.avc-inline-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.avc-inline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45));
  opacity: 0;
  transition: opacity .18s ease;
}

.avc-inline-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
  transform: translateY(0) scale(1);
  transition: transform .18s ease, background .18s ease;
}

.avc-inline-caption {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 86px;
  color: #fff;
  font-weight: 800;
  text-align: start;
  text-shadow: 0 12px 24px rgba(0,0,0,.32);
  line-height: 1.2;
}

.avc-inline-play:hover .avc-inline-overlay { opacity: 1; }
.avc-inline-play:hover .avc-inline-badge {
  transform: translateY(-1px) scale(1.03);
  background: rgba(255,255,255,.18);
}

/* entrance animation */
.avc-inline.avc-inline-in {
  animation: avcInlineIn .22s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes avcInlineIn {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal base */
.avc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.avc-modal.is-open { display: block; }

/* Backdrop dim + blur */
.avc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: avcFadeIn .18s ease forwards;
}

/* Dialog */
.avc-dialog {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-48%) scale(.98);
  border-radius: 18px;
  background: rgba(16,16,16,.92);
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
  overflow: hidden;
  opacity: 0;
  animation: avcPop .22s cubic-bezier(.2,.8,.2,1) forwards;
}

/* Close button */
.avc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease;
  z-index: 3;
}

.avc-close:hover {
  transform: scale(1.03);
  background: rgba(255,255,255,.16);
}

/* Video container */
.avc-video { padding: 14px; }

.avc-video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.avc-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Skeleton loader */
.avc-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 200% 100%;
  animation: avcShimmer 1.1s linear infinite;
}

@keyframes avcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes avcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes avcPop {
  from { opacity: 0; transform: translateY(-46%) scale(.98); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .avc-cta-text { font-size: 14px; }
  .avc-cta-btn { padding: 11px 14px; }
  .avc-dialog { border-radius: 16px; }
  .avc-inline-badge { width: 50px; height: 50px; border-radius: 14px; }
}
