/* Video gallery styles - mirrored from photo.css */

.video-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 14px;
    padding: 8px;
}

.video-wrapper {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: inherit;
    aspect-ratio: 16 / 9;
    border-radius: .35rem;
    background: linear-gradient(135deg,#102f40,#087e8b);
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0.25rem;
    cursor: pointer;
    object-fit: cover;
}
.video-wrapper::after { content:"▶"; position:absolute; inset:50% auto auto 50%; translate:-50% -50%; display:grid; place-items:center; width:46px; height:46px; padding-left:3px; border-radius:50%; background:rgba(255,255,255,.9); color:#087e8b; font-size:1.1rem; pointer-events:none; box-shadow:0 5px 18px rgba(0,0,0,.2); }
.video-card-title { position:absolute; z-index:2; left:.55rem; right:.55rem; bottom:.5rem; overflow:hidden; padding:.4rem .55rem; border-radius:6px; background:rgba(5,20,35,.76); color:#fff; font-size:.78rem; line-height:1.25; white-space:nowrap; text-overflow:ellipsis; pointer-events:none; }

/* ===== Video Filter Navbar Styles ===== */
.video-navbar {
    background: linear-gradient(to right, #1a2980, #26d0ce);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-radius: 0;
}

.video-navbar select.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    min-width: 130px;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    border-radius: 0;
}

/* Arrow for select */
.video-navbar select.form-select::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: white;
    font-size: 0.9rem;
}

/* Options */
.video-navbar select.form-select option {
    color: white;
    background-color: #1a2980;
}

/* Speed Input */
.video-navbar .slideshow-input {
    width: 50px;
    padding: 0.2rem 0.3rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Apply Button */
.video-navbar .btn-apply {
    background-color: #0077be;
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 0;
}

.video-navbar .btn-apply:hover {
    background-color: #005f9e;
}

/* Mobile Adaptation */
@media (max-width: 767px) {
    .video-navbar form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Custom Multiselect */
.custom-multiselect .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.custom-multiselect .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-multiselect .dropdown-menu {
    background: rgba(26, 41, 128, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 0;
    min-width: 200px;
}

.custom-multiselect .form-check-label {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    width: 100%;
}

.custom-multiselect .form-check {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    margin-bottom: 0;
    transition: background 0.2s ease;
}

.custom-multiselect .form-check:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-multiselect .form-check-input:checked {
    background-color: #00bfff;
    border-color: #00bfff;
}

/* ===== Fullscreen Modal ===== */
.modal-video {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 50, 0.85);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 15px;
}

.modal-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.modal-inner video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.modal-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
}

.modal-info {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    max-width: 350px;
    background: rgba(0, 0, 50, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: left;
    z-index: 1060;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.modal-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #00bfff;
}

.modal-info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    align-items: center;
}

.modal-info-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Close Button */
.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
}

.btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Modal Controls */
.btn-modal {
    background: rgba(0, 0, 139, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-modal:hover {
    background: rgba(0, 0, 139, 0.9);
}
.modal-bottom-controls { display:flex; justify-content:center; gap:.65rem; margin-top:.75rem; }
.btn-copy { font-size:1.15rem; background:rgba(0,0,139,.7); }
.modal-copy-status { min-height:1.25rem; margin:.45rem 0 0; color:#fff; font-size:.85rem; }
