/* needed for IE’s buggered margin-collapsing */
#library #taste,
#library #noobWelcome {
    margin-top: 0;
    padding-top: 0;
}

#libraryPagehead {
    margin-bottom: 0;
    overflow: hidden;
}

#libraryTop {
    margin: 10px 0 15px 0;
}

#libraryTopWrapper {
    margin-top: 10px;
    position: relative;
    min-height: 27px;
}

* html #libraryTopWrapper {
    overflow: visible;
    height: 1%;
}

#libraryNavigation {
    display: block;
    text-align: center;
    border-bottom: solid 1px #e7e7e7;
    line-height: 26px;
    overflow: hidden;
    zoom: 1;
}

#libraryNavigation li {
    height: 26px;
    float: left;
    background: url(http://cdn.last.fm/flatness/library/library_tab_right_inactive.png) no-repeat right top;
}

#libraryNavigation a {
    float: left;
    padding: 0 10px 0 10px;
    height: 26px;
    background: url(http://cdn.last.fm/flatness/library/library_tab_left_inactive.png) no-repeat left top;
}

#libraryNavigation .current {
    background: url(http://cdn.last.fm/flatness/library/library_tab_right.png) no-repeat right top;
    height: 27px;
    margin-bottom: -1px;
}

#libraryNavigation .current a {
    background: url(http://cdn.last.fm/flatness/library/library_tab_left.png) no-repeat left top;
    height: 27px;
}

#libraryNavigation img {
    vertical-align: middle;
    margin-left: -3px;
}

* + html #libraryNavigation img {
    vertical-align: middle;
}

#librarySubNav {
    font-size: 11px;
    line-height: 1.636364em;
    margin: 1em 0;
    text-align: right;
}

#librarySubNav span.current a {
    color: #000;
}

/* liberry */

ul.libraryItems a.remove {
    position: absolute;
    right: 5px;
    top: 7px;
    display: none;
}

ul.libraryItems li:hover a.remove {
    display: block;
}

/* top */

#libraryTopWrapper h2 {
    color: #000;
}

#libraryTopWrapper .thinkGlobal {
    font-size: 11px;
    line-height: 1.181818em;
    color: #696969;
    clear: both;
}

#libraryBreadcrumb {
    float: left;
}

#library #itemTags {
    text-align: right;
    overflow: hidden;
}

#library #itemTags p.userTags {
    float: right;
    padding-left: 20px;
    position: relative;
}

#library #itemTags p.allTags {
    float: right;
    font-size: 11px;
    clear: both;
}

#library #itemTags p.allTags a#addTags {
    border-right: solid 1px #0187c5;
    padding-right: 0.25em;
}

#library div.tagTop .pagination {
    margin-right: -315px;
    display: inline;
}

/* pagination */

#library .ajaxpagination {
    position: relative;
    text-align: center;
    color: #696969;
    margin-bottom: 15px;
    padding-top: 9px;
    height: 20px;
}

#library .ajaxpagination ul,
#library .ajaxpagination li {
    display: inline;
}

.ajaxpagination a.previousPage,
.ajaxpagination a.nextPage {
    display: block;
    width: 29px;
    height: 29px;
    position: absolute;
    text-indent: -9999px;
    font-size: 0;
    line-height: 0;
}

.ajaxpagination a.previousPage {
    bottom: 0;
    left: 0;
    background: url(http://cdn.last.fm/flatness/library/album_left_onhover.png) center no-repeat transparent;
}

.ajaxpagination a.previousPage:hover {
    background: url(http://cdn.last.fm/flatness/library/album_left_onhover.png) center no-repeat transparent;    
}

.ajaxpagination a.previousPage:active {
    background: url(http://cdn.last.fm/flatness/library/album_left_onpress.png) center no-repeat transparent;
}

.ajaxpagination a.nextPage {
    bottom: 0;
    right: 0;
    background: url(http://cdn.last.fm/flatness/library/album_right_onhover.png) center no-repeat transparent;
}

.ajaxpagination a.nextPage:hover {
    background: url(http://cdn.last.fm/flatness/library/album_right_onhover.png) center no-repeat transparent;    
}

.ajaxpagination a.nextPage:active {
    background: url(http://cdn.last.fm/flatness/library/album_right_onpress.png) center no-repeat transparent;
}

* html .ajaxpagination a.previousPage {
    background: transparent !important;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.last.fm/flatness/library/album_left_onhover.png', sizingMethod='crop');
    cursor: pointer;
}

* html .ajaxpagination a.nextPage {
    background: transparent !important;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.last.fm/flatness/library/album_right_onhover.png', sizingMethod='crop');
    cursor: pointer;
}

.ajaxpagination form {
    display: inline;
    margin-left: 15px;
}

.ajaxpagination p {
    display: inline;
    margin-left: 15px;
}

.ajaxpagination p .current {
    color: #000;
    font-weight: bold;
}

/* table of items */

#library table td.tagged,
#library table td.taggedCell {
    padding-left: 0;
    padding-top: 5px;
}

#library table td.date {
    width: 11em;
}

#library table tr:hover .goto {
    visibility: visible;
}

/* big tables for recently added, loved and banned */

#library table.big div.resource {
    margin: 0;
    background: transparent;
    padding: 0;
}

#library table.big .artist .subjectCell,
#library table.big .album .subjectCell {
    padding-left: 54px;
}

#library table.big .subjectCell a {
    color: #696969;
}

#library table.big .subjectCell a.primary {
    color: #000;
}

#library table.big .subjectCell a:hover {
    color: #0187c5;
}

#library table.big .subjectCell .resImage {
    float: left;
    display: inline;
    margin-left: -44px;
    padding: 1px;
    border: 1px solid #ccc;
}

#library table.big .subjectCell .playbutton img {
    margin: 0 2px -4px 0;
}

#library table.big .indicatorCell {
    padding-top: 8px;
    padding-bottom: 0;
    width: 15px;
    text-align: right;
}

#library table.big .indicatorCell img {
    margin: 0 0 5px 0;
}

/* list stuff */

#library .artistsLarge .letter {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    display: block;
    width: 32px;
    height: 49px;
    background: url(http://cdn.last.fm/flatness/library/letter_flag.png) left top;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
}

* html #library .artistsLarge .letter {
    background: transparent !important;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.last.fm/flatness/library/letter_flag.png', sizingMethod='crop');
}

/* albumstrip */

#content {
    overflow: hidden;
}

#albumstrip {
    font-size: 11px;
    line-height: 1.181818em;
    margin-top: 15px;
}

* html #albumstrip {
    overflow-x: auto;
    overflow-y: visible;
    zoom: 1;
    width: 100%;
    position: relative;
    height: 158px;
}

#albumstrip h3 {
    margin: 0;
    padding: 0;
    text-align: center;
    overflow: visible;
    border-top: 1px solid #ccc;
}

#albumstrip h3 a {
    background: url(http://cdn.last.fm/flatness/library_heading_gradient.png) left top repeat-x;
    border: solid 1px #bbb;
    color: #000;
    padding: 3px 10px 5px 10px;
    position: relative;
    top: -8px;
    left: 0;
    z-index: 2;
}

* html #albumstrip h3 a {
    display: inline-block;
    top: -12px;
}

* + html #albumstrip h3 a {
    display: inline-block;
    top: -12px;
}

#albumstrip h3 a:active,
#albumstrip h3.current a {
    background: url(http://cdn.last.fm/flatness/library_heading_gradient_active.png) left top repeat-x;
    border: solid 1px #bbb;
}

#albumstrip div.wrapper {
    overflow: auto;
}

* html #albumstrip div.wrapper {
    overflow: visible;
}

#albumstrip ul {
    overflow: hidden;
    height: 126px;
}

#albumstrip li {
    float: left;
    display: inline;
    position: relative;
    height: 126px;
    width: 126px;
}

#albumstrip li a {
    display: block;
    padding: 5px 5px 7px 5px;
    height: 114px;
    width: 116px;
    color: #000;
    text-align: center;
}

#albumstrip li a:hover,
#albumstrip li.selected a {
    color: #0187c5;
}

#albumstrip .albumCover {
    margin: 3px auto;
}

#albumstrip li a.remove {
    display: none;
    padding: 0;
    height: auto;
    width: auto;
    position: absolute;
    right: 33px;
    top: 13px;
}

#albumstrip li:hover a.remove {
    display: block;
}

/* with JS */

#albumstrip.js {
    position: relative;
    zoom: 1;
    width: auto;
}

* html #albumstrip.js {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
}

#albumstrip.js div.wrapper {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    height: 126px;
    overflow: hidden;
    zoom: 1;
}

#albumstrip.js a.leftButton,
#albumstrip.js a.rightButton {
    display: block;
    width: 40px;
    height: 136px;
    position: absolute;
}

#albumstrip.js a.leftButton {
    top: 0;
    left: 0;
    background: url(http://cdn.last.fm/flatness/library/album_left_rest.png) center no-repeat transparent;
}

#albumstrip.js a.leftButton:hover {
    background: url(http://cdn.last.fm/flatness/library/album_left_onhover.png) center no-repeat transparent;    
}

#albumstrip.js a.leftButton:active {
    background: url(http://cdn.last.fm/flatness/library/album_left_onpress.png) center no-repeat transparent;
}

* html #albumstrip.js a.leftButton {
    top: 48px;
    height: 40px;
    background: transparent !important;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.last.fm/flatness/library/album_left_rest.png', sizingMethod='crop');
    cursor: pointer;
}

#albumstrip.js a.rightButton {
    top: 0;
    right: 0;
    background: url(http://cdn.last.fm/flatness/library/album_right_rest.png) center no-repeat transparent;
}

#albumstrip.js a.rightButton:hover {
    background: url(http://cdn.last.fm/flatness/library/album_right_onhover.png) center no-repeat transparent;
}

#albumstrip.js a.rightButton:active {
    background: url(http://cdn.last.fm/flatness/library/album_right_onpress.png) center no-repeat transparent;
}

* html #albumstrip.js a.rightButton {
    top: 48px;
    height: 40px;
    background: transparent !important;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.last.fm/flatness/library/album_right_rest.png', sizingMethod='crop');
    cursor: pointer;
}

#albumstrip.js ul {
    position: absolute;
    top: 0;
    left: 0;
}

#noTagsMessage {
    margin: 30px 5px 0 5px;
}

/* pagination */

#pages {
    overflow: hidden;
    background: #fff;
    position: relative;
    width: 100%;
}

#pages ul {
    padding-top: 10px;
    margin-right: -10px;
}

/* max width would be 770px if we want */
#pages .wrapper {
    position: relative;
    overflow: visible;
    margin: 0 auto;
    background: #fff;
}

#pages .page {
    position: relative;
    top: 0;
    background: #fff;
    width: 100%;
}

/* tags */

#library .cloud {
    min-height: 400px;
}

/* remove from library */

#removeFromLibraryForm {
    border-top: solid 1px #D51007;
    border-bottom: solid 1px #D51007;
    background: #f5f5f5;
    padding: 5px 15px 10px 15px;
    margin: 15px -15px 20px -15px;
}

#removeFromLibraryForm p {
    margin: 0 0 10px 0;
    max-width: 36em;
    color: #D51007;
}
