/* SAMIES Universal Video Overlay — BUILD 005 */

.samies-uv-player {
  --samies-accent: #ffdb74;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  box-sizing: border-box;
}

.samies-uv-player[data-aspect="portrait"] {
  aspect-ratio: 9 / 16;
}

.samies-uv-player *,
.samies-uv-player *::before,
.samies-uv-player *::after {
  box-sizing: border-box;
}

.samies-uv-player .samies-uv-frame,
.samies-uv-player .samies-uv-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.samies-uv-player .samies-uv-frame {
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.samies-uv-player.samies-uv-video-out .samies-uv-frame {
  opacity: 0;
}

.samies-uv-player .samies-uv-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.samies-uv-player .samies-uv-overlay.bg-in {
  opacity: 1;
  pointer-events: auto;
}

.samies-uv-player .samies-uv-card {
  width: min(88%, 900px);
  padding: clamp(12px, 3vw, 28px);
  border-radius: 18px;
  background: transparent;
  transition: background 1s ease;
}

.samies-uv-player .samies-uv-overlay.logo-in .samies-uv-card {
  background: rgba(0, 0, 0, .38);
}

.samies-uv-player .samies-uv-logo,
.samies-uv-player .samies-uv-title,
.samies-uv-player .samies-uv-subtitle,
.samies-uv-player .samies-uv-cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
}

.samies-uv-player .samies-uv-logo {
  display: block;
  max-width: 80%;
  max-height: 28vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
}

.samies-uv-player .samies-uv-logo[hidden],
.samies-uv-player .samies-uv-cta[hidden] {
  display: none;
}

.samies-uv-player .samies-uv-title {
  color: #fff;
  font-size: clamp(18px, 3vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px;
}

.samies-uv-player .samies-uv-subtitle {
  color: #fff;
  font-size: clamp(13px, 1.7vw, 21px);
  line-height: 1.3;
  margin: 0 0 16px;
}

.samies-uv-player .samies-uv-cta {
  display: inline-block;
  background: var(--samies-accent);
  color: #111;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.samies-uv-player .samies-uv-overlay.logo-in .samies-uv-logo,
.samies-uv-player .samies-uv-overlay.slogan-in .samies-uv-title,
.samies-uv-player .samies-uv-overlay.slogan-in .samies-uv-subtitle,
.samies-uv-player .samies-uv-overlay.cta-in .samies-uv-cta {
  opacity: 1;
  transform: translateY(0);
}

.samies-uv-player .samies-uv-error {
  position: relative;
  z-index: 10;
  padding: 16px;
  color: white;
  background: #800;
}

@media (max-width: 600px) {
  .samies-uv-player .samies-uv-card {
    width: 94%;
    padding: 12px;
  }

  .samies-uv-player .samies-uv-logo {
    max-height: 20vh;
  }

  .samies-uv-player .samies-uv-cta {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .samies-uv-player .samies-uv-frame,
  .samies-uv-player .samies-uv-overlay,
  .samies-uv-player .samies-uv-card,
  .samies-uv-player .samies-uv-logo,
  .samies-uv-player .samies-uv-title,
  .samies-uv-player .samies-uv-subtitle,
  .samies-uv-player .samies-uv-cta {
    transition-duration: 0.01ms;
  }
}

/* ---- SAMIES Universal Brand Video v0.6.0 additions (AR-VIDEO-DYNAMIC-001A) ---- */
.samies-bv { margin: 0 auto; }
.samies-bv .samies-uv-frame { pointer-events: none; }          /* the sequence is driven by the engine, not YouTube clicks */
.samies-bv .samies-uv-title.samies-bv-title {
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .85);
}
.samies-bv .samies-uv-subtitle.samies-bv-slogan {
  font-weight: 400;                                   /* Trade Winds ships one weight */
  font-size: clamp(16px, 2.3vw, 30px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.samies-bv .samies-bv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
}
.samies-bv .samies-uv-cta {
  color: #fff;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.samies-bv .samies-uv-cta:hover,
.samies-bv .samies-uv-cta:focus-visible { filter: brightness(1.12); color: #fff; }
.samies-bv .samies-bv-phone {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
}
.samies-bv .samies-bv-phone[hidden] { display: none; }
.samies-bv .samies-bv-phone:hover,
.samies-bv .samies-bv-phone:focus-visible { color: var(--samies-accent); }
.samies-bv .samies-uv-overlay.cta-in .samies-bv-phone { opacity: 1; transform: translateY(0); }
.samies-bv .samies-bv-sound {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font: 700 14px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
}
.samies-bv .samies-bv-sound.is-on { background: var(--samies-accent); }
.samies-bv .samies-bv-sound[hidden] { display: none; }
.samies-bv .samies-bv-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.samies-bv.samies-bv-failed { display: none; }
@media (max-width: 600px) {
  .samies-bv .samies-bv-sound { left: 8px; bottom: 8px; padding: 6px 10px; font-size: 12px; }
  .samies-bv .samies-bv-phone { font-size: 13px; }
}
