/* Video showcase cards (used inside the aic-slider chassis). */

.aic-videos-slider .aic-slider__item {
  width: 340px;
  max-width: 82vw;
}

.aic-video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aic-video-card__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #0b1f1a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .10);
}

.aic-video-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
/* Standard brand cover when no thumbnail/YouTube preview exists:
   full NOVAMED logo centred on a light brand background. */
.aic-video-card__img--ph {
  background: linear-gradient(135deg, #f4faf8, #e6f2ec);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aic-video-card__ph-logo {
  width: 62%;
  max-width: 190px;
  height: auto;
}
/* Compact play badge in the corner so it never covers the logo. */
.aic-video-card__play--ph {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 12px;
  transform: none;
  width: 40px;
  height: 40px;
  background: var(--primary-dark, #067A55);
  color: #fff;
}
.aic-video-card__play--ph svg { width: 18px; height: 18px; margin-left: 2px; }
.aic-video-card__poster:hover .aic-video-card__play--ph {
  transform: scale(1.08);
}
.aic-video-card__poster:hover .aic-video-card__img {
  transform: scale(1.04);
}

.aic-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--primary-dark, #067A55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background .2s ease;
}
.aic-video-card__poster:hover .aic-video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.aic-video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }

/* Platform badge (same look as the /videos/ archive). */
.aic-video-card__platform {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  background: rgba(0, 0, 0, .6);
}
.aic-video-card__platform--youtube   { background: #ff0000; }
.aic-video-card__platform--vimeo     { background: #1ab7ea; }
.aic-video-card__platform--facebook  { background: #1877f2; }
.aic-video-card__platform--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.aic-video-card__platform--tiktok    { background: #000; }

.aic-video-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.aic-video-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-color, #1a2b28);
}

/* ── Single video page ─────────────────────────────────────────────── */
.aic-video-single {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.aic-video-single__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}
.aic-video-single__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Vertical formats (TikTok / Instagram Reels): centre a narrow column. */
.aic-video-single--vertical .aic-video-single__player {
  aspect-ratio: auto;
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}
.aic-video-single--vertical .aic-video-single__player iframe {
  position: static;
  min-height: 640px;
}
.aic-video-single--vertical .instagram-media,
.aic-video-single--vertical .tiktok-embed {
  margin: 0 auto !important;
}
.aic-video-single__desc {
  margin: 22px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color, #1a2b28);
}
.aic-video-single__subtitle {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.aic-video-single__services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.aic-video-single__services-list a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eafaf3;
  color: var(--primary-dark, #067A55);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease;
}
.aic-video-single__services-list a:hover { background: #d5f3e6; }
.aic-video-single__back { margin-top: 24px; }
.aic-video-single__back a {
  color: var(--primary-dark, #067A55);
  font-weight: 600;
  text-decoration: none;
}
