.embedded-video-block {
  padding: 72px var(--container-padding);
  font-family: var(--font-body);
}

.embedded-video-block__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(100%, var(--container-max));
  margin: 0 auto;
  /* min-height: 70vh; */
}

.embedded-video-block__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.embedded-video-block__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.embedded-video-block__star {
  font-size: 1.5rem;
  color: #e5e7eb;
  line-height: 1;
}

.embedded-video-block__star--filled {
  color: #202020;
}

.embedded-video-block__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text-primary);
}

.embedded-video-block__author {
  display: flex;
  align-items: center;
  gap: 40px;
}

.embedded-video-block__author-info {
  flex: 0 1 auto;
  position: relative;
}

.embedded-video-block__author-info::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #e5e7eb;
}

.embedded-video-block__author-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.embedded-video-block__author-role {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.embedded-video-block__company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.embedded-video-block__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.embedded-video-block__company-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.embedded-video-block__video {
  width: 100%;
}

.embedded-video-block__video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio for taller video */
  background: #6b7280;
  overflow: hidden;
}

.embedded-video-block__video-wrapper iframe,
.embedded-video-block__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.embedded-video-block__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.embedded-video-block__play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.embedded-video-block__placeholder p {
  margin: 0;
  font-size: 0.875rem;
}

.embedded-video-block__placeholder a {
  color: white;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 959px) {
  .embedded-video-block__content {
    order: 1;
  }

  .embedded-video-block__video {
    order: 1;
  }

  .embedded-video-block__author {
    flex-direction: row;
    align-items: flex-start;
  }

  .embedded-video-block__company {
    align-self: flex-start;
  }

  /* Mobile video thumbnail style */
  .embedded-video-block__video-player {
    pointer-events: none;
  }

  .embedded-video-block__video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
  }

  .embedded-video-block__video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z' fill='%231e4d2b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
  }

  .embedded-video-block__video-wrapper:hover::after {
    background: rgba(0, 0, 0, 0.5);
  }

  .embedded-video-block__video-wrapper:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 255, 255, 1);
  }
}

/* Desktop layout */
@media (min-width: 960px) {
  .embedded-video-block__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .embedded-video-block__content {
    flex: 1 1 0;
    order: 2;
  }

  .embedded-video-block__video {
    flex: 1 1 0;
    order: 1;
  }

  .embedded-video-block__quote {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  }
}


/* Fullscreen Video Modal */
.embedded-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.embedded-video-modal__content {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embedded-video-modal__video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.embedded-video-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  z-index: 10001;
  transition: opacity 0.3s ease;
}

.embedded-video-modal__close:hover {
  opacity: 0.7;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .embedded-video-modal {
    padding: 10px;
  }

  .embedded-video-modal__content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .embedded-video-modal__close {
    top: -40px;
    font-size: 1.5rem;
  }
}