:root {
    --smooth-animation: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    padding: 0;
    margin: 0;

    padding-bottom: 2rem;

    background: #0D1116;
    color: white;

    overflow-x: hidden;

    font-family: "EB Garamond", "FangZhengXiaoBiaoSong", serif;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;

    -webkit-user-drag: none;
}

*::selection {
    background: rgba(0, 179, 255, 0.1);
    color: #fff;
}

::-webkit-scrollbar {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.center-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.header-gradient-container {
    background: linear-gradient(180deg, rgba(13, 17, 22, 0) 63.32%, #0D1116 100%), linear-gradient(255.35deg, #1A1F24 5.23%, #06090E 93.99%);


    background-position: center;
    background-size: cover;

    width: 100vw;
    height: 100vh;
}




.header-gradient-container .absolute {
    position: relative;
    z-index: 0;

    height: 100%;
    width: 100%;
}

img[alt=Preview] {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 1s;

    filter: blur(5px);
}

.header-image-motional {

    pointer-events: none;

    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 0;
    width: 100%;
    height: 105%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;


    &.webp-1 {
        background-image: url(./assets/images/home/1.webp);
    }

    &.webp-2 {
        background-image: url(./assets/images/home/2.webp);
    }

    &.webp-3 {
        background-image: url(./assets/images/home/3.webp);
    }

    &.webp-4 {
        background-image: url(./assets/images/home/4.webp);
    }

    &.webp-5 {
        background-image: url(./assets/images/home/5.webp);
    }

    &.webp-6 {
        background-image: url(./assets/images/home/6.webp);
    }

    &.webp-7 {
        background-image: url(./assets/images/home/7.webp);
    }

    &.linear {
        height: 110%;
        background-image: linear-gradient(180deg, transparent 70%, #0D1116 98%);
    }
}

.absolute>.header {
    position: absolute;
    top: 70%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bold {
    font-weight: bold;
}

.h1 {
    font-size: 4rem;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.h15 {
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.h2 {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

h2.sub-title {
    font-size: 2.5em;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.nowrap {
    white-space: nowrap;
}

.center {
    text-align: center;
}

p.section-body {
    font-size: 1.5rem;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 50%;
    margin: 0 auto;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    padding: 1rem 2rem;
    font-size: 1.25rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0);

    z-index: 9;

    transition: 1s var(--smooth-animation);

    * {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
    }

    .lefted * {

        transition: color 0.3s;

        color: rgba(255, 255, 255, 0.5);

        &:hover {
            color: rgba(255, 255, 255, 0.9);
        }
    }

    .lefted>span {
        margin: 0 .4rem;
    }

    .larger-size {
        font-size: 1.5rem;

        * {
            color: rgba(255, 255, 255, 0.9);

            &:hover {
                color: rgba(255, 255, 255, 1);
            }
        }
    }

    a {
        text-decoration: none;
    }

    .righted {
        -webkit-transform: translateY(3px);
        transform: translateY(3px);
        display: flex;
        align-items: center;
    }

    &.scrolled {
        backdrop-filter: blur(7px);
        padding: .5rem 2rem;
        padding-bottom: .6rem;

        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.range-set {
    position: relative;

    input[type="range"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.hidden {
    display: none;
}

label.musicToggleLabel {
    margin: 0 1.5rem;
    margin-left: 3rem;
    display: block;
    --size: 2.5rem;
    height: var(--size);
    width: var(--size);
    background-image: url(./assets/note-toggle.svg);
    background-size: 200%;
    background-repeat: no-repeat;
    background-position: 100% 0;

    position: relative;

    opacity: 0.7;

    transition: background-position 1s var(--smooth-animation), opacity 0.3s, transform 0.3s;

    &:hover {
        opacity: 0.9;
    }

    &::before {
        content: 'Try playing something';
        position: absolute;
        font-size: 1rem;
        top: 130%;
        left: 10%;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 7px;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        padding: .2rem .6rem;
        padding-bottom: .4rem;
        white-space: nowrap;
        background: #224e7137;
        transition: 1s var(--smooth-animation);

        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);

        opacity: 0;
    }

    &.hovered::before {
        opacity: 1;
        top: 150%;
    }
}

label[for=musicToggle]:hover {
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
}

#musicToggle:checked+label {
    background-position: 0 0;
}

.input-set {
    position: relative;
}

.nav input.search {

    font-family: "EB Garamond", serif;

    outline: none;
    padding: 3px 25px;
    border: none;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border-radius: 15rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);

    transition: border 0.3s, 1s var(--smooth-animation);

    &:hover {
        border: 1px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    &:focus {
        border: 1px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    &::placeholder {
        color: transparent;
    }
}

.input-set .placeholder {
    position: absolute;
    top: 50%;
    left: 25px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;

    &,
    * {
        color: rgba(255, 255, 255, 0.5);
        stroke: rgba(255, 255, 255, 0.5);
        transition: 1s var(--smooth-animation);
    }

    .icon * {
        -webkit-transform: translateY(7%);
        transform: translateY(7%);
        height: 1rem;
        width: 1rem;
    }
}

.nav .placeholder {
    mask-image: linear-gradient(270deg, #000000 0%, #000000 40%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);

    mask-size: 300%;
    mask-repeat: no-repeat;
    mask-position: 100% 0;
}

.nav input.search:hover+.placeholder {
    color: rgb(255, 255, 255, 0.7);
    mask-position: 70% 0;
}

.nav input.search:focus+.placeholder {
    mask-position: 60% 0;
}

.nav input.search:not(:placeholder-shown)+.placeholder {
    mask-position: 10% 0;
}

@media (max-width: 768px) {

    .nav .lefted,
    .nav .righted {
        display: none;
    }
}

.body {
    margin-top: 5%;
    z-index: 10;
}

.audio-card {

    --animation-open-duration: 3.5s;

    position: fixed;
    width: var(--width);

    display: block;
    bottom: 5%;
    left: 50%;

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);

    padding: .7rem 2.5rem;
    padding-right: 1rem;

    border-radius: 10rem;

    box-shadow: -6px -6px 26px rgba(255, 255, 255, .05),
        5px 10px 15px rgba(255, 255, 255, 0.06),
        15px 20px 35px rgba(255, 255, 255, 0.05),
        inset -2px -2px 2px rgba(255, 255, 255, 0.05),
        inset -1px -1px 3px rgba(255, 255, 255, .06),
        inset 2px 2px 8px rgba(255, 255, 255, .05),
        inset 1px 1px 8px rgba(255, 255, 255, .02),
        -6px -6px 26px rgba(255, 255, 255, .08);

    user-select: none;

    z-index: 100;

    transition: 1s var(--smooth-animation);

    backdrop-filter: blur(7px) sepia(0.1) saturate(1.1);
    -webkit-backdrop-filter: blur(7px) sepia(0.1) saturate(1.1);

    border: 1px solid rgba(255, 255, 255, 0.1);

    overflow: hidden;

    background: rgba(255, 255, 255, 0.05);

    .gray {
        max-height: 0;
    }


    * {
        white-space: nowrap;
        transition: 1s var(--smooth-animation);
    }
}

.audio-card.expanding {
    animation: audio-card-open var(--animation-open-duration) var(--smooth-animation);
}

.audio-card.unshown {
    opacity: 0;
    pointer-events: none;
}


.audio-card.expanded {

    width: var(--width);
    padding: .8rem 3rem;
    border-radius: 21px;

    .gray {
        max-height: 1.3rem;
    }

}

.audio-card-content {
    display: flex;
    align-items: center;
}


@keyframes audio-card-open {

    0% {
        border-radius: 10rem;
        padding: 0 0;
        max-height: 0;

        width: 30px;

        transform: translateY(100%) translateX(-50%) scale(1) !important;
    }

    30% {
        max-height: 30px;
        padding: 0 0;

        width: 30px;

        margin-bottom: 5rem;

        transform: translateY(50%) translateX(-50%) !important;

        transform: translateY(50%) translateX(-50%) scale(1.5);
    }

    100% {
        border-radius: 21px;
        padding: .8rem 3rem;
        max-height: 50px;

        transform: translateY(0) translateX(-50%) scale(1) !important;

    }
}

@keyframes audio-card-open-play-state {
    0% {
        right: 0.5px;
    }

    35% {
        right: 0.5px;
    }

    100% {
        right: 1.5rem;
    }
}

@keyframes audio-card-open-content {
    0% {
        opacity: 0;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.larger {
    font-size: 1.5rem;
    line-height: 1;
}

.gray {
    transition: 1s var(--smooth-animation);
    max-height: 1.3rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.5);
}

.audio-card .play-state {

    /* On right */

    position: absolute;
    right: 1.5rem;
    top: 50%;

    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);


    display: flex;
    justify-content: center;
    align-items: center;

    padding: .3rem;
    background: #008cff52;

    border-radius: 50%;

    cursor: pointer;

    z-index: 9;
}

.audio-card.expanding .play-state {
    animation: audio-card-open-play-state var(--animation-open-duration) var(--smooth-animation);
}

.audio-card .play-state .play-pause {

    transition: background 0.3s;

    background: url(./assets/icons/play.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 1.2rem;
    width: 1.2rem;

    -webkit-transform: translateX(.1rem);
    transform: translateX(.1rem);
}

.audio-card .play-state.playing {
    background: #008cff7b;
}

.audio-card .play-state.playing .play-pause {
    background: url(./assets/icons/pause.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 1.2rem;
    width: 1.2rem;
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
}

.audio-card .play-state:hover {
    background: #008cff96;

    .play-pause {
        -webkit-transform: scale(.95);
        transform: scale(.95);
    }
}

.audio-card.expanding .audio-card-content .lefted {
    animation: audio-card-open-content var(--animation-open-duration) var(--smooth-animation);
}

.audio-card .close {

    opacity: 0;
    pointer-events: none;

    transition: .3s;

    position: absolute;
    left: .3rem;
    top: .2rem;
    cursor: pointer;

    * {
        stroke: rgba(255, 255, 255, 0.2);
    }

    &:hover * {
        stroke: rgba(255, 255, 255, 0.5);
    }
}

.audio-card.expanded:not(.playing) .close {

    transition-delay: .3s;
    opacity: 1;
    pointer-events: all;
}

.blank-separator {
    height: 5rem;
    width: 100%;
}

.hr-separator {
    height: .5px;
    width: calc(100% - 6rem);
    background: rgba(255, 255, 255, 0.05);
    margin: 3rem;
    margin-top: 2rem;
}

.large-music-tag {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    margin-bottom: 1rem;

    background: var(--average-color, #f7fbff17);
    backdrop-filter: blur(11px);

    padding: .5rem 1rem;
    width: fit-content;

    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 17px;

    margin: 0 auto;

    box-shadow:
        -6px -6px 26px rgba(255, 255, 255, .08),
        5px 10px 15px rgba(0, 0, 0, .05),
        15px 20px 35px rgba(0, 0, 0, .05),
        inset -2px -2px 2px rgba(0, 0, 0, .05),
        inset -1px -1px 3px rgba(255, 255, 255, .06),
        inset 2px 2px 8px rgba(255, 255, 255, .02),
        inset 1px 1px 8px rgba(255, 255, 255, .02),
        -6px -6px 26px rgba(255, 255, 255, .08);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 1s var(--smooth-animation);

    gap: 2rem;
}

.album-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover>img {

    height: 5rem;
    width: 5rem;

    border-radius: 17px;
}

.album-title {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.album-year {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.large-music-tag .play {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 2rem;
    transition: 1s var(--smooth-animation);
}

.play-pause-music-card {
    background: #008cff7e;
    width: 2rem;
    height: 2rem;
    border-radius: 17px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s;

    .icon[data-icon="play"] {
        -webkit-transform: translateX(1.5px);
        transform: translateX(1.5px);
    }

    .icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    &:hover {
        background: #008cff96;
    }
}

.large-music-tag.playing {
    padding-left: 1.5rem;
    background: #9da9b617;
}

.large-music-tag.playing .play {
    max-width: 0;
    margin-right: 0;
}

@font-face {
    font-family: 'SF Pro Display';
    font-style: bold;
    src: url(/assets/sf-pro-display_bold.woff2);
}

@font-face {
    font-family: 'FangZhengXiaoBiaoSong';
    font-style: normal;
    src: url(/assets/fangzhengxiaobiaosong.ttf);
}

.sans {
    font-family: 'SF Pro Display', sans-serif;
}

.chinese-serif {
    font-family: 'FangZhengXiaoBiaoSong', 'FangSong', 'KaiTi', sans-serif;
}

.featured {
    font-size: .9rem;
    color: rgba(229, 229, 124, 0.5);

    &::before {
        content: '✮';
        margin-right: .1rem;
    }
}

.large-center-quote {
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
}

.songs {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    margin-top: 2rem;

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    row-gap: 1.5rem;

    flex-direction: row;

    justify-content: center;
    align-items: flex-start;
}

.songs>.song {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    overflow: hidden;
    padding: 2rem 2rem;

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: -2.5px -2.5px 5px rgba(255, 255, 255, 0.05),
        2.5px 2.5px 5px rgba(255, 255, 255, 0.025),
        inset 2.5px 2.5px 5px rgba(255, 255, 255, 0.05),
        inset -2.5px -2.5px 5px rgba(255, 255, 255, 0.025);

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.05);
    transition: 1s var(--smooth-animation);

    cursor: pointer;

    a {
        color: gray;
        height: 0;
        overflow: hidden;
        transition: 1s;
    }

    .album-cover>img {
        height: 12rem;
        width: 12rem;
        object-fit: cover;

        transition: 1s var(--smooth-animation);
    }

    .song-title {
        font-size: 1.5rem;
        color: white;
        margin-top: 1rem;


        transition: 1s var(--smooth-animation);
    }

    .song-year {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.5);
        margin: 0;

        a {
            color: rgba(255, 255, 255, 0.5);
        }
    }
}

span.unseen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;

    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.songs>.song:hover {
    -webkit-transform: scale(.99);
    transform: scale(.99);
}

.songs>.song.playing {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    padding: 1.5rem 0;
    padding-top: 0;


    z-index: 10;
    border: 1px solid var(--average-color);

    border-radius: 21px;

    a {
        height: 25px;
    }

    .song-title {
        margin-top: .8rem;
    }

    &:hover {
        -webkit-transform: scale(1.04);
        transform: scale(1.04);
    }

    img {
        height: 16rem;
        width: 16rem;
    }
}

.footer {
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 4rem;

    display: flex;
    flex-direction: column;

    gap: 5rem;

    a {
        color: rgba(255, 255, 255, 0.5);
    }

    .white {
        color: white;
        font-size: 1.5rem;
    }

    .top {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        .left {
            font-size: 2rem;
        }

        .right {
            display: flex;
            flex-direction: row;
            gap: 2rem;
            justify-content: flex-start;
            align-items: flex-start;

            .column {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                gap: 0.5rem;
                font-size: 1.3rem;
            }
        }
    }

    .top:not(.wrapped)>.line {
        content: '';
        width: 0.5px;
        height: 5rem;
        margin: 2rem;
        margin-right: 4.5rem;
        background: rgba(255, 255, 255, 0.5);
    }

    .top:not(.wrapped)>.left {
        -webkit-transform: translateX(-2rem);
        transform: translateX(-2rem);
    }

    .wrapped {
        gap: 0;
        row-gap: 1rem;
    }

    .wrapped .right {
        gap: 1rem;
    }

    .wrapped .column {
        font-size: 1rem !important;
    }

    .wrapped .white {
        font-size: 1.3rem !important;
    }


    .bottom {
        color: rgba(255, 255, 255, 0.5);
    }
}

a.no-deco {
    text-decoration: none;
}

.fit-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content.text {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
    padding: 0 2rem;

    h2 {
        font-size: 2.5rem;
        color: white;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    h3 {
        font-size: 2rem;
        color: white;
        margin-top: 0;
        margin-bottom: 0;
    }

    p {
        font-size: 1.5rem;
        color: white;
    }

    p:not(.no-space):before {
        content: '';
        display: inline-block;
        width: 2rem;
        height: 1rem;
    }
}