@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("youtube.com") {

/*------------------------------------------------\\
 * YouTube Design Fixes                           *
 * Name: YouTube - Design Fixes                   *
 * Version: 2013.02.24                            *
 * URL: http://userstyles.org/styles/57297/       *
 * Author: Hedja                                  *
 * Website: http://hedjahead.wordpress.com/       *
\\------------------------------------------------*/


/* Centre Content ***************************************/

body:not(.ytg-old-clearfix) {
    min-width:945px !important;
}

#page-container, #yt-masthead,
#masthead-expanded-container,
#content-container, #footer-hh, #ticker-inner,
#ticker-inner .ytg-wide {
    min-width:945px !important;
    max-width:945px !important;
    width:945px !important;
    margin:0 auto !important;
}

#yt-masthead-container, #footer-hh-container {
    min-width:0 !important;
}

/* Channel fixes */
.channel-notification {
    display:none !important;
}
#masthead-subnav {
    width:auto !important;
    max-width:970px !important;
    margin: 0 auto !important;
}

#page.channel #content {
    margin-left:-12.5px !important;
}

/* Remove padding used to left-align */
#watch7-video-container, #watch7-main-container,
#masthead-subnav, #baseDiv, #watch7-playlist-data,
#watch7-owner-container {
    padding-left: 0 !important;
}

#page, #baseDiv, .watch7-playlist-bar {
    margin-left:0 !important;
    width:100% !important;
}

#page #guide {
    left:0 !important;
    padding-left:0 !important;
}

#page #content .branded-page-v2-container {
    width:100% !important;
}

#page #content {
    width:100% !important;
}

#page.home #content, #page.feed #content {
    width:764px !important;
}

.GO1CBYXDNBB, .GO1CBYXDNBB > div {
    width:705px !important;
}

/* Settings page fix for previous rule */
#page.page-default #content {
    width:100% !important;
}

/* Re-position video guide */
#page.watch #guide {
    left: -225px !important;
}

/* Ticker/Top Alert */
.ytg-wide {
    margin-left:0 !important;
}

/* Inbox Alignment Fixes */
#baseDiv {
    margin-left:0 !important;
    margin-right:0 !important;
    padding-right:0 !important;
    width:100% !important;
}
#baseDiv #yt-admin {
    width:100% !important;
    margin-left:0 !important;
}
#baseDiv #yt-admin-content {
    min-height:300px !important;
}

/**********************************************************/

/* Header *************************************************/
#logo-container {
    margin-right:48px !important;
}

#masthead-upload-button-group {
    margin-left:48px !important;
}

#yt-masthead-content {
    max-width:none !important;
}

#yt-masthead-dropdown {
    display:none !important;
}

#yt-masthead-user {
    cursor:pointer !important;
    background: linear-gradient(#FCFCFC, #F8F8F8 100%) !important;
    padding:0px 0px 0px 8px !important;
    border:1px #CCCCCC solid !important;
    border-radius:1px !important;
    margin:2px 8px 0px 8px !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
}
#yt-masthead-user:hover {
    background: #F8F8F8 !important;
}

/* Fix glitch/misalignments on analytics page **************/
button.yt-masthead-user-icon {
    line-height:27px !important;
}
table.GO1CBYXDIDB.GO1CBYXDJDB {
    width: 100% !important;
}
div.GO1CBYXDBP.GO1CBYXDGQ.GO1CBYXDNO {
    width: 95% !important;
}

/* Playlist/Control Block *********************************/
div#masthead-expanded {
    display:block !important;
    overflow:hidden !important;
    max-height:300px !important;
    background: #F5F5F5 !important;
    border-bottom: 1px solid #DBDBDB !important;
    transition:max-height 0.8s !important;
}
div#masthead-expanded.hid {
    transition:max-height 0.5s  !important;
    max-height:0px !important;
}
#masthead-expanded-container {
    border:0 !important;
    background:none !important;
    padding:0 !important;
}

#masthead-expanded-menus-container {
    margin:0px 6px 0px 12px !important;
    padding-left:0px !important;
}
#masthead-expanded-lists-content {
    margin-top:50px !important;

}
/* Control Menu */
#masthead-expanded-menu {
    padding:4px 0px !important;
}

#masthead-expanded-menu-list{
    padding-left:0 !important;
    width:auto !important;
}

#masthead-expanded-menu-list li {
    padding:0 !important;
}

#masthead-expanded-menu-list li a,
#masthead-expanded-menu-list li button span {
    color:#666666 !important;
    font-size:11px !important;
    float:right !important;
    display:block !important;
    width:110px !important;
    padding:5px !important;
    margin:2px !important;
    background:linear-gradient(#FCFCFC, #F8F8F8 100%) !important;
    border:1px #DDD solid !important;
    border-radius:1px !important;
    text-align:left !important;
    line-height:11px !important;
}

#masthead-expanded-menu-list li a:hover {
    text-decoration:none !important;
    background: #F8F8F8 !important;
    border-color:#CCC !important;
}

.yt-uix-slider-body {
    padding:15px 0px !important;
}

#masthead-expanded-lists-container {
    margin-left:0px !important;
}

#playlist-bar-lists-content .playlist-bar-item:first-child {
    border-left:6px solid #999 !important;
}
#playlist-bar-lists-content .playlist-bar-item:last-child {
    border-right:6px solid #999 !important;
}
.playlist-bar-tray-button {
    height:120px !important;
}

#masthead-expanded-lists-content {
    margin-top:30px !important;
    height:120px !important;
}
.playlist-bar-tray-button:focus{
    background:none !important;
    box-shadow:none !important;
}
.playlist-bar-tray-button:hover{
    background:#f8f8f8 !important;
}
/**********************************************************/


/* Wide/Medium Video Player *******************************/

#page.watch #content .watch-medium #watch7-video {
    width:100% !important;
}

.watch-medium #watch7-creator-bar {
    width:auto !important;
}

#watch7-video #watch7-branded-banner {
    display:none !important;
}
/* Speed up resizing */
.watch-medium #watch7-player {
    height: 510px !important;
    width: 945px !important;
}

/* Transitions over plugins seems to glitch in Firefox */
#watch7-playlist-tray-container {
    transition:none !important;
}
/**********************************************************/


/* Related Videos Sidebar *********************************/
#watch7-sidebar {
    opacity:0.2 !important; 
    transition:opacity 0.8s !important;
}

#watch7-sidebar:hover {
    opacity:0.8 !important;
    transition:opacity 1s !important;
}

/* Activity Feed *****************************************/
#feed,.branded-page-v2-primary-col {
    background:linear-gradient(
        90deg, #FFFFFF, #FBFBFB 650px) !important;
}
.branded-page-v2-secondary-col {
    display:none !important;
}

.branded-page-v2-primary-col {
    border-right: 1px solid #EBEBEB !important;;
}

/**********************************************************/

/* Video Information ***************************************/

#watch7-headline {
    padding-bottom:16px !important;
}
.video-extras-sparkbar-dislikes {
    background:#993300 !important;
    border-left:1px solid #aaa !important;
    position:absolute !important;
    right:0px !important;
}

.video-extras-sparkbars,
.video-extras-sparkbar-likes,
.video-extras-sparkbar-dislikes {
    height:4px !important;
}

#watch-uploader-info {
    margin-bottom:8px !important;
}

/* Like/Dislike Buttons */
button#watch-like:hover {
    border-bottom-color:#559900 !important;
    border-right-color:#559900 !important;
}

button#watch-dislike:hover {
    border-bottom-color:#993300 !important;
    border-right-color:#993300 !important;
}

button#watch-dislike.yt-uix-button-toggled {
    border-color:#993300 !important;
}

button#watch-like.yt-uix-button-toggled {
    border-color:#559900 !important;
}

/* Video Description */
#watch-description-content {
    margin-bottom:8px !important;
}

#watch-description-clip {
    width:510px !important;
    float:left !important;
}
#watch-description-extras {
    margin-top:16px !important;
    float:left !important;
}

/* Move Album Advertising */
#watch-description-extra-info {
    margin-left:0 !important;
    float: left !important;
    width:auto !important;
    min-height:0px !important;
}
.yt-uix-expander-collapsed #watch-description-extra-info {
    display:none !important;
}

/*** Comment Blocks ***/

.comment-text {
    margin:8px 0 !important;
}

/* Avatars */
.comment .yt-user-photo  {
    opacity:0.8 !important;
    transition:opacity 0.3s !important;
}
.comment .yt-user-photo:hover  {
    opacity:1 !important;
    transition:opacity 0.8s !important;
}

/**********************************************************/

/* Channel Fixes */

.playlist h3, .playlist .playlist-author-attribution {
    margin-top:4px !important;
}

}