* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #0f0f14;
    --muted: rgba(20, 20, 26, 0.55);
}

html,
body {
    width: 100%;
    height: 100%;
        background-color: #fff;
}

body {
    overflow: hidden;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    /*background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 36%, rgba(241, 244, 248, 0.82) 48%, rgba(20, 22, 36, 0.92) 100%);*/

    background-color: #fff;
}

audio {
    display: none;
}

.page_box {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster {
    position: relative;
    width: min(80%, 1920px);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster_right {
    width: 70%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.poster__sky,
.poster__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/*
.poster__sky {
    background: radial-gradient(circle at 76% 14%, rgba(255, 220, 178, 0.7), transparent 14%),
    radial-gradient(circle at 66% 10%, rgba(255, 243, 224, 0.8), transparent 18%),
    radial-gradient(circle at 84% 24%, rgba(236, 208, 255, 0.45), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(255, 196, 128, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 255, 0.08) 45%, rgba(14, 18, 36, 0.92) 100%);
    opacity: 0.95;
}

.poster__glow {
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.66) 0 33%, transparent 33%),
    radial-gradient(circle at 33% 38%, rgba(255, 255, 255, 0.88), transparent 12%),
    linear-gradient(90deg, rgba(0, 0, 0, 0) 0 58%, rgba(4, 5, 8, 0.13) 100%);
    mix-blend-mode: screen;
    opacity: 0.65;
}
*/

.masthead {
    position: absolute;
    top: 1.2rem;
    left: 1rem;
    z-index: 3;
}

.masthead__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.masthead__title-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.masthead h1 {
    font-size: clamp(3.8rem, 7vw, 5.8rem);
    line-height: 0.9;
    font-weight: 500;
    letter-spacing: 0;
}

.masthead__title-row span {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    background: #0d0d12;
    color: #f5f1e8;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.masthead h2 {
    margin-top: 0.4rem;
    font-size: clamp(2.2rem, 4.5vw, 3.7rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lyrics-copy {
    position: absolute;
    left: 1rem;
    top: 26vh;
    width: min(22vw, 260px);
    min-width: 180px;
    z-index: 3;
    user-select: none;
}

.container {
    height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.container ul {
    list-style: none;
    margin-top: 110px;
    text-align: center;
}

.container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.container li {
    min-height: 28px;
    line-height: 28px;
    font-size: 0.72rem;
    color: rgba(15, 15, 20, 0.38);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.container li.active {
    color: #21b28f;
    font-weight: 700;
    transform: scale(1.08);
}

.container::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 0.65rem;
    background: rgba(15, 15, 20, 0.28);
}

.vinyl-stage-box {
    position: absolute;
    left: 22%;
    top: 24%;
    z-index: 2;
    width: fit-content;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.canvas_box {
    width: 100%;
    height: 60px;
}

#canvas {
    width: 100%;
    height: 100%;
}

.vinyl-stage-record {
    width: min(36vw, 340px);
    height: min(36vw, 340px);
}

.vinyl-stage {
    position: absolute;
    left: 22%;
    top: 24%;
    z-index: 2;
    width: min(36vw, 340px);
    aspect-ratio: 1 / 1;
}

.vinyl-stage__note {
    position: absolute;
    top: 3%;
    right: 3%;
    transform: rotate(42deg);
    font-family: "Comic Sans MS", cursive;
    font-size: clamp(1.1rem, 1.8vw, 1.8rem);
    color: #101015;
}

.vinyl {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 13%, rgba(0, 0, 0, 0) 13.4%),
    radial-gradient(circle at 44% 38%, rgba(255, 255, 255, 0.12), transparent 17%),
    url("../assets/黑胶唱片.png") center/contain no-repeat;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
    animation: vinyl_Rotate 20s ease-out infinite;
    animation-play-state: paused;
}

.vinyl.is-rotating {
    animation-play-state: running;
}

.vinyl_cover {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    z-index: 12;
}

@keyframes vinyl_Rotate {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl__center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 33%;
    height: 33%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #dfdfdf 0 26%, #bcbcbc 27% 52%, #f2f2f2 53% 68%, #a8a8a8 69% 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14),
    inset 0 0 24px rgba(255, 255, 255, 0.35);
}

.vinyl__center::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10%;
    height: 10%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0, #909090 42%, #676767 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.right-space {
    position: absolute;
    inset: 0 0 0 auto;
    width: 66%;
    pointer-events: none;
    z-index: 1;
}

.right-space_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 100%);
}

.right-space__panel {
    position: absolute;
    right: 0;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.right-space__panel--top {
    top: 2.2%;
    width: 100%;
    height: 56%;
}

.right-space__panel--bottom {
    right: 3%;
    bottom: 3%;
    width: 38%;
    height: 30%;
}

.controls {
    /*position: absolute;*/
    /*left: 50%;*/
    /*bottom: 1.5rem;*/
    /*transform: translateX(-50%);*/
    /*z-index: 4;*/
    width: min(560px, calc(100vw - 2rem));
}

.controls__time {
    display: grid;
    grid-template-columns: 3.2rem 1fr 3.2rem;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.75rem;
    color: var(--ink);
}

.controls__time input[type="range"] {
    width: 100%;
    appearance: none;
    height: 2px;
    background: rgba(15, 15, 20, 0.55);
    outline: none;
}

.controls__time input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: #fff;
    cursor: pointer;
}

.controls__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
}

.controls__buttons button {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.controls__buttons #playPause {
    width: 3.3rem;
    height: 3.3rem;
    border: 1px solid rgba(15, 15, 20, 0.6);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    font-size: 1.6rem;
}

.controls__buttons #playPause.is-play {
    padding-left: 0.2rem;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .page_box {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    .poster {
        width: 100%;
        min-height: 100vh;
        height: auto;
        display: block;
        padding-bottom: 8rem;
    }

    .masthead {
        left: 0.9rem;
        top: 1rem;
        right: 0.9rem;
    }

    .lyrics-copy {
        left: 0.65rem;
        right: 0.65rem;
        top: 18vh;
        width: auto;
        min-width: 0;
        padding: 0.85rem 0.9rem 0.85rem 0.8rem;
        z-index: 4;
    }

    .vinyl-stage {
        left: 50%;
        top: 49vh;
        right: auto;
        width: min(58vw, 280px);
        transform: translateX(-50%);
    }

    .poster_right{
        width: 100%;
    }

    .right-space_img {
        opacity: 0.35;
        -webkit-mask-image: unset;
        mask-image: unset;
        object-position: center top;
    }

    .vinyl-stage-box {
        left: 50%;
        top: 49vh;
        transform: translateX(-50%);
        width: 100%;
        gap: 16px;
    }

    .vinyl-stage-record {
        width: min(58vw, 280px);
        height: min(58vw, 280px);
    }

    .canvas_box {
        width: min(88vw, 420px);
        height: 42px;
    }

    .right-space {
        width: 100%;
        z-index: 1;
    }

    .right-space__panel--top {
        width: 100%;
        height: 38%;
    }

    .right-space__panel--bottom {
        width: 52%;
        height: 22%;
    }

    .controls {
        width: calc(100vw - 1.2rem);
        max-width: 560px;
    }

    .container {
        height: 34vh;
        min-height: 240px;
        max-height: 360px;
    }

    .container ul {
        margin-top: 1rem;
    }

    .container li {
        font-size: 0.68rem;
        line-height: 26px;
        min-height: 26px;
    }

    .masthead h1 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .masthead h2 {
        font-size: clamp(1.5rem, 7vw, 2.4rem);
    }

    .controls__buttons {
        gap: 0.75rem;
        margin-top: 0.65rem;
        flex-wrap: wrap;
    }

    .controls__buttons #playPause {
        width: 3rem;
        height: 3rem;
        font-size: 1.45rem;
    }
}

@media (max-width: 520px) {
    .lyrics-copy {
        top: 16vh;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem 0.8rem 0.75rem 0.7rem;
    }

    .container {
        height: 30vh;
        min-height: 210px;
    }

    .vinyl-stage-box {
        top: 47vh;
        gap: 12px;
    }

    .vinyl-stage-record {
        width: min(66vw, 250px);
        height: min(66vw, 250px);
    }

    .canvas_box {
        width: 90vw;
        height: 34px;
    }

    .controls {
        width: calc(100vw - 1rem);
    }

    .controls__time {
        grid-template-columns: 2.8rem 1fr 2.8rem;
        gap: 0.45rem;
        font-size: 0.68rem;
    }

    .controls__buttons button {
        font-size: 1rem;
    }

    .right-space__panel--top {
        height: 34%;
    }

    .right-space__panel--bottom {
        width: 60%;
        height: 20%;
    }
}
