@import url(variable.css);

/* ================================
   Base Container Styles
================================== */
.ls-video-container {
    position: relative;
}

.ls-video-container:has(.ls-static-content) {
    height: 0;
    padding-bottom: 40%;
    width: 100%;
}

.ls-video-container .ls-static-content {
    height: 100%;
    width: 100%;
}

.ls-video-container:has(.ls-static-content) .ls-static-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    height: 100%;
    width: 100%;
    z-index: 1;
}

.ls-static-content .ls-channel-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ls-video-container .ls-container{
    padding: 0;
}

.ls-video-container .ls-not-found {
    padding: 1rem 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: var(--ls-primary);
    color: var(--ls-text-white);
    border-radius: 8px;
    z-index: 2;
}

.ls-video-controller-inner {
    position: relative;
    padding-bottom: 38%;
    width: 100%;
    height: 0;
}
.ls-video-controller-inner .plyr.plyr--video ,.ls-video-controller-inner .plyr-js{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ls-ad-companion {
    background-color: var(--ls-card-bg-color);
    padding: 1.25rem;
    text-align: center;
    border-radius: var(--radius);
}

.ls-ad-companion .title {
    color: var(--ls-ad-text-dark);
    margin-bottom: 10px;
}

.ls-ad-companion .desc {
    color: var(--ls-ad-text-body);
    font-size: .875rem;
    margin-bottom: 1rem;
}

.ls-ad-companion .branding {
    margin-bottom: 1rem;
}

.ls-ad-companion .branding img {
    height: auto !important;
    width: 10rem;
}

.ls-ad-overlay {
    background-color: var(--ls-ad-card-bg-color) !important;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: auto !important;
    width: 100%;
    max-width: 60%;
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    -webkit-animation: scale-in-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	animation: scale-in-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    z-index: 1000;
}

.ls-ad-overlay .ls-btn,
.ls-ad-companion .ls-btn {
  color: var(--ls-ad-text-btn);
  background: var(--ls-ad-primary);
}

.ls-ad-overlay .ls-btn:hover,
.ls-ad-companion .ls-btn:hover {
  background-color: var(--ls-ad-primary-hover);
  color: var(--ls-ad-text-btn);
}

.ls-ad-overlay .ls-btn::after,
.ls-ad-companion .ls-btn::after {
  background: var(--ls-ad-primary);
  border: 1px solid var(--ls-ad-primary);
}



@-webkit-keyframes scale-in-up {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: 50px;
    opacity: 1;
  }
}
@keyframes scale-in-up {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: 50px;
    opacity: 1;
  }
}

@-webkit-keyframes scale-in-up-light {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes scale-in-up-light {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: 30px;
    opacity: 1;
  }
}



.ls-full-screen-ad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-full-screen-ad video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ls-ad-skip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--ls-text-white);
    border: 2px solid var(--ls-text-white);
    border-radius: 4px;
    z-index: 11;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ls-ad-skip:not(:disabled):hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.ls-ad-skip:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.5);
}

.ls-ad-overlay .title {
    color: var(--ls-ad-text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ls-ad-overlay .ls-ad-content {
    text-align: inherit;
    padding: 0;
}

.ls-ad-overlay .ls-ad-content .branding img {
    width: 10rem;
}

.ls-ad-overlay .desc {
    color: var(--ls-ad-text-body);
    display: block;
    font-size: .875rem;
    margin-bottom: 0;
}

.ls-ad-overlay .branding {
    margin-bottom: 1rem;
}

.ls-ad-container,
.ls-companion-ad-container {
    display: none;
    width: 100%;
    position: relative;
    z-index: 5;
}

.ls-ad-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10;
}

/* ================================
   Fullscreen Ads
================================== */
.ls-fullscreen-ad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.ls-fullscreen-ad video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-ad-skip-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    pointer-events: auto;
}

.ls-ad-skip-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ================================
   Companion Ads
================================== */
.ls-companion-ad-container {
    margin: 10px 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    position: absolute;
    max-width: 18.75rem;
    top: 2rem;
    right: 2rem;
}

.ls-companion-ad-container  .ls-ad-companion {
    background-color: var(--ls-ad-card-bg-color);
    color: var(--ls-ad-text-white);
}

.ls-companion-ad {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.ls-companion-ad.ls-ad-fade-out {
    animation: fadeOutUp 0.5s forwards; /* Trigger fade out animation */
}

.ls-companion-ad:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.ls-companion-ad-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.ls-companion-ad-content {
    flex: 1;
    min-width: 0;
}

.ls-companion-ad-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.ls-companion-ad-description {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.ls-companion-ad-cta {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.ls-companion-ad-cta:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.ls-companion-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s;
}

.ls-companion-ad-close:hover {
    background: #e9ecef;
}

/* ================================
   Overlay Position Classes
================================== */
.ls-overlay-position-top-left {
    top: 20px;
    left: 20px;
}

.ls-overlay-position-top-right {
    top: 20px;
    right: 20px;
}

.ls-overlay-position-bottom-left {
    bottom: 60px;
    left: 20px;
}

.ls-overlay-position-bottom-right {
    bottom: 60px;
    right: 20px;
}

.ls-overlay-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ================================
   Animations
================================== */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   Responsive Design
================================== */
@media (max-width: 768px) {
    .ls-companion-ad {
        flex-direction: column;
        text-align: center;
    }

    .ls-companion-ad-image {
        margin: 0 0 10px 0;
    }

    .ls-ad-overlay {
        max-width: 90%;
    }

    .ls-video-controller-inner,
    .ls-video-container:has(.ls-static-content) {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 767.98px) {
    .ls-companion-ad-container {
        right: .5rem;
        margin: 0;
        top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .ls-video-container .ls-not-found {
        padding: .875rem 1rem;
        width: 90%;
        font-size: 14px;
    }

    .ls-ad-overlay {
        padding: .8rem;
        gap: .3rem;
        flex-direction: column;
        align-items: start;
        -webkit-animation: scale-in-up-light 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	    animation: scale-in-up-light 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    }

    .ls-ad-overlay .ls-btn {
        padding: .5rem .5rem;
        font-size: .75rem;
    }

    .ls-ad-overlay .branding {
        margin-bottom: .5rem;
    }

    .ls-ad-overlay .ls-ad-content .branding img {
        width: 5rem;
    }

    .ls-ad-overlay .title {
        font-size: .875rem;
    }

    .ls-ad-overlay .desc {
        font-size: .75rem;
        margin: 0;
    }

    .ls-ad-companion {
        padding: .8rem;
    }

    .ls-ad-companion .branding {
        margin-bottom: .5rem;
    }

    .ls-ad-companion .branding img{
        width: 6rem;
    }

    .ls-ad-companion .title {
        font-size: .875rem;
        margin-bottom: 0.5rem;
    }

    .ls-ad-companion .desc {
        margin: 0;
        font-size: .75rem;
    }

     .ls-ad-companion .ls-btn {
        padding: .5rem .5rem;
        font-size: .75rem;
     }

    
}

/* styles for the countdown */
.ls-ad-countdown {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--ls-text-white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Enable ad clicks by managing pointer events */
.ls-ad-container.is-overlay-active {
  pointer-events: none;
}

.ls-ad-container.is-overlay-active .ls-ad-overlay {
  pointer-events: auto;
}