/* Layout */

/* Compact Filter Row */
#video-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* Blocks */
#video-filters .filter-block {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

#video-filters select,
#video-filters input {
    padding: 6px 8px;
    font-size: 13px;
    height: 34px;
    min-width: 140px;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    border: 1px solid #e2e2e2;
}

.video-card img {
    width: 100%;
    border-radius: 6px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.studio-tag {
    display: inline-block;
    margin-top: 5px;
    background: #0073aa;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Pagination */
#video-pagination {
    text-align: center;
    margin-top: 25px;
}

.pag-btn {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #0073aa;
    color: #0073aa;
    border-radius: 4px;
    cursor: pointer;
}

.pag-btn.active,
.pag-btn:hover {
    background: #0073aa;
    color: #fff;
}

/* Modal */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

#video-modal-content {
    width: 900px;
    max-width: 95%;
    margin: 5% auto;
    background: #000;
    padding: 10px;
    border-radius: 6px;
    position: relative;
}

#video-modal-close {
    color: #fff;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}