.youtube-live-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    position: relative;
}

.live-indicator {
    width: 24px;
    height: 24px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.youtube-live-header h2 {
    margin: 0;
    color: #000;
    flex: 1;
    font-family: var(--fb-global-h2--font-family);
    font-weight: var(--fb-global-h2--font-weight);
    font-size: var(--fb-global-h2--font-size);
    letter-spacing: var(--fb-global-h2--font-letter-spacing);
    line-height: var(--fb-global-h2--font-line-height);
}

.carousel-controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.carousel-controls .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after, 
.carousel-controls .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}
.carousel-controls.mobile {
    display: none;
}

.carousel-controls button {
    position: static;
    width: 47px;
    height: 47px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #D5D7DA;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-controls button:hover:not(.swiper-button-disabled) {
    /*background: #f5f5f5;*/
    border-color: #000000;
}

.carousel-controls button.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-controls button svg {
    fill: none;
    width: 15px;
    height: 15px;
}

.carousel-controls button svg path {
    stroke: #717680;
}

.carousel-controls button:hover svg path {
    stroke: #000000;
}

/* Sticky Layout */
.youtube-live-content-container {
    display: flex;
    gap: 24px;
    position: relative;
}

.youtube-live-swiper {
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: relative;
}
@media only screen and (min-width: 1024px) {
    .youtube-live-swiper {
        border-radius: 12px 12px 0 0;
    }
}
 
.desktop-only {
    display: flex;
}
.watch-live .desktop-only {
    display: none;
}
/* Hide first swiper slide on desktop by default */
.youtube-live-swiper .swiper-slide.first-slide-mobile-only {
    display: none !important;
}

/* Swiper overrides */
.youtube-live-swiper {
    width: 100%;
}

.youtube-live-swiper .swiper-slide {
    box-sizing: border-box;
}

.youtube-live-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.video-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-thumbnail {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: 197px;
    border-radius: 12px;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ff0000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.live-badge span {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
}
.playlist-badge{
    position: absolute;
    left: 12px;
    bottom: 12px;
}
.video-info {
    display: flex;
    flex-direction: column;
}

.video-title {
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 16px 0 8px 0;
}

.video-title h5 {
    margin: 0;
    transition: all 0.3s ease;
}
.video-title h5:hover {
    color: #F1B92E;
}
.video-meta {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
	row-gap: 8px;
    font-family: var(--fb-global-fb_customtypo_e3ser--font-family);
    font-size: var(--fb-global-fb_customtypo_e3ser--font-size);
    font-weight: var(--fb-global-fb_customtypo_e3ser--font-weight);
    line-height: var(--fb-global-fb_customtypo_e3ser--font-line-height);
    color: #717680;
    margin: 0px 0px 0px 0px;
    border: none;
    transition: all .3s ease-in-out;
}

.video-meta-seperator {
    width: 6px;
    height: 6px;
    background: #D5D7DA;
    border-radius: 50%;
}

.video-viewers {
    font-family: var(--fb-global-fb_customtypo_e3ser--font-family);
    font-size: var(--fb-global-fb_customtypo_e3ser--font-size);
    font-weight: var(--fb-global-fb_customtypo_e3ser--font-weight);
    line-height: var(--fb-global-fb_customtypo_e3ser--font-line-height);
    color: #717680;
}
.youtube-live-sticky-item .video-card{
    width: 400px;
}
.youtube-live-sticky-item .video-title,
.youtube-live-sticky-item .video-thumbnail{
    max-width: 100%;
}

@media (max-width: 768px) {
    .youtube-live-content-container {
        flex-direction: column;
        gap: 32px;
    }

    .youtube-live-sticky-item .video-card{
        width: 100%;
    }

    .youtube-live-swiper .swiper-slide.first-slide-mobile-only {
        display: flex !important;
    }

    .carousel-controls.desktop {
        display: none;
    }

    .carousel-controls.mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
    }
}


/* YouTube Modal Styles */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.youtube-modal.active {
    opacity: 1;
    visibility: visible;
}

.youtube-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.youtube-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.youtube-modal.active .youtube-modal-content {
    transform: scale(1);
}

.youtube-modal-close {
    position: absolute;
    top: -50px;
    right: -5px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

.youtube-modal-close:hover {
    opacity: 0.7;
}

.youtube-modal-close svg {
    width: 32px;
    height: 32px;
}

.youtube-modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

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

.sticky-iframe-wrapper .live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}
/* Mobile Responsive */
@media (max-width: 768px) {
	.youtube-live-header {
		margin-bottom: 32px;
	}
    .youtube-modal-content {
        width: 95%;
    }

    .youtube-modal-close {
        top: -35px;
    }

    .youtube-modal-close svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
	.youtube-live-header {
		margin-bottom: 16px;
	}

    .youtube-modal-close svg {
        width: 24px;
        height: 24px;
    }
}