/* =============================== LISTEN ============================== */
#listen-page > .pill-bar {
    margin-left: 2px;
    margin-top: 28px;
    margin-bottom: 62px;
}

#listen-page > .pill-bar > .help-btn{
    float: right;
}

#listen-page p{
    margin-left: 2px;
}

#listen-add-to-playlist-btn{
    margin-left: 8px;
    width: 58px;
    text-align: center;
    padding-left: 6px;
    border-left: 1px solid #e0e0e0;
    border-radius: 8px;
}

.added-to-playlist #listen-add-to-playlist-btn{
    border: 1px solid #e0e0e0;
}

#listen-page-title-box{
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 12px;
}

#listen-page-inner-box{
    background-color: #fff;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
}

#listen-page h1{
    display: inline-block;
    text-align: left;
    margin: 0 0 8px 1px;
    padding: 0 0 2px 40px;
    background-color: #fff;

    background-image: url('../img/dhamma-chakra.png?v=1.1');
    background-repeat: no-repeat;
    background-position-x: 0;
    background-position-y: 2px;
    background-position: 0 2px;
    background-size: 30px 30px;
}

#listen-page h2{
	font-size: 15px;
	font-weight: normal;
	color: #555;
	padding: 3px 0 18px 40px;
    margin-bottom: 0;
}

#listen-page-contents-box{
    background-color: #fff;
    position: relative;
    z-index: 100;
}

#listen-page .audio-player{
    position: relative;
    margin: 0 0 18px 0;
    width: 100%;
    height: 56px;
}

#listen-page-player-box{
    font-size: 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: visible;
    overflow-y: visible;
}

#listen-page-player-box::before{
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    right: 0;
    height: 18px;
    background-image: url('../img/gradient-white-horizontal.png');
    background-size: 100% 18px;
    background-repeat: no-repeat;
}

body.listen-notes-expanded #wrapper{
    padding-top: 0;
}

#listen-page-player-box > .pill-bar{
    margin-top: 19px;
}

#listen-page-player-box .pill-oval{
    position: relative;
    height: 40px;
}

#listen-page-player-box .pill-oval:last-child{
    margin-left: 8px;
}

#listen-page-player-box .pill-oval > span{
    display: block;
    height: 28px;
    line-height: 28px;
    padding-left: 0;
    margin-top: 2px;
}

#listen-page-player-box .pill-oval > i{
    position: absolute;
    left: 2px;
    right: 0;
    top: 20px;
    margin: 0 auto;
    width: 20px;
    height: 10px;
    font-size: 12px;
    line-height: 14px;
    color: #888;
}

#listen-page-player{
    width: 100%;
    max-height: 48px;
    margin: 16px 0 0 0;
    outline: none;
    border-radius: 24px;
    background-color: #f7f7f7;
}

#listen-page-player:focus,
#listen-page-player:focus{
    outline: none !important;
    border: none !important;
}

#listen-page .pill.time{
    float: right;
    margin: 20px 18px 0 0;
    background-image: none;
}

#listen-page .pill.share{
	padding: 0px 10px;
    clear: both;
}

#listen-page-lower-items{
    background-color: #fff;
    z-index: 100;
}

.listen-tag-box{
    margin: 30px 0;
}

.listen-tag-box > .title{
    color: #555;
}

#listen-notes-box{
    position: relative;
    background-color: #fff8dc;
    border-radius: 6px;
    padding: 0 12px 12px 12px;
    margin-top: 22px;
    box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.018) inset;
    -webkit-box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.018) inset;
    -moz-box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.018) inset;
}

#listen-notes-tool-box{
    background-color: #fff8dc;
    line-height: 10px;
    z-index: 100;
    border-bottom: 1px solid #F0E9CF;
    min-height: 36px;
}

#listen-notes-tool-box::before{
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: -20px;
    height: 20px;
    background-color: #fff;
}

#listen-notes-tool-box > div{
    position: absolute;
    top: 5px;
    right: -6px;
}

#listen-notes-tool-box a{
    display: inline-block;
    background-color: #fff8dc;
    width: 26px;
    height: 26px;
    vertical-align: top;
    border-radius: 14px;
    text-align: left;
}

#listen-notes-tool-box a > i{
    display: block;
    width: 24px;
    height: 24px;
    color: #827E71;
    padding: 3px 0 0 0;
    text-align: center;
}

#listen-notes-tool-box .title{
    display: inline-block;
    color: #847E71;
    font-weight: bold;
    margin: 8px 0 0 2px;
    line-height: 26px;
    padding-right: 40px;
}

body.listen-notes-expanded #listen-notes-tool-box .title{
    display: none;
}

body.listen-notes-expanded #listen-notes-tool-box .title{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 100px;
}

#listen-notes-text-size-label{
    display: inline-block;
    width: 40px;
    height: 26px;
    text-align: center;
    vertical-align: top;
    border: none;
    font-size: 12px;
    line-height: 26px;
    color: #847E71;
}

a#listen-notes-expand-btn{
    margin-left: 8px;
}

a#listen-notes-text-size-reduce-btn,
#listen-notes-text-size-label,
a#listen-notes-text-size-increase-btn{
    display: none;
}

body.listen-notes-expanded,
body.listen-notes-expanded #listen-page-player-box,
body.listen-notes-expanded .pill-bar > .pill,
body.listen-notes-expanded .pill.time,
body.listen-notes-expanded #listen-page-lower-items,
body.listen-notes-expanded #listen-page-inner-box,
body.listen-notes-expanded #listen-notes-tool-box::before,
body.listen-notes-expanded #listen-page-player-box::before{
    background: #fff8dc !important;
    border-color: #E2DBC3;
}

body.listen-notes-expanded #listen-page-player-box{
    border-bottom: none;
}

body.listen-notes-expanded #listen-notes-box{
    margin-top: 0;
}

body.listen-notes-expanded #listen-notes-content{
    color: #524e46;
}

body.listen-notes-expanded a#listen-notes-text-size-reduce-btn,
body.listen-notes-expanded #listen-notes-text-size-label,
body.listen-notes-expanded a#listen-notes-text-size-increase-btn{
    display: inline-block;
}

body.listen-notes-expanded #listen-page > .pill-bar,
body.listen-notes-expanded #listen-page-title-box,
body.listen-notes-expanded .listen-tag-box,
body.listen-notes-expanded #listen-page .download-bar{
    display: none;
}

body.listen-notes-expanded #listen-notes-tool-box > div > a{
    border: 1px solid #E2DBC3;
}

body.listen-notes-expanded #listen-notes-tool-box > div > a#listen-notes-expand-btn{
    background-color: #827E71;
    border-color: #827E71;
}

body.listen-notes-expanded #listen-notes-expand-btn > i{
    display: inline-block;
    color: #fff8dc;
}

#listen-notes-content{
    line-height: 1.6;
    color: #847E71;
    padding-top: 16px;
}

#listen-notes-content.font-size-1{ font-size: 0.7em; }
#listen-notes-content.font-size-2{ font-size: 0.75em; }
#listen-notes-content.font-size-3{ font-size: 0.8em; }
#listen-notes-content.font-size-4{ font-size: 0.9em; }
#listen-notes-content.font-size-5{ font-size: 1em; }
#listen-notes-content.font-size-6{ font-size: 1.25em; }
#listen-notes-content.font-size-7{ font-size: 1.5em; }
#listen-notes-content.font-size-8{ font-size: 2em; }
#listen-notes-content.font-size-9{ font-size: 4em; }

#listen-error{
    text-align: center;
    margin-top: 120px;
}

#listen-error > a,
#listen-error > a:hover,
#listen-error > a:active{
    color: #bf8412;
    font-size: 12px;
}