#main-content {
    padding-right: 0;
    padding-left: 0;
}
#main-menu {
    height: 100px;
    line-height: 82px;
    text-align: right;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
}
#main-menu a, #main-menu a:hover, #main-menu a:visited {
    color: #253C82;
}
#main-menu .nav {
    float: right;
    margin-right: 0px;
}
#main-menu .nav .nav-item{
    padding-left: 20px;
    padding-right: 20px;
}
#logo {
    height: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: url("/assets/images/bibpix_full.png") no-repeat;
    background-size: contain;
}

#logo_tp {
    height: 80px;
    margin-top: 10px;
    background: url("https://img.bibpix.net/tpm.png") no-repeat;
    background-size: contain;
}

#bib-search {
    background: url("https://bibpix.net/assets/images/bibpix_banner.jpg") repeat;
    background-size: cover;
    background-position: bottom center;
    height: 360px;
}
#bib-search {
    position: relative;
}
#bib-search .search-text {
    padding-top: 10px;
    font-size: 45px;
    line-height: 55px;
    font-weight: bold;
    color: #FFF;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333;
}
#bib-search .search-form {
    position: absolute;
    top: 260px;
    width: 100%;
    background-color: rgba(26,26,26,.8);
    padding: 20px 0;
}
.search-form .form-control, .search-form button {
    font-size: 18px;
    line-height: 22px;
    height: 36px !important;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-right: 10px;
    border: 1px solid #FFCD1C;
}
.btn-info {
    background-color: #FFCD1C;
    color: #4A83BA;
}
.btn-info:hover {
    background-color: #4A83BA;
    border: 1px solid #4A83BA;
    color: #FFFFFF;
}
body {
    color: #4A83BA;
}
.page-link {
    color: #4A83BA;
    border-color: #FFCD1C;;
}
.page-item.active .page-link {
    background: #FFCD1C;
    border-color: #FFCD1C;
    color: #4A83BA;
}
.search-form .select2-container--default .select2-selection--single {
    height: 36px !important;
    margin-top: 10px;
}
.search-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 18px;
    line-height: 36px !important;
    height: 36px !important;
}
.search-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 15px;
}

#bib-search .search-form button {
    width: 100%;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    border-radius: 7px;
    margin-top: 10px;
    line-height: 1;
}

#search-result h3, #search-result h4{
    border-bottom: 1px solid #FFCD1C;
    padding-bottom: 10px;
}
@media (max-device-width : 480px) {
    #bib-search .search-text {
        font-size: 40px;
        line-height: 50px;
    }
    #bib-search .search-form {
        top: 270px;
        padding: 10px 0px;
    }

    #bib-search {
        height: 440px;
    }
    #bib-search .search-form button {
        margin-top: 5px;
    }

    /*#logo {*/
        /*height: 80px;*/
        /*width: 80px;*/
        /*margin-top: 10px;*/
        /*background: url("/assets/images/logo2.png") no-repeat;*/
        /*background-size: cover;*/
    /*}*/
    #main-menu {
        display: none;
    }
    .search-form .form-control, .search-form button {
        margin-right: 0;
    }
    #free-image > div:nth-child(even), #result-image > div:nth-child(even) {
        padding-left: calc(var(--bs-gutter-x) * .25)
    }
    #free-image > div:nth-child(odd), #result-image > div:nth-child(odd) {
        padding-right: calc(var(--bs-gutter-x) * .25)
    }

}
a, a:active, a:hover {
    text-decoration: none;
    color: #4A83BA;
}
.img-thumbnail {
    border: 1px solid #FFCD1C;
    padding: 0px ;
}

#select-lang {
    display: flex;
    padding-top: 50px;
    padding-right: 5px;
    text-align: right;
    flex-grow: 1;
    justify-content: right;
}
#select-lang img {
    width: 36px;
    border: 1px solid #FFCD1C;
    padding: 0px;
    margin-right: 3px
}

@font-face {
    font-family: HelveticaNeue;
    src: url(../fonts/Helvetica/HELVETICA.TTF);
}

@font-face {
    font-family: HelveticaNeue-Bold;
    src: url(../fonts/Helvetica/helvetica-neue-bold.ttf);
}

body {
    overflow-x: hidden;
    font-family: HelveticaNeue !important;
}
.error {
    color: #FF0000;
}
/* Container chính */
.video-thumbnail {
    padding: 10px;
    margin: 10px;
    position: relative;
    max-width: 100%;
    width: 400px;
    height: 225px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ảnh nền */
.video-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay tối mờ khi hover */
.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Mờ nhẹ */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Biểu tượng Play */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5); /* Mờ hơn */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Hình tam giác Play */
.play-icon::before {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #000;
    margin-left: 4px;
}

/* Hiệu ứng hover */
.video-thumbnail:hover::after {
    opacity: 1;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Khi hover vào thumbnail */
.video-thumbnail:hover .play-icon {
    background: rgba(255, 255, 255, 0.8); /* Đậm hơn khi hover */
    transform: translate(-50%, -50%) scale(1.1);
}


.filmstrip {
    margin-top: 15px;
    display: flex;
    background: #000;
    padding: 5px 5px 10px 5px;
    border: 8px solid #000;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    gap: 6px;
    overflow-x: auto;       /* ✅ thêm dòng này để scroll ngang */
    white-space: nowrap;    /* ✅ đảm bảo không xuống dòng */
    overflow-y: hidden;
}

.frame {
    width: 100px;
    height: 70px;
    background: #222;
    border: 2px solid #555;
    box-shadow: inset 0 0 4px #000;
    position: relative;
}

.frame img {
    min-width: 100px !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mô phỏng các lỗ phim ở trên/dưới */
.filmstrip::before,
.filmstrip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background-image: repeating-linear-gradient(
            to right,
            transparent 0 8px,
            #444 8px 12px
    );
}

.filmstrip::before {
    top: -10px;
}

.filmstrip::after {
    bottom: -10px;
}
.select2-container {
    display: flex;
}