/*
 * Modal And Loader Overview
 * -------------------------
 * This file includes:
 * - trailer modal sizing and transitions
 * - platform icon utility sizing
 * - blinking arrow animation state classes
 * - ellipsis loader animation and its smaller video-loader variant
 *
 * Animation note:
 * Keyframes are centralized here because these motion styles are functional
 * UI behaviors, not layout scaffolding.
 */

/* ============================================ */
/*                 Modal Styles                */
/* ============================================ */

/* Video Modal */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 0, 51, 0);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#videoContent {
    position: relative;
    width: 70%;
    max-width: 1200px;
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


    
.platform-icon {
    width: 28px;
    height: 28px;
}

.small-icon {
    width: 12px;
    height: 12px;
}

@keyframes blinkArrow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.blink-arrow {
    animation: blinkArrow 2s ease-in-out infinite;
}

.blink-arrow.dismissed {
    animation: none;
    opacity: 0;
}



.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Video loader overlay - moved to earlier in file */
.video-loader .lds-ellipsis {
        width: 48px;
        height: 24px;
        position: relative;
}
.video-loader .lds-ellipsis div {
        top: 6px;
        width: 8px;
        height: 8px;
}

/* Adjust positions and animations for the smaller loader so it is visually centered */
.video-loader .lds-ellipsis div:nth-child(1) {
    left: 4px;
    animation: lds-ellipsis1-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(2) {
    left: 4px;
    animation: lds-ellipsis2-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(3) {
    left: 20px;
    animation: lds-ellipsis2-small 0.6s infinite;
}
.video-loader .lds-ellipsis div:nth-child(4) {
    left: 36px;
    animation: lds-ellipsis3-small 0.6s infinite;
}

@keyframes lds-ellipsis1-small {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes lds-ellipsis3-small {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}
@keyframes lds-ellipsis2-small {
    0% { transform: translate(0, 0); }
 100% { transform: translate(16px, 0); }
}



