/*ADMIN STAR*/
/*layout admin setup-api-youtube-story*/
.center-dev {
    text-align: center;
    margin: 10px;
}
button#delete_cache_api_youtube {
    background: #f50707;
    border-color: #f50707;/
}













/*FRONT ENE STAR*/
/*poup show video youtube*/
#video-popup {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-content {
    position: relative;
    width: 80%;
    max-width: 600px;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.popup-content iframe {
    width: 100%;
    height: 100%; /* Hoặc chiều cao động dựa trên tỷ lệ của video */
    aspect-ratio: 16 / 9; /* Đảm bảo tỷ lệ video đúng trên thiết bị di động */
    max-height: 80vh; /* Tối đa chiều cao để tránh vượt quá màn hình di động */
}
/**/
.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Khoảng cách giữa các video */
}

.video-item {
    flex: 0 0 23%; /* 4 cột trên máy tính với khoảng cách */
    box-sizing: border-box;
}

.video-img {
    width: 100%;
    height: auto;
    display: block;
}

.video-title {
    text-align: center;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .video-item {
        flex: 0 0 48%; /* 2 cột trên thiết bị di động */
    }
}



/*fontend slide video youtube*/
.story-section-slide {
    background: white;
    padding: 10px 5px;
    margin: 20px 0;
}
.story-section-slide span {
    padding: 5px;
    font-size: 18px;
    font-weight: 700;
}
.story-section-slide .story.owl-carousel{
    margin: 10px 0 10px 0;
}
.story-section-slide .story .story-item {
	height: 160px;
    border-radius: 15px;
    background: #3e7fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: white;
	position:relative;
	font-size:13px;	
}  
.story-section-slide .story .story-item:before {
   content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: black;
    opacity: .2;
    border-radius: 15px;
  } 
  .story-section-slide .story .story-item h4.title-story {
    background: #00000073;
    color: #fff;
    padding: 10px 10px 0 10px;
    position: absolute;
    bottom: 0;
    font-size: 12px;
    border-radius: 0 0 15px 15px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.story-section-slide .story .owl-stage {
    right: 15px;
}
/*nut chuyen slide story*/
/* Định dạng chung cho các nút điều hướng */
.story-section-slide .story.owl-carousel .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-40%);
    pointer-events: none;
}

.story-section-slide .story.owl-carousel .owl-nav .owl-prev,
.story-section-slide .story.owl-carousel .owl-nav .owl-next {
    background-color: rgb(255 255 255 / 76%);
    color: #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
}

/* Định vị nút Previous bên trái */
.story-section-slide .story.owl-carousel .owl-nav .owl-prev {
    position: absolute;
    left: -20px; /* Căn chỉnh nút ra bên ngoài slider */
}

/* Định vị nút Next bên phải */
.story-section-slide .story.owl-carousel .owl-nav .owl-next {
    position: absolute;
    right: -20px; /* Căn chỉnh nút ra bên ngoài slider */
}

/* Hiệu ứng hover cho nút */
.story-section-slide .story.owl-carousel .owl-nav .owl-prev:hover,
.story-section-slide .story.owl-carousel .owl-nav .owl-next:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Đổi màu khi hover */
    color: #000000;
}
/*layout video row and list*/
.container-youtubeapi {
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}
/* Bố cục dạng hàng (4 cột) */
.container-youtubeapi.row-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Bố cục dạng danh sách (1 cột) */
.container-youtubeapi.list-layout {
    display: grid;
    grid-template-columns: 1fr;
}

.container-youtubeapi .item-videoyoutubeapi {
    background-color: #f2f2f2;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.container-youtubeapi .thumbnail {
    width: 100%;
    cursor: pointer;
}
.container-youtubeapi .video-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #000;
    padding-top: 5px;
}
.container-youtubeapi.list-layout .thumbnail {
    width: 150px;
    height: auto;
}
.container-youtubeapi.row-layout .item-videoyoutubeapi {
    flex-direction: column;
    text-align: center;
}

.container-youtubeapi.list-layout .item-videoyoutubeapi {
    flex-direction: row;
    justify-content: flex-start;
}
.container-youtubeapi.list-layout .item-videoyoutubeapi a{
    display: flex;
    align-items: flex-start;
}
.container-youtubeapi.list-layout .item-videoyoutubeapi  {
    text-align: left;
}
.container-youtubeapi.list-layout .item-videoyoutubeapi .video-title   {
    padding: 0 10px;
    text-align: left;
}
/*chi tiet video*/
.container-youtubeapi .item-videoyoutubeapi ul {
    font-size: 11px;
}
.container-youtubeapi .item-videoyoutubeapi ul li {
    list-style: none;
    margin: 5px !important;
    text-align: left;
    color:#3e7fff;
}
.container-youtubeapi.row-layout .item-videoyoutubeapi ul {
    display: flex;
    align-content: center;
    justify-content: center;
}
.container-youtubeapi.list-layout .item-videoyoutubeapi ul {
    display: flex;
    align-content: center;
    justify-content: flex-start;
    padding-left: 10px;
}

/* Popup styles */
#video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    width: 600px;
    max-width: 90%;
    background: white;
    padding: 20px;
    text-align: center;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Tablet: 3 cột */
@media (max-width: 992px) {
    .container-youtubeapi.row-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 cột */
@media (max-width: 768px) {
    .container-youtubeapi.row-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*nut close poup*/
.popup-close-icon {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 0 5px;
    background: #ed0000;
    margin: 0;
    font-size: 14px;
}

