html, body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: Arial, sans-serif;
  width: 100%;
  height: 100%;
}

.player-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#samies-youtube-player,
#samies-youtube-player iframe,
iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: 0 !important;
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.player-container.video-out #samies-youtube-player,
.player-container.video-out #samies-youtube-player iframe {
  opacity: 0;
}

.samies-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
background-color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

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

.samies-card {
  position: relative;
  z-index: 2;
  width: min(88vw, 900px);
  padding: 24px;
  border-radius: 18px;
  background: rgba(0,0,0,0);
  box-shadow: none;
  transition: background 1s ease, box-shadow 1s ease;
}

.samies-end-overlay.logo-in .samies-card {
  background: rgba(0,0,0,.38);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

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

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

.samies-logo {
  width: min(85vw, 675px);
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 12px;
}

.samies-title {
  color: #fff;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 8px;
  text-shadow: 0 4px 18px rgba(0,0,0,.85);
}

.samies-subtitle {
  color: #fff;
  font-size: clamp(14px, 1.5vw, 21px);
  line-height: 1.25;
  margin: 0 0 18px;
  text-shadow: 0 3px 14px rgba(0,0,0,.85);
}

.samies-cta {
  display: inline-block;
  padding: 13px 25px;
  border-radius: 999px;
  background: #ffdb74;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
