.vviews {
    color: #999;
    background: inherit;
}

#photolistcontainer a:hover { text-decoration: none; }


.locked {
    float: right;
    position: relative;
    width: 21px;
    height: 21px;
    margin: -16px 10px 0px 0;
    background: url(../i/lock-badge.png) no-repeat;
}


* html .play { position: static; display: inline; }


.trans .play {
    background: url(../i/play_no.png) no-repeat;
}

/* /video/ main: upload buttons left, search right; both centred on phones */
.video-main-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 5px;
    margin: 5px 10px 10px;
}
.video-main-search {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 0 auto;
}

/* Search results: centred search form above the result count */
.video-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px 10px 0;
}

/* List pages: action row with upload left, sort links centred, size right */
.video-list-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 0 20px;
}
.video-list-actions #sViewMode {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.video-list-actions .video-list-upload {
    margin-right: 5px;
}
.video-list-title {
    margin: 5px 0 10px;
    font-size: 16px;
    font-weight: bold;
}
.video-list-count {
    margin: 5px 0 10px;
}
.video-list-title + .video-list-count {
    margin-top: 0;
}

/* /video/ main boxes: fixed 16:9 card, title under the image, two lines max */
.video-fav-grid .inElm {
    vertical-align: top;
}
.video-fav-grid .inItem {
    margin: 0 auto;
}
.video-fav-grid ul.uPhotoSmall {
    display: flex;
    flex-direction: column-reverse;
}
.video-fav-grid .uPhotoSmall li.uImage {
    float: none;
    width: 160px;
    height: 90px;
    overflow: hidden;
    background: #000;
}
.video-fav-grid .uImage img {
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    object-fit: contain;
    background: #000;
}
.video-fav-grid .uImage-crop img {
    object-fit: cover;
}
.video-fav-grid .uImage-blur {
    display: block;
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.7);
}
.video-fav-grid .uImage-fit img {
    position: relative;
    background: transparent;
}
/* Portrait: 1.75x zoom, top and bottom cropped */
.video-fav-grid .uImage-zoom img {
    height: 175% !important;
    top: -37.5%;
}
.video-fav-grid .play {
    left: 4px;
    bottom: 4px;
    margin: 0;
}
.video-fav-grid .uPhotoSmall li:not(.uImage) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 32px;
    margin-top: 4px;
    line-height: 16px;
}

@media screen and (max-width: 900px) {
    .video-main-actions {
        justify-content: center;
        text-align: center;
        row-gap: 10px;
    }
    .video-main-actions > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .video-main-search {
        margin: 0 auto;
    }
    .video-list-actions {
        grid-template-columns: 1fr;
        row-gap: 5px;
        text-align: center;
    }
    .video-list-actions-mid:empty {
        display: none;
    }
    .video-list-actions #sViewMode {
        justify-content: center;
    }
    .video-cats-main h3,
    .video-cats-main h5 {
        text-align: center;
    }
    #videocats.video-cats-main td > table {
        width: auto;
        margin: 0 auto 20px;
    }
}
