#header {
    color: #edecec;
    background-color: #cb5d5d;
    margin: 0;
    padding: 10px;
/*
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
*/
    position: relative;
}
#header h1 {
    font-size: 25px;
    color: #edecec;
    background-color: #cb5d5d;
    margin: 0;
    padding: 10px;
}
#header .lang-select {
    display: inline-block;
    width: 75px;
    margin-top: 10px;
    text-decoration: none;
    color: #DDDDDD;

    position: absolute;
    right: 5px;
    bottom: 27px;
}
#wrapper {
    padding: 10px 3px 70px 3px;
}
.buttons-area {
    text-align: right;
    padding-right: 20px;
    line-height: 31px;
    padding-bottom: 2px;
    display: flex;
    justify-content: flex-end;
    gap: 0 10px;
    align-items: center;
}
a#simultaneous-mayor-link {
    text-decoration: none;
    border-radius: 5px;
    padding: 0 17px;
    background-color: #8b55f7;
    color: #ffffff;
    font-size: 14px;
    box-shadow: inset -2px -2px 1px 1px #4a4a4a;
}
a#simultaneous-mayor-link:hover {
    background-color: #713fe1;
    box-shadow: inset -1px -1px 1px 1px #4a4a4a;
}
#search-form fieldset, #search-form fieldset legend {
    background-color: #efedec;
    color: #101010;
}
#search-form fieldset {
    border-radius: 5px;
}
ul.wickedpicker__controls {
    padding: 0
}
#search-field-list {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}
#search-field-list li {
    padding: 0 10px;
}
.clearable-picker {
    display: inline;
}
.clearable-picker span, .input-clear {
    cursor: pointer;
}
.timepicker {
    width: 72px;
}
.datepicker {
    width: 72px;
}
#title-field {width: 300px;}
#title-exclude-field {width: 355px;}
#title-input, #title-exclude-input { width: 200px; }
#video-length-field {width: 270px;}
#start-date-field {width: 290px;}
#type-field { width: 315px; }
.video-type {
    margin-left: 1px;
    margin-right: 1px;
}
#search-field-list li {
    line-height: 30px;
}
#search-form {
    font-size: 13px;
}
#video-length-sort-area {
    width: 240px;
    margin: 0;
}
#submit-area input.submit-button {
    padding: 1px 15px;
}
#submit-area input.input-clear-all {
    width: 52px;
    font-size: 12px;
    padding: 0px;
    margin-right: 10px;
}

.tags {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
}
.tags a {
    display: block;
    border: 1px solid #AAA;
    padding: 2px 5px;
    margin-right: 8px;
    text-decoration: none;
    color: #ffffff;
    background-color: #c95a5f;
    border-radius: 5px;
}
.tags a:hover {
    background-color: #bf7578;
}

.tag-information {
    font-size: 12px;
    margin: 0;
    padding: 0;
}

ul#video-list-container {
    font-size: 14px;
    list-style-type: none;
    padding: 0;
    border: 1px solid;
    border-radius: 12px;
}
ul#video-list-container li.video-list {
    padding: 10px;
    border-bottom: 1px solid;
    box-sizing: border-box;
}
ul#video-list-container li.video-list:first-child {
    border-top: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


.list-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.result-count {
    width: 150px;
}
.num-per-page-area {
    margin-right: 32px;
}
.list-glid-icon-area {
    width: 30px;
    margin: 5px 10px 0 0;
}
.display-setting {
    display: flex;
    align-items: center;
}

.num-per-page.selected {
    color: #999999;
}

ul#video-list-container li.video-list:nth-child(even) {
    background-color: #e9f2ff;
}
ul#video-list-container li.video-list:nth-child(odd) {
    background-color: #fde5e4;
}
ul#video-list-container li.video-list:last-child {
    border-top: 1px solid;
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #fde5e4;
}
/*
ul#video-list-container li ul.video-item-fields {
    display: flex;
    list-style-type: none;
    padding: 0;
}
ul#video-list-container li ul.video-item-fields li {
    border: 1px solid;
    margin: 0;
}
ul.video-item-fields li p {
    margin: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
}
*/
h4.video-title {
    width: 100%;
    margin: 0;
    margin-bottom: 5px;
    line-height: 20px;
}
h4.video-title a {
    text-decoration: none;
    color: #1f0869;
}
div.video-details {
    display: flex;
}
div.thumbnail {
    width: 120px;
    line-height: 0;
}
div.other {
    width: 270px;
    padding-left: 10px;
}
div.other p {
    margin: 0;
}

/*
.live-start p, .live-end p {
    width: 160px;
}
.video-length p {
    width: 120px;
}
.view-count p, .like-count p {
    width: 56px;
}
*/
.grid ul#video-list-container {
    display: flex;
    flex-wrap: wrap;
}
@media screen and (min-width:1420px) {
    .grid ul#video-list-container li.video-list:not(:first-child):not(:last-child) {
        width: 25%;
    }
    .grid ul#video-list-container li.video-list:not(:last-child) {
        border-right: 1px solid;
    }
    .grid ul#video-list-container li.video-list:nth-of-type(4n+1) {
        border-right: none;
    }
}
@media screen and (min-width:1070px) and (max-width:1419.9px) {
    .grid ul#video-list-container li.video-list:not(:first-child):not(:last-child) {
        width: 33.3%;
    }
    .grid ul#video-list-container li.video-list {
        border-right: 1px solid;
    }
    .grid ul#video-list-container li.video-list:nth-of-type(3n+1):not(:first-child):not(:last-child) {
        width: 33.4%;
    }
    .grid ul#video-list-container li.video-list:nth-of-type(3n+1) {
        border-right: none;
    }
}
@media screen and (min-width:720px) and (max-width:1069.9px) {
    .grid ul#video-list-container li.video-list:not(:first-child):not(:last-child) {
        width: 50%;
    }
    .grid ul#video-list-container li.video-list {
        border-right: 1px solid;
    }
    .grid ul#video-list-container li.video-list:nth-of-type(2n+1) {
        border-right: none;
    }
}
@media screen and (max-width:719.9px) {
    .grid ul#video-list-container li.video-list:not(:first-child):not(:last-child) {
        width: 100%;
    }
    .grid ul#video-list-container li.video-list {
        border-right: none;
    }
    .list-glid-icon-area { display: none; }
    .num-per-page-area { margin: 0; }
    .display-setting {
        align-items: flex-start;
    }
}

@media screen and (max-width:480px) {
    #header { padding: 20px 10px 10px 10px; }
    h1 { text-align: center; }
    #header a.lang-select {
        font-size: 13px;
        text-align: right;
        right: 8px;
        top: 4px;
        margin: 0;
        width: 50px;
        height: 25px;
    }
    #title-field, #title-exclude-field, #video-length-field, #start-date-field, #sort-area, #video-length-sort-area, #type-field { width: 100%; }
    #title-input, #title-exclude-input { width: calc(100% - 180px); }
    .timepicker, .datepicker { width: calc(50% - 85px); }
    #sort-select { width: calc(100% - 85px); }
    #submit-area { text-align: right; }
    #search-form {
        font-size: 15px;
    }
    .wickedpicker {
        width: 140px;
        height: 120px;
    }
    #search-form input, #search-form select {
        font-size: 16px;
    }
    div.other p {
        line-height: 22px;
    }
    .clearable-picker span, .input-clear {
        margin-left: 3px;
    }
}
