#page-main {margin-top: 0px;}
#playerFrame {background:#EEE; transition: background .4s ease;}
#playerFrame.play-layout {background:#000;}
    #player-container {padding-top:15px; padding-bottom:15px;}
    #player-container.play-layout {padding: 0; width:100%;}
    #player-container > .row {height: 100%;}
    #player-container.play-layout > .row {margin: 0px;}

        /* infoindex */
        #infoindexFrame {float:right; overflow-y: auto; height:100%;}
            #infoindex-container {}
            #infoindexFrame .indexBox .title, #infoindexFrame .indexBox .sn  {font-size: 15px;}
            #infoindexFrame .indexBox .indent .title, #infoindexFrame .indexBox .indent .sn {font-size: 13px;}
            #infoindexFrame .indexBox .time  {margin-top: 3px;}
            #infoindexFrame .indexBox .indent .time  {margin-top: 1px;}

        /* tab */
        #sideFrame {float:right; overflow: hidden; width:0px; height:100%; box-sizing: border-box; padding: 5px 0px 5px 0px; background: #000; /*transition: width .4s ease;*/}
        #playerFrame.tab-open #sideFrame {width:500px;}
        #playerFrame.tab-open #sideFrame.narrow-page {padding-left: 5px;}
            #side-container  {position: relative; background:#FFF; height:100%; width: 500px; padding:0px 10px; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; }
            #side-container .side-box {display: none;}

            /* larger padding for index in tabs */
            .mod_tabs .indexBox .idx {padding: 7px 10px;}
            .mod_tabs .indexBox .idx.indent {padding-left: 20px;}

            #noteBox .mod_note .flot {
                width: 460px;
            }


        /* video */
        #videoFrame { position: relative; height: 100%; overflow: hidden; /*transition: margin-right .4s ease, width .4s ease;*/}
        #playerFrame.tab-open #videoFrame {margin-right: 500px}
            #video-container  {}
                #video-container.play-layout  {padding: 10px;}
                #video-container.play-layout.narrow-page  {padding: 0px;}
                #videoBox {}
                #videoBox.loading { background: url("/sys/res/icon/loading2.gif") center no-repeat; }
                #mediaBox {position: relative; height: 100%; width: 100%; overflow:hidden; }
                #mediaBox.loadFail {}
                #mediaBox.loadFail > * { display: block; position: absolute; margin: auto; top: 0; bottom: 0; left: 0; right: 0; height: 10%; text-align: center; }

/*****/ #video-container > .clearfix:after,#video-container > .clearfix:before  {display:none;}

        /* canvas */
        .canvas-container {transform-origin: left top;}
        .fs-player .canvas-container  {
            bottom: initial;
            right: initial;
            margin: initial;
        }

#mediaBox.loadFail {background:#fff; box-shadow:0 0 3px #777; border:1px solid transparent;}


#authorBox { padding-bottom: 12px; border-bottom: 1px solid #DDD; margin-bottom: 15px; font-size: 13px;}
    #authorBox>.authorInfo { padding-top: 10px;}
    #authorBox>.authorInfoWithoutPhoto {border-left: 2px solid #00BCD4; padding-left: 10px; padding-top: 0px};
    #authorBox [role="publishTime"] {color: #BBB;}
    #authorBox [role="viewCnt"] {color: #999;}
    #authorBox .author-img {float: left; margin-right: 8px; width: 62px; border: 2px solid #FFF; box-shadow: 0px 0px 4px 0px #b8b8b8;}



#ctrlFrame {height: 52px; background: #FFF; border-top: 1px solid #DDD; border-bottom: 1px solid #DDD; margin-bottom: 30px; line-height: 1.5;}

#toolsPanel {
    float:left;
    border-left: 1px solid #DDD;
    padding: 0px 5px;   /* .fs-tools > ul > li */
}
#toolsPanel .fs-tools,
#toolsPanel .fs-tools > ul,
#toolsPanel .fs-tools > ul > li  {
    display: block;
}
#toolsPanel .fs-tools > ul:before, #toolsPanel .fs-tools > ul:after {
    content: "";
    display: table;
}
#toolsPanel .fs-tools > ul > li {
    float: left;
    margin: 0px;
}

#toolsPanel .fs-tools > ul > li .delimiter {
    margin-right: 0px;
}

#toolsPanel .dropdown-toggle, #toolsPanel > .fs-tools > ul > li > a, #toolsPanel > .fs-tools > ul > li > div > a{
    display: block;
    font-size: 20px;
    line-height: 1;
    color: #777;
    background-color: #E9E9E9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    padding-top: 10px;
    margin: 5px 2px;
    opacity: 0.9;
}

#toolsPanel .dropdown-toggle:hover, #toolsPanel > .fs-tools > ul > li > a:hover, #toolsPanel .dropdown.open .dropdown-toggle, #toolsPanel .dropup.open .dropdown-toggle {opacity:1;}
#toolsPanel .dropdown-toggle:active, #toolsPanel > .fs-tools > ul > li > a:active {transform: scale(0.95); transform-origin: center;}
#toolsPanel .dropdown-toggle > a {
    display: none;
}

.xtop-toggle {
    line-height: 1;
    border: 0;
    border-radius: 0;
    padding: 13px 20px;
    margin: 5px 0px;
    transform: rotate(180deg);
}
.xtop-toggle.mobile-collapse {
    transform: rotate(0deg);
}

#controlPanel {border-right: 1px solid #DDD; }

#titlePanel {border-left: 1px solid #DDD; border-right: 1px solid #DDD; }
#titlePanel .title {font-size: 20px;}
#titlePanel .fs-hint {margin-bottom: 2px;}

#info-container {border:1px solid #DDD; padding:14px}


/* side close X button */
.side-close { position: absolute; top: 10px; right: 12px; width: 24px; height: 24px; cursor: pointer;}
.side-close .side-close-container { position: relative; }
.side-close i { display: block; position: relative; width: 13px; height: 0px; border-style: solid; border-color: #BBB; background-color: #BBB; border-width: 1px; border-radius: 2px; }
.side-close .line-1 { top: 12px; left: 4px; transform: rotate(45deg); }
.side-close .line-2 { top: 10px; left: 4px; transform: rotate(-45deg); }

/* 詳細資訊中的位置，使用 uic::breadcrumb，必須移除預設 padding, margin, hidden */
#info-tabs-detail .breadcrumb {
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    display:block !important;
}

/* #73237 */
body.player-fullscreen {
    overflow: hidden;
}
body.player-fullscreen #page {
    position: relative;
}
body.player-fullscreen #page > .player-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9998; /* lower than player z-index */
    background: #000;
}

/* mobile layout */
@media (max-width: 991px) { /* < 992 */
    #player-container {
        padding: 0px;
    }
    #player-container > .row {
        margin: 0px;
    }


    #videoFrame {
        padding: 0px;
    }
    #playerFrame.tab-open #videoFrame {margin-right: 0px}
    
    #infoindexFrame {
        display: none;
    }
}


/* mobile ( < 992 )*/
@media (max-width: 991px) {
    .container {
        width: initial;
    }

    #page-sysbar .fs-mobile-navbar {
        /*display: none;*/
    }

    #controlPanel {
        display: none;
    }

    #ctrlFrame {
        position: relative;
        height: 95px;
        margin-bottom: 10px;
        /*border-bottom: 0;*/
    }

    #ctrl-container {
        padding: 0px;
        width: 100%;
    }

    .mod_media-toolsPanel {
        position: relative;
        top: 43px;
    }
    #toolsPanel {
        float: none;
        border-left: none;
    }

    #titlePanel {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        border-bottom: 1px solid #DDD;
        border-left: none;
        border-right: none;
    }

    #titlePanel .title {
        font-size: 15px;
    }

    /* xtop collapse */
    #xtop {
        /* ? xtop ?i?}???ɭԦ??L?p??????ܤơA???e?ܤ֮ɤ]?|?? toggle ?????*/
        padding-bottom: 10px;
    }
    #xtop.mobile-collapse {
        position: relative;
        min-height: 1.5em;
        max-height: 80px;
        overflow: hidden;
        padding: 0;
    }

    /* xtop bottom gradient mask */
    #xtop .bottom-mask {
        cursor: pointer;
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        height: 20px;
        background: none; /* set none for browsers not supporting gradient */
        background: linear-gradient( rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) );
    }

    /* border between xtop and xbottom */
    #xbottom {
        position: relative;
    }
    #xbottom:before {
        content: '';
        position: absolute;
        top: -1px;
        left: -15px;
        right: -15px;
        border-top: 1px solid #DDD;
    }
    
    /* affix toolsPanel 暫存 */
    /*#xbottom .fs-tab .fs-nav {
        position: relative;
        z-index: 99;
        background-color: #FFF;
        border-bottom: 1px solid #DDD;
        margin-left: -15px;
        padding-left: 15px;
        width: calc(100% + 30px);
        border-top: 1px solid #DDD
    }

    #xbottom .fs-tab .fs-nav:before,
    #xbottom .fs-tab .fs-nav:after {
        content: '';
        display: block;
        height: 100%;
        width: 15px;
        position: absolute;
        top: 0px;
        border-bottom: 1px solid #DDD;
    }
    #xbottom .fs-tab .fs-nav:before {
        right: 100%;
    }
    #xbottom .fs-tab .fs-nav:after {
        left: 100%;
    }*/

    /*#xbottom .fs-tab .nav > li > a {
        padding: 14px 15px;
    }*/
}


/* affix video and tabInfo */

#videoFrame.affix,
#xbottom .fs-tab .fs-nav.affix {
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
}

#xbottom .fs-tab .fs-nav + .affix-placeholder {
    display: none;
}
/* affix toolsPanel 暫存 */
/*#toolsPanel + .affix-placeholder {
    display: none;
}*/

#videoFrame.affix {
    position: fixed;
    z-index: 100;
    top: 0px;
    height: initial;
    width: 100%;
    background-color: #000;
    border-bottom: 1px solid #DDD;
}

#xbottom .fs-tab .fs-nav.affix {
    position: fixed;
    z-index: 101; /* lower than videoFrame，讓影片的 border-bottom 分隔 videoFrame 和 infoTab */
    left: 0px;
    width: 100%;
    padding: 0px 15px; /* 左右撐滿，補足 bootstrap container 的 padding */
    background-color: #FFF;
    border-top: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
}
#xbottom .fs-tab .fs-nav.affix + .affix-placeholder {
    display: block;
}

/* affix toolsPanel 暫存 */
/* #toolsPanel.affix {
    position: fixed;
    z-index: 98;
    left: 0px;
    width: 100%;
    background-color: #FFF;
    border-bottom: 1px solid #DDD;
}
#toolsPanel.affix + .affix-placeholder {
    display: block;
}*/
