.td-video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    background: #000;
}
.td-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.td-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 20px;
    margin-top: 20px;
}
.video-item {
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    height: 150px;
    background: #111;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}
.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.video-item:hover img { transform: scale(1.1); }
.video-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pagination button {
    margin: 0 5px;
    padding: 6px 12px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
#pagination button:hover { background: #222; }
#pagination button.active { background: #dc3545; }
#video-filter {
    margin-bottom: 15px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
