/* CSS for MediaServer browser */
.ms-browser-container {
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
    background: #eee;
}
.ms-browser-container.in-overlay {
    text-align: left;
    background: #eee !important;
}

/* base */
.ms-browser * {
    margin: 0;
    padding: 0;
}
.ms-browser-container a {
    text-decoration: none;
    color: #1C73BF;
}
.ms-browser-container a:hover {
    text-decoration: none;
    color: #004C5C;
}
.ms-browser img {
    vertical-align: middle;
    border: 0 none;
}
.ms-browser ul,
.ms-browser ol {
    padding-left: 24px;
}
.ms-browser li {
    margin-top: 4px;
    margin-bottom: 4px;
}
.ms-browser table {
    border-spacing: 0;
    border-collapse: collapse;
}
.ms-browser p {
    margin: 8px 0;
}
.ms-browser option {
    padding: 2px 5px;
}
.ms-browser label {
    display: inline;
}
.ms-browser input {
    margin: 0;
    padding: 3px;
    box-sizing: border-box;
}
.ms-browser .ms-browser-clear {
    clear: both;
    overflow: hidden;
}


/* buttons */
.ms-browser .button {
    margin: 0;
    margin-right: 8px;
    padding: 3px 8px;
    cursor: pointer;
    transition-duration: .3s;
    transition-property: background;
    box-sizing: border-box;
}
.ms-browser .button.active,
.ms-browser button.button.active {
    color: #fff;
    background: #404040;
}
.ms-browser br + .button,
.ms-browser br + .button + .button {
    margin-top: 8px;
}


/* structure */
.ms-browser.in-overlay .ms-browser-header,
.ms-browser.in-overlay .ms-browser-bar,
.ms-browser.in-overlay .ms-browser-main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.ms-browser .ms-browser-header {
    padding: 5px;
    height: 40px;
    line-height: 40px;
}
.ms-browser.in-overlay .ms-browser-header {
    bottom: auto;
}
.ms-browser .ms-browser-header .ms-browser-top-buttons {
    float: right;
    display: block;
}
.ms-browser .ms-browser-header .ms-browser-menu {
    padding-right: 5px;
    float: left;
    display: block;
}
.ms-browser .ms-browser-title {
    padding-right: 200px;
    font-size: 200%;
    font-weight: bold;
    word-wrap: break-word;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    height: 100%;
    overflow: hidden;
}
.ms-browser .ms-browser-title img {
    max-height: 40px;
}
.ms-browser .ms-browser-bar {
    padding: 5px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.ms-browser.in-overlay .ms-browser-bar {
    top: 50px;
    bottom: auto;
    height: 30px;
    line-height: 30px;
}
.ms-browser.in-overlay .ms-browser-main {
    top: 92px;
    overflow: auto;
}
.ms-browser .ms-browser-section {
    overflow: hidden;
}
.ms-browser .ms-browser-section-links {
    float: right;
}
.ms-browser .ms-browser-section-links + h3 + div {
    clear: both;
}
.ms-browser h3,
.ms-browser h4 {
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: italic;
    color: #404040;
}
.ms-browser.in-overlay h3,
.ms-browser h4 {
    font-size: 125%;
}
.ms-browser h4 {
    padding: 0;
    margin-bottom: 4px;
    margin-left: -8px;
}
.ms-browser .ms-browser-content {
    padding: 10px;
}

/* buttons */
.ms-browser .ms-browser-tab {
    margin: 0;
}
.ms-browser .ms-browser-tab.active {
    font-weight: bold;
}
.ms-browser .ms-browser-tab + .ms-browser-tab {
    margin-left: 5px;
}

/* dropdown */
.ms-browser-dropdown {
    margin-left: 10px;
    z-index: 2;
    position: relative;
    display: inline-block;
}
.ms-browser .ms-browser-dropdown + .ms-browser-dropdown {
    z-index: 1;
}
.ms-browser .ms-browser-header .ms-browser-dropdown {
    z-index: 4;
}
.ms-browser-dropdown .ms-browser-dropdown-button.active {
    background: #404040;
    color: #fff;
}
.ms-browser-dropdown .ms-browser-dropdown-menu {
    top: 100%;
    left: 0;
    position: absolute;
    padding: 8px;
    padding-left: 16px;
    z-index: 5;
    display: none;
    line-height: 24px;
    white-space: nowrap;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
.ms-browser-dropdown-right .ms-browser-dropdown-menu {
    left: auto;
    right: 0;
}
.ms-browser-dropdown .ms-browser-dropdown-menu.active {
    display: block;
}
.ms-browser-dropdown .ms-browser-dropdown-menu div + div {
    margin-top: 8px;
}

/* filters menu */
.ms-browser-filters select,
.ms-browser-filters input {
    margin: 4px;
}
.ms-browser-filters #open_hidden_categories:hover {
    cursor: pointer;
}
.ms-browser-filters #hidden_categories {
    width: 400px;
    overflow: hidden;
}
.ms-browser-filters #hidden_categories label {
    margin-right: 8px;
    float: left;
    display: block;
    max-width: 100%;
}
.ms-browser-filters #hidden_categories label input {
    display: inline-block;
    vertical-align: top;
}
.ms-browser-filters #hidden_categories label span {
    white-space: pre-wrap;
    word-break: break-all;
    display: inline-block;
}
.ms-browser-filters .hidden-visibility {
    visibility: hidden;
    height: 1px;
}

/* loading and message */
.ms-browser .ms-browser-message,
.ms-browser .ms-browser-loading {
    position: absolute;
    top: 20px;
    left: 40%;
    display: none;
    padding: 5px;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #000;
    background: rgba(0, 0, 0, .7);
}
.ms-browser .ms-browser-message {
    background: #fff;
    color: #000;
}
.ms-browser .ms-browser-loading {
    font-size: 150%;
}

/* messages */
.ms-browser .messages {
    text-align: center;
}
.ms-browser .info,
.ms-browser .success,
.ms-browser .warning,
.ms-browser .error {
    margin: 10px;
    padding: 10px;
    display: block;  /* fallback */
    display: inline-block;
    overflow: hidden;
    line-height: normal;
    text-align: left;
    min-height: 0;
    color: #fff;
    background: #222;
    box-shadow: 2px 2px 1px 0px #ddd;
}
.ms-browser .info:before,
.ms-browser .success:before,
.ms-browser .warning:before,
.ms-browser .error:before {
    padding-right: 5px;
    font: normal normal normal 14px/1 FontAwesome;
}
.ms-browser .info {
    background: #1C73BF;
}
.ms-browser .info:before {
    content: "\f05a";
}
.ms-browser .success {
    background: #008750;
}
.ms-browser .success:before {
    content: "\f058";
}
.ms-browser .warning {
    background: #F7B407;
}
.ms-browser .warning:before {
    content: "\f071";
}
.ms-browser .error {
    background: #DB263D;
}
.ms-browser .error:before {
    content: "\f06a";
}

/* channels tab */
.ms-browser .ms-browser-tree-place,
.ms-browser .ms-browser-channels-place {
    padding: 10px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    overflow: auto;
}
.ms-browser .ms-browser-tree-place {
    right: auto;
    width: 280px;
    background: #fff;
}
.ms-browser .ms-browser-channels-place {
    left: 300px;
}
/* channels tree */
.ms-channels-tree ul {
    padding-left: 0;
}
.ms-channels-tree li {
    line-height: 18px;
    overflow: hidden;
    list-style: none;
}
.ms-channels-tree ul ul {
    display: none;
    padding-left: 20px;
}
.ms-channels-tree li .list-none {
    margin-right: 23px;
}
.ms-channels-tree li .list-entry {
    padding: 0;
    display: block;
    float: left;
    text-align: center;
    font-weight: normal;
    vertical-align: top;
    line-height: 14px;
    width: 16px;
    height: 16px;
    cursor: default;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: content-box;
    margin-right: 5px;
    outline: none;
}
.ms-channels-tree li .list-entry {
    cursor: pointer;
}
.ms-channels-tree li .list-entry .fa {
    padding-left: 0px;
}
.ms-channels-tree .channel-personal-btn {
    float: right;
}
.ms-channels-tree #tree_channel_0 {
    clear: both;
}
.ms-channels-tree .channel-btn {
    display: block;
    cursor: pointer;
    color: #145284;
    text-align: left;
    background: transparent;
    border: 0 none;
    word-wrap: break-word;
    box-sizing: content-box;
}
.ms-channels-tree li .channel-btn {
    margin-left: 21px;
}
.ms-channels-tree .channel-btn:hover,
.ms-channels-tree .channel-active .channel-btn {
    color: #086E9A;
}
.ms-channels-tree .channel-active .channel-btn {
    font-weight: bold;
}
.ms-channels-tree .channel-locked,
.ms-channels-tree .channel-empty,
.ms-channels-tree .channel-empty .channel-btn {
    color: #666;
}

/* search tab */
.ms-browser .ms-browser-search-form {
    display: inline;
}
.ms-browser .ms-browser-search-form input {
    width: auto;
    padding: 3px;
}
.ms-browser .ms-browser-search-matching {
    padding: 10px 30px;
}

/* latest tab */
.ms-browser .ms-browser-latest-btns {
    margin: 8px 5px;
    text-align: center;
}

/* channel content list */
.ms-items .item-entry {
    margin: 10px;
    position: relative;
    display: block;
    display: inline-block;
    width: calc(50% - 20px);
}
.ms-items .item-description {
    margin: 10px;
    padding: 10px;
    background: #fff;
    box-shadow: 2px 2px 1px 0px #ddd;
}
.ms-items .item-entry * {
    box-sizing: content-box;
}
.ms-items .item-entry-link {
    display: block;
    color: inherit;
    overflow: hidden;
    background: #fff;
    box-shadow: 2px 2px 1px 0px #ddd;
    border-bottom: 3px solid #ccc;
    border-radius: 3px;
}
.ms-items .clickable .item-entry-link {
    cursor: pointer;
    color: #145284;
}
.ms-items .item-entry .item-entry-link:hover {
    color: #086E9A;
    box-shadow: 0 0 5px 0px #086E9A;
}
.ms-items .selectable .item-entry-link {
    border-bottom: 3px solid #1C73BF;
}
.ms-items .selected .item-entry-link {
    border-bottom: 3px solid #008750;
}
.ms-items .selected .item-entry-link:hover {
    color: #008750;
    box-shadow: 0 0 5px 0px #008750;
}
.ms-items .selected .item-entry-link {
    color: #008750;
}
.ms-browser-title .selected {
    color: #008750;
}
.ms-items .item-entry-preview {
    margin: 10px;
    width: 240px;
    height: 135px;
    line-height: 135px;
    text-align: center;
    float: left;
    display: block;
    position: relative;
}
.ms-items .item-entry-preview img {
    max-width: 100%;
    max-height: 100%;
    margin-top: -2px;
    vertical-align: middle;
}
.ms-items .item-entry-preview span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    background: transparent none 50% 50% no-repeat;
}
.ms-items .item-entry-preview span i {
    line-height: inherit;
}
.ms-items .item-entry-preview .item-entry-preview-play {
    display: none;
    color: #fff;
    text-shadow: 0 0 5px #404040;
}
.ms-items .item-entry-link:hover .item-entry-preview .item-entry-preview-play {
    display: block;
}
.ms-items .item-entry-content {
    margin: 10px;
    margin-left: 260px;
    display: block;
}

.ms-items .item-entry-top-bar {
    display: block;
    overflow: hidden;
    margin-bottom: 5px;
}
.ms-items .item-entry-top-bar .item-entry-title {
    font-size: 1.2em;
    font-weight: bold;
    padding: 5px 0;
}
.ms-items .item-entry-duration {
    display: block;
    float: right;
    margin-left: 10px;
    color: #666;
}
.ms-items .item-entry-unlisted,
.ms-items .item-entry-notpublished,
.ms-items .item-entry-published,
.ms-items .item-entry-notready {
    margin-left: 10px;
    display: block;
    float: right;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    cursor: help;
}
.ms-items .item-entry-unlisted:before,
.ms-items .item-entry-notpublished:before,
.ms-items .item-entry-published:before,
.ms-items .item-entry-notready:before {
    color: #666;
    font: normal normal normal 16px/1 FontAwesome;
}
.ms-items .item-entry-unlisted:before {
    content: "\f070";
}
.ms-items .item-entry-notpublished:before {
    content: "\f023";
}
.ms-items .item-entry-published:before {
    content: "\f058";
    color: #080;
}
.ms-items .item-entry-notready:before {
    content: "\f085";
    color: #850;
}

.ms-items .item-entry-bottom-bar {
    display: block;
}
.ms-items .item-entry-bottom-bar span + span {
    margin-top: 5px;
}
.ms-items .item-entry-date,
.ms-items .item-entry .item-entry-description,
.ms-items .item-entry-views,
.ms-items .item-entry-annotations,
.ms-items .item-entry-parent,
.ms-items .item-entry-type {
    display: block;
    color: #666;
}
.ms-items .item-entry-annotations {
    font-style: italic;
}
.ms-items .item-entry-annotations {
    padding: 5px 10px;
    padding-bottom: 0;
}
.ms-items .item-entry-annotations ul {
    overflow: auto;
    max-height: 100px;
}

.ms-items .item-entry-links {
    position: absolute;
    right: 5px;
    bottom: 5px;
    text-align: right;
}
.ms-items .item-entry-links-container {
    display: none;
}
.ms-items .item-entry:hover .item-entry-links-container {
    display: block;
}
.ms-items .item-entry .item-entry-description {
    max-height: 40px;
    overflow: auto;
}

/* thumbnail mode */
.ms-items .item-entry.thumbnail {
    padding: 0;
    width: 240px;
    cursor: auto;
    display: inline-block;
    text-align: center;
    line-height: inherit;
}
.ms-items .item-entry.thumbnail > .item-entry-link {
    height: 100%;
}
.ms-items .item-entry.thumbnail .item-entry-preview,
.ms-items .item-entry.thumbnail .item-entry-content,
.ms-items .item-entry.thumbnail .item-entry-top-bar,
.ms-items .item-entry.thumbnail .item-entry-bottom-bar {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
}
.ms-items .item-entry.thumbnail .item-entry-preview {
    height: 135px;
    line-height: 135px;
}

.ms-items .item-entry.thumbnail .item-entry-top-bar {
    padding-right: 10px;
    left: 0;
    top: 0;
    position: absolute;
    background: #fff;
    width: auto;
    border-top-left-radius: 3px;
    border-bottom-right-radius: 3px;
}
.ms-items .item-entry.thumbnail .item-entry-unlisted,
.ms-items .item-entry.thumbnail .item-entry-notpublished,
.ms-items .item-entry.thumbnail .item-entry-published,
.ms-items .item-entry.thumbnail .item-entry-notready,
.ms-items .item-entry.thumbnail .item-entry-duration {
    padding: 5px;
    float: left;
    font-style: italic;
}
.ms-items .item-entry.thumbnail .item-entry-top-bar > *,
.ms-items .item-entry.thumbnail .item-entry-bottom-bar > * {
    font-weight: bold;
    word-wrap: break-word;
}
.ms-items .item-entry.thumbnail .item-entry-title {
    padding: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}
.ms-items .item-entry.thumbnail .item-entry-buttons {
    top: 0;
    right: 0;
    position: absolute;
}
.ms-items .item-entry.thumbnail .item-entry-buttons a,
.ms-items .item-entry.thumbnail .item-entry-buttons button {
    display: none;
    cursor: pointer;
    border: none;
    background: white;
    padding: 0;
    margin: 5px;
    width: 35px;
    height: 32px;
    border-radius: 4px;
    font-size: 1.5em;
}
.ms-items .item-entry.thumbnail .item-entry-info.info-displayed,
.ms-items .item-entry.thumbnail:hover .item-entry-buttons a,
.ms-items .item-entry.thumbnail:hover .item-entry-buttons button {
    display: block;
}
.ms-items .item-entry.thumbnail .item-entry-buttons .fa {
    padding: 5px;
}
.ms-items .item-entry-copy {
    position: relative;
}
.ms-items .item-entry-copy .copy-msg {
    display: none;
}
.ms-items .item-entry-copy.copied > * {
    visibility: hidden;
}
.ms-items .item-entry-copy.copied > .copy-msg {
    visibility: visible;
    padding-top: 2px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    display: block;
}

@media (max-width: 1280px) {
    .ms-browser .ms-browser-title {
        padding: 0;
    }
    .ms-browser .ms-browser-content {
        padding: 0;
    }
    .in-overlay .ms-items .ms-browser-channels-place .item-entry.list {
        display: block;
        width: auto;
    }
    .ms-items .item-entry-preview {
        width: 120px;
        height: 91px;
        line-height: 91px;
    }
    .ms-items .item-entry-content {
        margin-left: 140px;
    }
    .ms-items .item-entry .item-entry-description {
        display: none;
    }
}
@media (max-width: 1000px) {
    .ms-items .item-entry.thumbnail {
        width: 176px;
        font-size: inherit;
    }
    .ms-items .item-entry.thumbnail .item-entry-preview {
        height: 99px;
        line-height: 99px;
    }
}
@media (max-width: 800px) {
    .ms-browser .ms-browser-tree-place {
        display: none;
    }
    .ms-browser .ms-browser-channels-place {
        left: 0;
    }
    .ms-browser.in-overlay .ms-browser-header,
    .ms-browser.in-overlay .ms-browser-bar,
    .ms-browser.in-overlay .ms-browser-main,
    .ms-browser .ms-browser-tree-place,
    .ms-browser .ms-browser-channels-place {
        position: static;
    }
    .ms-browser .ms-browser-channels-place {
        padding: 10px 0;
    }
    .ms-browser.in-overlay .ms-browser-bar,
    .ms-browser .ms-browser-header {
        height: auto;
    }
    .ms-browser-dropdown-right .ms-browser-dropdown-menu {
        right: -10px;
    }
    .ms-browser .ms-browser-title {
        padding: 0;
        width: 100%;
        font-size: 150%;
    }
    .ms-browser-filters #hidden_categories {
        width: auto;
    }
    .ms-items .item-entry-top-bar .item-entry-title {
        font-size: inherit;
    }
    .ms-items .item-entry.list {
        display: block;
        margin: 10px 0;
        width: auto;
    }
    .ms-items .item-entry-links-container {
        display: inline-block;
    }
    .ms-items .item-entry-unlisted,
    .ms-items .item-entry-notpublished,
    .ms-items .item-entry-published,
    .ms-items .item-entry-notready {
        margin-right: 3px;
    }
}
@media (max-width: 600px) {
    .ms-items .item-entry-preview {
        margin: 0;
    }
    .ms-items .item-entry-preview {
        margin: 5px;
        width: 60px;
        height: 45px;
        line-height: 45px;
    }
    .ms-items .item-entry-content {
        margin: 5px;
        margin-left: 70px;
    }
}
@media (max-width: 450px) {
    .ms-browser .ms-browser-search-form input {
        width: 50%;
    }
}