html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-flow: column;
}

.smaller {
    font-size: 0.8em;
}

.fs-55 {
    font-size: 1.12em;
}

.box-shadow-header {
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 8%);
}

.head-title {
    font-size: 22px;
    margin-bottom: 0;
}

.head-subtitle {
    font-size: 12px;
    color: #666;
}

.head-uploader {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.coauthor-desc {
    position: absolute;
    background: #fff;
    border: 1px solid #fc7398;
    border-radius: 2px;
    display: inline-block;
    font-size: 12px;
    color: #fc7398;
    padding: 0 3px;
    top: -9px;
    right: 0px;
    white-space: nowrap;
    opacity: 0.8;
}

.d-flex-normal {
    display: flex;
}

.collapse-comments {
    transition: none !important;
}

.song-list-author {
    border-bottom: 1px solid white;
}

    .song-list-author:hover {
        border-bottom: 1px solid #FCC;
    }

.song-list-link-text {
    border-bottom: 1px solid white;
}

.song-list-link:hover .song-list-link-text {
    border-bottom: 1px solid #FCC;
}

.collapser:not(.collapsed) .show-non-collapsed {
    display: inline-block;
}

.collapser.collapsed .show-non-collapsed {
    display: none;
}

.collapser:not(.collapsed) .show-collapsed {
    display: none;
}

.collapser.collapsed .show-collapsed {
    display: inline-block;
}

.head-comment {
    font-size: 12px;
    line-height: 18px;
    white-space: pre-line;
    color: #888;
}

.top-comment-info {
    font-size: 12px;
    color: #888;
}

.like {
    color: #505050;
}

    .like i {
        color: #757575;
        width: 22px;
    }

    .like.on i {
        color: #00a1d6;
    }

    .like:hover i {
        color: #00a1d6;
    }

    .like:hover {
        color: #00a1d6;
    }

    .like.on {
        color: #00a1d6;
    }

.segment-line {
    height: 0;
    border-bottom: #ddd 1px solid;
    margin: 5px 0;
}

.aplayer {
    margin: 10px 0;
}

#lrc p {
    font-size: 20px;
    line-height: 45px;
    transition: all 0.3s ease-out;
    margin: 0;
    padding: 0;
    text-align: center;
    color: rgb(100,149,237);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin: auto;
    width: min-content;
    white-space: nowrap !important;
}

    #lrc p.current {
        font-size: 27px;
        color: orange !important;
    }

#lrc.cangtou p.shown span:first-of-type {
    color: orange;
    margin-right: 0.125em;
}

#lrc p.current span {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, orange 68%, blue 70%);
}

#lrc p:not(.current):not(.shown) span.blur {
    color: transparent;
    text-shadow: 0 0 10px rgba(100,149,237,0.8);
}

#lrc p span {
    /*transition: all 0.2s;*/
}

#lrc p.current span.enlarge {
    transition: all 0.2s;
    font-size: 36px;
    margin-right: 5px;
}


#lrc p span.replaceby {
    margin-left: -1em;
    transition: opacity linear 1s;
    opacity: 0;
    z-index: 2;
}

#lrc p.shown span.replaceby {
    opacity: 1;
    color: orange;
}

#lrc p.shown span.replace {
    opacity: 1;
    transition: opacity linear 1s;
}

#lrc p.shown span.replace {
    opacity: 0;
}

#lrc p span.glow.current {
    -webkit-animation: glow 0.5s ease-out;
    -moz-animation: glow 0.5s ease-out;
    animation: glow 0.5s ease-out;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #e67300, 0 0 4px #e67300, 0 0 5px #e67300, 0 0 6px #e67300, 0 0 7px #e67300;
  }
  to {
    text-shadow: 0 0 60px #fff0, 0 0 80px #ffa64d00, 0 0 100px #ffa64d00, 0 0 120px #ffa64d00, 0 0 140px #ffa64d00, 0 0 160px #ffa64d00, 0 0 180px #ffa64d00;
  }
}

#audio-container {
    display: flex;
    flex-flow: column;
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    /*height: 100%;*/
    /*background: #fff;*/
    padding: 0 10px;
}

#aplayer {
    flex: 0 0 auto;
}

#lrc-container-outer {
    flex: 1 1 auto;
    overflow: hidden;
    margin: 0 -10px;
}

#lrc-container {
    width: 100%;
    height: 100%;
    background-color: #fff4f4;
    margin-bottom: 0.5em;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #fff 5% 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #fff 5% 95%, transparent 100%);
}


/* lrc editor */
#lrc-editor {
    margin-bottom: 0.5em;
    flex: 1 1 auto;
    overflow-y: scroll;
}

.split-lyrics {
    margin-right: 4px;
}

    .split-lyrics:nth-child(2n) {
        background-color: #9fcfff;
    }

    .split-lyrics:nth-child(2n+1) {
        background-color: #faae9b;
    }

.active-lyrics {
    border-left: #d00 solid 4px;
}



#lrc {
    padding-top: 2em;
    padding-bottom: 20em;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #a8bbbf;
    }

/* Sets the containers height and width */
.base-timer {
    height: 30px;
    width: 30px;
    position: relative;
    margin-right: -30px;
    margin-top: -30px;
    margin-bottom: -30px;
    left: -37px;
    top: 16px;
    display: inline-block;
    line-height: 45px;
    /*vertical-align: text-top;*/
    opacity: 0;
    transition: opacity 1s;
}

/* Removes SVG styling that would hide the time label */
.base-timer__circle {
    fill: none;
    stroke: none;
}

.base-timer__path-remaining {
    /* Just as thick as the original ring */
    stroke-width: 15px;
    stroke: #d8d8d8;
    /* Rounds the line endings to create a seamless circle */
    /* stroke-linecap: round; */
    /* Makes sure the animation starts at the top of the circle */
    transform: rotate(90deg);
    transform-origin: center;
}

.base-timer__svg {
    /* Flips the svg and makes the animation to move left-to-right */
    transform: scaleX(-1);
    vertical-align: super;
}

.btn.btn-half-light {
    color: #000;
    background-color: #eee;
    border-color: #eee;
}


/* Bilibili Level */

.level {
    display: inline-block;
    width: 19px;
    height: 9px;
    vertical-align: middle;
    background: url(/static/icons-comment.png) no-repeat;
}

    .level.l0 {
        background-position: -23px -28px;
    }

    .level.l1 {
        background-position: -23px -92px;
    }

    .level.l2 {
        background-position: -23px -156px;
    }

    .level.l3 {
        background-position: -23px -220px;
    }

    .level.l4 {
        background-position: -23px -284px;
    }

    .level.l5 {
        background-position: -23px -348px;
    }

    .level.l6 {
        background-position: -23px -412px;
    }

    .level.l7 {
        background-position: -23px -476px;
    }

    .level.l8 {
        background-position: -23px -540px;
    }

    .level.l9 {
        background-position: -23px -604px;
    }


@media (min-width: 992px) {
    .row-gap-lg-2 {
        row-gap: .5em;
    }
}


/* form helpers */
.input-hidden {
    height: 0;
    width: 0;
    visibility: hidden;
    padding: 0;
    margin: 0;
    float: right;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 10px 1fr;
}

.gutter-col {
    grid-row: 1/-1;
    cursor: col-resize;
    background-image: url(https://split.js.org/vertical.png);
}

.gutter-col-1 {
    grid-column: 2;
}

.gutter-col,
.gutter-row {
    background-color: rgb(229, 231, 235);
    background-repeat: no-repeat;
    background-position: 50%;
}

a[target="_blank"]:not(.blank)::after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin: 0 3px 0 3px;
    opacity: 0.5;
}

.overflow-y-scroll {
    overflow-y: scroll;
}


/* Sticker */

.sticker-wrapper {
    position: absolute;
    height: 133px;
    width: 133px;
}

.lion-sticker-1 {
    background: url(/static/lion_sticker1_sm.png);
    height: 133px;
    width: 133px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    z-index: -1;
    opacity: 0.1;
}


@-webkit-keyframes rotate-inf {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate-inf {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotate-inf {
    -webkit-animation: rotate-inf 60s linear infinite;
    -moz-animation: rotate-inf 60s linear infinite;
    -ms-animation: rotate-inf 60s linear infinite;
    -o-animation: rotate-inf 60s linear infinite;
    animation: rotate-inf 60s linear infinite;
}

.paused .rotate-inf {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
}


/* Search bar */
.search-filter-input {
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    padding: 0.2em 0;
    outline: 0 !important;
    color: #555;
}

    .search-filter-input::-webkit-input-placeholder {
        font-size: x-small;
    }

    .search-filter-input::-moz-placeholder {
        font-size: x-small;
    }

    .search-filter-input:-moz-placeholder {
        font-size: x-small;
    }

    .search-filter-input:-ms-input-placeholder {
        font-size: x-small;
    }

    .search-filter-input ~ .focus-border {
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #8fc7ff;
        transition: 0.4s;
    }

    .search-filter-input:focus ~ .focus-border {
        width: 100%;
        transition: 0.4s;
    }

/*#region SONG_STATION */
.bg-eee {
    background-color: #eee !important;
}

.ss-tools button {
    padding: 2px 4px;
    font-size: 0.75em;
    width: max-content;
}

.song-station-icon {
    display: inline-block;
    color: #FFF;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 3px;
}

    .song-station-icon.sc30 {
        background-color: #2a60b2;
    }

    .song-station-icon.sc50 {
        background-color: #427d9e;
    }

    .song-station-icon.sc100 {
        background-color: #e2b52b;
    }

    .song-station-icon.sc500 {
        background-color: #e09443;
    }

    .song-station-icon.sc1000 {
        background-color: #e54d4d;
    }

    .song-station-icon.sc2000 {
        background-color: #ab1a32;
    }

    .song-station-icon.jz {
        color: transparent;
        background: url(/static/ss/jz.webp) no-repeat;
        background-size: 100%;
        color: transparent;
        background-position: 50% 50%;
    }

    .song-station-icon.td {
        color: transparent;
        background: url(/static/ss/td.webp) no-repeat;
        background-size: 100%;
        color: transparent;
        background-position: 50% 50%;
    }

    .song-station-icon.zd {
        color: transparent;
        background: url(/static/ss/zd.webp) no-repeat;
        background-size: 100%;
        color: transparent;
        background-position: 50% 50%;
    }
/*#endregion */


.nav-borderbar .nav-link {
    position: relative;
    padding: .25em .5em;
    color: #212529;
    margin: 0 .25em;
    cursor: pointer;
}

    .nav-borderbar .nav-link.active {
        color: #48c;
    }

    .nav-borderbar .nav-link::after {
        content: '';
        position: absolute;
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: #6bf;
        bottom: -6px;
        opacity: 0;
        transition: all 0.4s;
    }

    .nav-borderbar .nav-link.active::after {
        bottom: 0px;
        opacity: 1;
        transition: all 0.4s;
    }
