body {
    background: #f4f4f9;
    margin: 0px;
    font-size: 12px;
    font-family: "Lucida Grande", "Tahoma", "Bitstream Vera Sans", Arial, sans-serif;
    color: #333333;
}

/* Used in download item exactly as you'd expect */
.draggable {
    -khtml-user-drag: element;
}
.noselect {
    -khtml-user-select: none;
    -moz-user-select: none;
    cursor: default;
}

/* basic HTML elements */
p {
    font-size: 90%;
    margin: 5px 10px 7px 10px;
}

form {
    margin: 0px;
    padding: 0px;
}

ul {    
    list-style: none;
    margin: 0px;
    padding: 0px;   
}

li {
    margin: 0px;
    padding: 0px;
}

img {
    border: 0px;
}

.clear {
    clear: both;
}

/* This is used to make the feed settings section float above the channel */
#feed-settings {
    position: fixed;
    top: 90px;
    left: 0px;
    width: 100%;
    display: none;
    background: url(../images/settings-shadow.png) repeat-x left bottom;
    z-index: 5; /* Needs to be float above the main page */
    color: #000;
    font-size: 13px;
}


#settings-inner {
    padding: 20px 18px 20px 18px;
    background-color: #FFFFBB;
    height: 180px;
    margin-bottom: 4px;
}

#settings-inner h2 {
    font-size: 15px;
    margin: 0;
    padding: 12px 0 20px 0;
}

#channel-url {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #999;
    font-size: 11px;
    text-align: right;
}

#channel-url a.remove-channel {
    color: #f00;
}

.settings-small {
    font-size: 10px;
    padding: 3px 0 0 23px;
}

.settings-button {
    text-align: center; 
    margin-left: 5px;
    position: absolute;
    bottom: 22px;
    left: 43px;
}

/* The block of drop downs and fields */
#actual-settings {
    padding: 0 0 0 25px;
}

/* Used in feed-settings to position the feed-settings icon */
#feed-settings-close-button {
    width: 150px
}

/* This is the title section of the channel view */
#main-titlebar {
    background: url(../images/main-titlebar-bg.png) repeat-x left top;
    height: 93px;
    width: 100%;
    min-width: 600px;
    margin: 0px 0px 1px 0px;
    position: fixed;
    top: 0px;
    z-index: 6; 
    color: #fff;
    /* This should be above feed-settings, so that feed-settings doesn't cover
     * it up durring the opening animation.  It also needs to be above
     * sort-bar, so the auto-download select menu is above sort-bar.
     */
}

/* The icon for the channel view. Usually in the titlebar */
#main-icon {
    position: absolute;
    left: 9px;
    top: 6px;
    width: 76px;
    height: 76px;
    border: 1px solid #FFFFFF;
    background-color:#FFFFFF;
}

#main-titlebar .noborder {
    background: none;
    border: none;
    margin: 2px;
}

/* This wraps just the name of the view */
#main-title {
    position: absolute;
    left: 98px;
    right: 120px;
    top: 6px;
    height: 32px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    font-size: 26px;
    font-weight: normal;
    letter-spacing: -0.5px;
}

/* Just around auto-download */
#auto-download {
    position: absolute;
    bottom: 30px;
    left: 98px;
    display: block;
    height: 20px;
    color: #FFFFFF;
    padding: 0px;
    margin: 0px 0 2px 0px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

#auto-download-menu {
    font-weight: normal;
}

#auto-label {
    float: left;
    padding-right: 6px;
    padding-top: 1px;
}

/* Search box */
#search-box-container {
    position: absolute;
    bottom: 10px;
    left: 98px;
}

#search-box {
    color: #333;
    font-size: 12px;
    width: 121px;
}

/* The right side of the titlebar (visit website, settings, etc). */
.main-titlebar-right {
    position: absolute;
    top: 9px;
    right: 16px;
}

.main-titlebar-right a {
    color: #fff;
}

.main-titlebar-right li {
     margin-bottom: 10px;
}

/* Download page titlebar components */
#downloads-global-actions {
    font-size: 10px;
    position: absolute;
    top: 24px;
    right: 5px;
    text-align: center;
}

#downloads-global-actions div {
    display: block;
    float: left;
    width: 100px;
    height: 45px;
    overflow: hidden;
}


#downloads-global-actions a {
    color: #fff;
    text-decoration: none;
    font-size: 10px;

}

#download-info {
    position: absolute;
    top: 14px;
    right: 195px;
    font-size: 11px;
}

.download-rates {
    margin: 10px 0px 0px 0px;
}

/* Search page components */
#engine-search {
    position: absolute;
    left: 98px;
    top: 40px;
    text-align: left;
    overflow: hidden;
}

#engine-search input, #engine-search select {
    font-size: 11px;
}

/* CSS for our popup select boxes */

.select-box-right {
    background: right top no-repeat url(../images/auto-select-box-right.png);
}

.select-box-left {
    background: left top no-repeat url(../images/auto-select-box-left.png);
    float: left;
    cursor: pointer;
    -khtml-user-select: none;
    -moz-user-select: none;
}

.select-box-mid {
    background: left top repeat-x url(../images/auto-select-box-mid.png);
    margin: 0px 16px 0px 6px;
    padding: 1px 7px 1px 3px;
    height: 19px;
    color: #333;
    font-size: 11px;
}

.select-box-menu {
    border: 1px solid #AAA;
    background: #f6f6f6;
    margin: 0px;
    position: relative;
    top: -45px;
    display: none;
}

.auto-download .select-box-menu {
    width: 250px;
    left: 0px;
    top: -25px;
    padding: 6px 0 6px 0;
}

.select-box-menu li {
    list-style: none;
}

.select-box-menu a {
    text-decoration: none;
    color: #000;
    display: block;
    text-transform: none;
    margin: 0px;
    padding: 2px 9px 2px 12px;
    font-size: 12px;
}

.select-box-menu a:hover {
    background: #2673c9;
    color: white;
}

/* Used for scraping indicator on channel page */
.main-container-scraping {
    text-align: center;
    margin: 15px 0px;
    padding: 0px;
}

/* this goes in the main-container-scraping section */
.scraping-indicator {
    margin: auto;
    width: 600px;
    height: 56px;
    background: #efefef;
    font-size: 18px;
    color: #085ffe;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 18px;
    position:relative;
}

/* this goes around the text of the scraping section */
.scraping-content {
    position: absolute;
    left: 20px;
    bottom: 16px;
}

/* This holds everything below the channel bar*/
#main-container {
    position: absolute;
    padding-top: 0px;
    top: 90px;
    width: 100%;
    /*
    It would be nice to include these next two lines.  This would make the
    scrollbars only affect the items in a channel, not it's header too.  The
    problem is it causes the div to scroll to the top whenever we change an
    item on ubuntu at least, possibly OS X too.

    bottom: 0px;
    overflow: auto;
     */
}


/* SORT BUTTONS AND VIDEO STATS -- THEY ARE GROUPED TOGETHER IN THE CSS SINCE THEY NEED TO LINE UP WITH EACH OTHER */
.sort-buttons {
    font-size: 11px;
    color: #113;
    background-color: #4dc44b;	
    position: relative;
    height: 17px;
    padding-top: 4px;
    padding-left: 122px;
}

.static-tab-sort .sort-buttons {
    background-color: #333;
}


.available-sort .sort-buttons {
    background-color: #5faeff;	
}

.downloading-sort .sort-buttons {
    background-color: #FF8c2d;
}

.main-video-details-top {
    color:  #222;
    font-size: 10px;
    height: 15px;
    padding-bottom: 3px;
    overflow: hidden;
    border-bottom: 1px solid #e1e9f6;
    width: 100%;
}

.video-stats div {
    float: left;
    padding-top: 3px;
    height: 15px;
}

a.sort-button {
    color: white;
    text-decoration: none;
    display: block;
    float: left;
}

.sort-buttons-right {
    width: 315px;
    float: right;
}

.length {
    width: 65px;
}

.date {
    width: 80px;
}

.size {
    width: 50px;
}


.torrent {
    width: 60px;
}


.details-link {
    padding-top: 1px;
    float: right;
}

.details-link a {
    text-decoration: none;
    color: #3263A0;
    font-size: 10px;
} 

.details-link a img {
    vertical-align: -4px;
}


a.sort-button img {
    border: none;
    padding-left: 3px;
    vertical-align: 0px;
    display: none;
}

a.sort-button.ascending img.up-arrow {
    display: inline;
}

a.sort-button.descending img.down-arrow {
    display: inline;
}

/* The section dividers */

.main-channelbar {
    background-color: #B9CDFF;
    border-top: 1px solid white;
    height: 22px;
    display: block;
    overflow: hidden;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: normal;
    padding-top: 4px;
    color: #fff;
    cursor: pointer;
}

.main-channelbar.no-arrow {
    padding-left: 12px;
    cursor: default;
}


.available-channelbar-wrap {
    position: relative;
}

.available-channelbar {
        background-color: #2f8efe;
        background: url(../images/available-bar-bg.png);
}

.available-channelbar:hover {
        background: none;
        background-color: #2f8efe;
}

.downloaded-channelbar {
        background-color: #15ae12;
        background: url(../images/downloaded-bar-bg.png);
}

.downloaded-channelbar:hover {
        background: none;
        background-color: #15ae12;
}

.downloading-channelbar {
        background: #DF6c0d url(../images/downloading-bar-bg.png);
}

.downloading-channelbar:hover {
        background-color: #FF8c2d;
}

.main-channelbar.seeding-channelbar {
        background-image: url("../images/download-channelbar-bg.png");
}

a.download-bar-action {
    float: right;
    font-size: 10px;
    color: #fff;
    margin: 2px 12px 0px 0px;
}

a.download-bar-action:hover {
    text-decoration: underline;
}

.clear-completed-link {
    text-decoration: underline; 
    margin-left: 15px; 
    font-weight: normal;
    color: #fff;
    font-size: 11px;
    margin-top: -1px;
}

/* triangle for the bars */
.triangle {
    background: url(../images/triangle-right.png) no-repeat left top;
    float: left;
    width: 15px;
    height: 16px;
    margin: 4px 1px 0px 8px;
}

.triangle.down {
    background: url(../images/triangle-down.png) no-repeat left top;
}

/* The N more videos oval */
.main-notification {    
    float: left;
    display: block;
    height: 24px;
    background: url(../images/main-notification-bg.png) no-repeat left top;
    padding: 3px 0px 0px 20px;
    margin: 15px 0px 12px 35px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
}
.main-notification-right {  
    float: left;
    display: block;
    width: 20px;
    height: 24px;
    margin: 15px 0px 12px 0px;
    text-decoration: none;
    background: url(../images/main-notification-right.png) no-repeat right top;
    overflow: hidden;
}


/* Used in playlist and playlist-folder */
.playlist-end-drag-hitbox {
    height: 10px;
    width: 100%;
}
.playlist-end-drag-hitbox.drag-highlight {
    border-top: 1px solid #0752d7;
}

/* used in search view */
.search-message {
    font-size: 28px;
    color:      #666;
    text-align: center;
    margin-top: 50px;
}

.search-results-bar {
    font-size: 18px;
    color: white;
    background: #056de1;
    padding: 5px 10px;
    height: 22px;
    text-align: center;
}

#results-text {
    float: left;
}

/* Around  the "empty folder" message */
.channel-blank {
    text-align: center;
    margin-top: 110px;
    padding: 30px;
}
.channel-message {
    font-size: 28px;
    color:      #666;
    text-align: center;
    margin-top: 50px;
    font-weight: bold;
}
.channel-message.small {
    font-size: 20px;
    margin-top: 20px;
    font-weight: normal;
}
.drag-highlight .channel-message {
    color: #0752d7;
}

/* used in multi-channel */
body.gray-background {
    background-color: #f7f7f7;
}
.button-zone-two {
    margin: 0 auto 0 auto;
    text-align: center;
    width: 500px;
}
.button-zone-one {
    margin: 0 auto 0 auto;
    text-align: center;
    width: 270px;
}
.gray-button-wrap {
    margin-right: 10px;
    float: left;
}
.gray-button-bg {
    background: url(../images/graybutton-mid.png) top left repeat-x;
    margin: 0 8px;
    height: 31px;
    cursor: pointer;
    margin: auto;
    width: 240px;
}
.gray-button-left {
    background: url(../images/graybutton-left.png) top left no-repeat;
    width: 8px;
    height: 31px;
    float: left;
}
.gray-button-right {
    background: url(../images/graybutton-right.png) top left no-repeat;
    width: 8px;
    height: 31px;
    float: right;
}
.gray-button-content {
    padding-top: 8px;
}

/* Everything below is used in download-item */
.main-video {
    border-top: 1px solid #f0fcfe;
    border-bottom: 1px solid #d5ddea;
    background: url(../images/main-video-bg.png) repeat-x #e5edf5;
    height: 90px;
    width: 100%;
    position: relative;
}

.main-video.more-info {
    height: auto;
}

/* This is the line that appears when you reorder items. When
an element is dragged, the drag-highlight class is added to it */
.main-video .dnd-reorder-line {
        position: absolute;
        top: -1px;
        height: 2px;
        width: 100%;
        background: #0752d7;
        display: none;
}
.main-video.drag-highlight .dnd-reorder-line {
    display: block;
}

/* These change the background based on whether or not it's selected */
.main-video.selected 
{
    background: #5E8BDE url(../images/main-video-bg-selected.png) repeat-x left top;
    color: black; 
}

.main-video.selected {
    border-top: 1px solid #d5ddff;
    border-bottom: 1px solid #8fc1f7;
}

.main-video.selected-inactive, .main-video-details.selected-inactive  {
    background: #ccc;
}

.main-video-tnail {
    position: absolute;
    left: 5px;
    top: 3px;
    width: 108px;
    height: 81px;
    border: 1px solid #fff;
}

.selected .main-video-tnail {
    border: 2px solid #0067DF;
    position: absolute;
    left: 4px;
    top: 2px;
}


.more-info .main-video-tnail {
    width: 226px;
    height: 170px;
}

.main-video-desc {
    position: relative;
    margin-left: 122px;
    padding-right: 19px;
    padding-top: 5px;
    height: 84px;
    overflow: hidden;
    border-right: 1px solid #e1e9f6;
    margin-right: -1px; /* Make the border overlap with main-video-details */
}

.more-info .main-video-desc {
    margin-left: 240px;
    height: auto;
    min-height: 175px;
}

.main-video-desc h1 {
    margin: 0px;
    padding: 0px;
    font-size: 13px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    height: 18px;
    overflow: hidden;
}

.main-video-desc div {
    font-size: 11px;
    line-height: 15px;
}

.main-video-desc-desc {
    color: #222;
    height: 63px;
    overflow: hidden;
}

.more-info .main-video-desc-desc {
    height: auto;
}

.main-video-bottom { 
    position: absolute;
    left: 0px;
    width: 100%;
    bottom: 0px;
    /* 
     * Make the main-video-bottom cover the description.  We need to set the
     * background to do this, otherwise both will show.  This is sort of a
     * hack -- it works because more-info is not set, so main-video-bottom
     * will only be 1 line 
     */
    background: url(../images/main-video-bg.png) repeat-x;
    background-position: 0px -70px;
    font-size: 12px;
    padding: 4px 0px;
}

.selected .main-video-bottom { 
    background-image: url(../images/main-video-bg-selected.png);
}

.more-info .main-video-bottom {
    position: static;
    margin-top: 3px;
    background: none;
}

.donate-html {
    display: none;
}

.more-info .donate-html {
    margin-top: 5px;
    display: block;
}

.channel-title {
    text-align: right;
    color: #666;
    line-height: 130%;
    height: 1.3em;
    overflow: hidden;
    margin-right: 5px;
}

.hide-channel-title .channel-title {
    display: none;
}

.main-video.selected .main-video-desc h1, .main-video.selected .main-video-desc-desc, .main-video.selected .channel-title {
    color: black; 
}

.main-video-desc p {
    display: inline;
    padding: 0px;
    margin: 0px;
}
.main-video-desc p br {
    display: inline;
    padding: 0;
    margin: 0;
    height: 0;
}


.main-video-desc a:link, .main-video-desc a:active, .main-content a:link, .main-content a:active {
    color: #333;
    text-decoration: underline;
}

.main-video-desc a:hover, .main-content a:hover {
    color: #4181e0;
}

.main-video-desc a:visited, .main-content a:visited {
    color: #666666;
    text-decoration: underline;
}

.main-video.selected .main-video-desc a:link {
    color: black; 
}

.main-video-hitbox {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 108px;
    height: 81px;
}

.more-info .main-video-hitbox {
    width: 226px;
    height: 170px;
}

.main-video-hitbox a, .main-video-hitbox span {
    display: block;
    width: 100%;
    height: 100%;
}

.main-video-hitbox .icon {
    background: no-repeat bottom right;
}

.main-video-hitbox .download {
    background-image: url(../images/main-video-download.png);
}

.main-video-hitbox .paused-circle {
    background-image: url(../images/main-video-paused.png);
}

.main-video-hitbox .play {
    background-image: url(../images/main-video-play.png);
}

.main-video-hitbox .inprogress-background {
    background-image: url(../images/main-video-inprogress.png);
}

.main-video-hitbox .download-pending-icon {
    display: block;
    position: absolute;
    bottom: 7px;
    right: 7px;
    width: 15px;
    height: 15px;
}

.main-video-hitbox .inprogress-arrows {
    display: block;
    position: absolute;
    bottom: 3px;
    right: 5px;
    width: 19px;
    height: 19px;
}

.item-links {
    position: absolute;
    bottom: 4px;
}

.main-video-details {
    position: relative;
    float: right;
    width: 315px;
    height: 90px;
    padding: 0px 0 0 8px;
    border-left: 1px solid #e1e9f6;
}

.more-info .main-video-details {
    height: auto;
}

.main-video-details-main {
    position: relative;
    height: 75px;
}

.share-box {
    position: absolute;
    top: 26px;
    left: 2px;
}

.share-box .select-box-right {
    background-image: url(../images/share-right.png); 
}

.share-box .select-box-mid {
    margin-right: 21px;
}

.share-menu {
    position: absolute;
    top: 46px;
    z-index: 10;
}

.share-menu img {
    vertical-align: -3px;
    margin-right: 3px;
}


.details-buttons-right {
    float: right;
    margin-right: 8px;
}

.save-button-container {
    margin: 13px 0px;
    height: 17px;
}

.round-button-left {
    display: block;
    background: url(../images/round-button-left.png) top left no-repeat;
    padding-left: 7px;
}

.round-button-right {
    background: url(../images/round-button-right.png) top right no-repeat;
    padding-right: 7px;
}

.round-button-content {
    background: url(../images/round-button-mid.png) top left repeat-x;
    height: 11px;
    padding: 3px 0px;
    font-size: 9px;
    text-align: center;
}

a.round-button-left {
    text-decoration: none;
    color: #333;
}

.round-button-left.delete, .round-button-left.save {
    width: 54px;
}

/* See also download.css */
.round-button-left.stop-seeding {
    position: absolute;
    top: 47px;
    right: 95px;
    display: none;
}

.round-button-left.black {
    background-image: url(../images/black-button-left.png);
    width: 100px;
    padding-left: 13px;
}

.round-button-right.black {
    background-image: url(../images/black-button-right.png);
    padding-right: 13px;
}

.round-button-content.black {
    background-image: url(../images/black-button-mid.png);
}

a.round-button-left.black {
    color: #fff;
}


.saved-note {
    margin-top: 7px;
    font-size: 9px;
    color: #666;
    text-align: center;
}

.details-date {
    font-weight: bold;
}

.video-state {
    font-weight: bold;
    height: 18px;
    color: white;
    margin: 0 0 5px 0;
    position: absolute;
    top: 28px;
    right: 95px;
    font-size: 11px;
}

.video-state-left {
    background: left top no-repeat;
    height: 18px;
}

.video-state-right {
    background: right top no-repeat;
    height: 18px;
}

.video-state-mid {
    margin: 0px 5px;
    padding: 0px 4px 3px 4px;
    text-align: center;
    background: left top repeat-x;
}

.video-state.new .video-state-left {
    background-image: url(../images/badge-blue-left.png);
}

.video-state.new .video-state-right {
    background-image: url(../images/badge-blue-right.png);
}

.video-state.new .video-state-mid { 
    background-image: url(../images/badge-blue-mid.png);
}

.video-state.newly-downloaded .video-state-left {
    background-image: url(../images/badge-green-left.png);
}

.video-state.newly-downloaded .video-state-right {
    background-image: url(../images/badge-green-right.png);
}

.video-state.newly-downloaded .video-state-mid { 
    background-image: url(../images/badge-green-mid.png);
}


.small-button-left {
    background: left top no-repeat url(../images/small-button-left.png);
}

.small-button-right {
    background: right top no-repeat url(../images/small-button-right.png);
}

.small-button {
    background: left top repeat-x url(../images/small-button-middle.png);
    margin: 0px 3px;
    padding: 3px 3px;
    height: 17px;
}

a.small-button-left {
    display: block;
    font-size: 9px;
    color: #444;
    text-decoration: none;
}

a.small-button-left:hover {
    color: #000000;
    text-decoration: underline;
}

.white-button-left {
    background: top left no-repeat url(../images/white-button-left.png);
}

.white-button-right {
    background: top right no-repeat url(../images/white-button-right.png);
}

.white-button-middle {
    height: 20px;
    margin: 0px 13px;
    background: top left repeat-x url(../images/white-button-middle.png);
    padding-top: 3px;
    font-size: 11px;
}

.white-button-middle a:link {
    color: white;
    text-decoration: none;
}

.white-button-left.save-search-searchpage {
    float: left;
    margin-left: 8px;
    margin-top: 2px;
}

.white-button-left.save-search-channel {
    position: absolute;
    top: 65px;
    left: 230px;
    margin-right: 0px;
}


.more-info-details {
    font-size: 10px;
    margin-bottom: 4px;
    padding-right: 4px; 
}

.more-info-details h3 {
    font-size: 10px;
    margin: 0px;
}

.more-info-details a {
    color: #333;
}

.more-info-details table {
    width: 100%;
    margin: 0px;
}

.more-info-details td {
    vertical-align: top;
}

.more-info-details .label {
    width: 80px;
    margin-right: 10px;
}

.download-status-strings {
    font-size: 10px;
}

.main-video-details-download-info {
    position: absolute;
    top: 28px;
    left: 141px;
    right: 0px;
    height: 50px;
    font-size: 10px;
    overflow: hidden;
}

.main-video-details-expiring {
    position: absolute;
    top: 24px;
    right: 80px;
    width: 100px;
    text-align: right;
    color: #333;
}

.main-video-details-pending-auto, .main-video-details-failed-download {
    position: absolute;
    top: 48px;
    right: 20px;
    width: 200px;
    text-align: center;
    overflow: hidden;
}

.video-state.downloading, .video-state.paused {
    width: 130px;
    padding-top: 4px;
    padding-left: 5px;
}

.download-rate-and-eta {
    width: 159px;
}

.download-rate {
    float: right;
}

.main-video.selected .main-video-details-download-info {
    color: black;
}

.main-progress-bar-bg {
    width: 120px;
    height: 15px;
    margin: 1px 1px 2px 1px;
    background: url(../images/progress-bar-bg.png) no-repeat left top; 
}

.main-progress-bar {
    height: 15px;
    background: url(../images/progress-bar.png) no-repeat left top; 
}

.main-progress-throbber-bg {
    width: 120px;
    height: 15px;
    margin: 0px 0px 1px 0px;
    background: url(../images/progress-throbber-bg.png) no-repeat left top; 
}

.main-progress-throbber-bg img {
    margin: 1px;
    border: 0px;
}

.main-progress-cancel {
    display: block;
    position: absolute;
    top: 0px;
    left: 144px;
    width: 17px;
    height: 17px;
    background: url(../images/video-download-cancel.png) top left no-repeat;
}

.main-progress-pause, .main-progress-resume {
    display: block;
    position: absolute;
    top: 0px;
    left: 124px;
    width: 17px;
    height: 17px;
}
.main-progress-pause {
    background: url(../images/video-download-pause.png) top left no-repeat;
}

.main-progress-resume {
    background: url(../images/video-download-resume.png) top left no-repeat;
}
