@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background: #ffb7c5;
}


body {
    overflow: hidden;
}


.hidden {
    display: none !important;
}


/* ==================================================
   WHOLE WEBSITE
   ================================================== */

.music-realm {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    font-family: "VT323", monospace;

    color: #18090f;

    background-color: #ffb7c5;

    background-image:

        linear-gradient(
            rgba(255,255,255,.18) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.18) 1px,
            transparent 1px
        ),

        radial-gradient(
            circle at 15% 20%,
            #ffdce5 0,
            #ffdce5 4px,
            transparent 5px
        ),

        radial-gradient(
            circle at 85% 55%,
            #9d3158 0,
            #9d3158 3px,
            transparent 4px
        );

    background-size:
        32px 32px,
        32px 32px,
        75px 75px,
        95px 95px;

    scrollbar-color:
        #111111
        #ffb7c5;
}


/* BLACK EDGE VIGNETTE */

.music-realm::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            transparent 48%,
            rgba(57, 7, 27, .09) 72%,
            rgba(0, 0, 0, .25) 100%
        );

    pointer-events: none;

    z-index: 20;
}


/* CRT LINES */

.music-realm::after {
    content: "";

    position: fixed;
    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 3px,
            rgba(31, 0, 12, .035) 4px
        );

    pointer-events: none;

    z-index: 21;
}


/* ==================================================
   PAGE
   ================================================== */

.music-page {
    position: relative;

    z-index: 5;

    width: 1050px;
    max-width: 94%;

    margin: 0 auto;

    padding:
        32px 0 80px;
}


/* ==================================================
   HEADER
   ================================================== */

.music-header {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 28px;

    margin-bottom: 12px;

    padding:
        25px 20px;

    text-align: center;

    color: #0a0507;

    background:
        #ffd2dd;

    border:
        3px solid #111111;

    box-shadow:
        8px 8px 0 #111111;
}


.music-header h1 {
    margin:
        -2px 0 2px;

    color: #111111;

    font-size: 62px;

    font-weight: normal;

    letter-spacing: 9px;

    text-shadow:
        3px 3px 0 #f16f99;
}


.tiny-header {
    margin: 0;

    color: #9f2c54;

    font-size: 16px;

    letter-spacing: 4px;
}


.header-subtitle {
    margin: 0;

    color: #672139;

    font-size: 17px;

    letter-spacing: 2px;
}


.header-stamp {
    display: flex;

    width: 54px;
    height: 70px;

    align-items: center;
    justify-content: center;

    color: #9c183f;

    background: #f5e5d5;

    border:
        2px solid #9c183f;

    font-family: serif;

    font-size: 29px;

    box-shadow:
        3px 3px 0 #111111;

    transform:
        rotate(-5deg);
}


.second-stamp {
    transform:
        rotate(5deg);
}


/* ==================================================
   WARNING STRIP
   ================================================== */

.warning-strip {
    margin:
        20px 0 25px;

    padding:
        8px;

    color:
        #ffcad8;

    background:
        #10070b;

    border:
        2px solid #10070b;

    text-align:
        center;

    font-size:
        17px;

    letter-spacing:
        4px;

    box-shadow:
        5px 5px 0 #9c3156;
}


.warning-strip span {
    color: #ff678f;
}


/* ==================================================
   TOP GRID
   ================================================== */

.music-top-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(280px, .8fr);

    gap:
        22px;

    align-items:
        start;

    margin-bottom:
        27px;
}


/* ==================================================
   WINDOWS
   ================================================== */

.cursed-window {
    position: relative;

    background:
        #fff0f3;

    border:
        3px solid #111111;

    box-shadow:
        7px 7px 0 #111111;
}


.window-titlebar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        7px 10px;

    color:
        #ffd8e2;

    background:
        #13070c;

    border-bottom:
        3px solid #111111;

    font-size:
        17px;

    letter-spacing:
        2px;
}


/* ==================================================
   CURRENT LISTENING
   ================================================== */

.current-window::before {
    content: "記録";

    position: absolute;

    top: 46px;
    left: -16px;

    padding:
        6px 4px;

    color:
        #a31e49;

    background:
        #f4e2cc;

    border:
        1px solid #a31e49;

    font-family: serif;

    writing-mode:
        vertical-rl;

    letter-spacing: 4px;

    box-shadow:
        2px 2px 0 #111;

    transform:
        rotate(-3deg);

    z-index: 8;
}


.current-content {
    display: grid;

    grid-template-columns:
        245px 1fr;

    gap:
        18px;

    padding:
        24px;
}


.rotation-area {
    min-width: 0;
}


.save-label {
    margin-bottom:
        10px;

    padding:
        5px 7px;

    color:
        #fff1f4;

    background:
        #a52d56;

    border:
        2px solid #111111;

    font-size:
        17px;

    letter-spacing:
        3px;
}


/* ==================================================
   MP3 ART
   ================================================== */

.pixel-listener {
    position: relative;

    width: 230px;
    height: 235px;

    margin: 0 auto;
}


/* CD */

.pixel-cd {
    position: absolute;

    top: 14px;
    left: 5px;

    width: 115px;
    height: 115px;

    border:
        4px solid #111;

    border-radius: 50%;

    background:
        conic-gradient(
            #ff83aa,
            #fff1f5,
            #d74978,
            #090407,
            #ffb7c5,
            #ffffff,
            #a22550,
            #ff83aa
        );

    box-shadow:
        5px 5px 0 #111;

    animation:
        cd-spin
        2.6s
        steps(24)
        infinite;
}


@keyframes cd-spin {

    to {
        transform:
            rotate(360deg);
    }

}


.cd-ring {
    position: absolute;

    inset: 16px;

    border:
        2px dotted #8f3451;

    border-radius: 50%;
}


.cd-hole {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 27px;
    height: 27px;

    transform:
        translate(-50%, -50%);

    background:
        #10070b;

    border:
        6px solid #fff7f8;

    border-radius: 50%;
}


.cd-shine {
    position: absolute;

    width: 8px;
    height: 32px;

    background:
        rgba(255,255,255,.75);
}


.shine-one {
    top: 10px;
    left: 28px;

    transform:
        rotate(40deg);
}


.shine-two {
    right: 20px;
    bottom: 13px;

    height: 22px;

    opacity: .4;

    transform:
        rotate(45deg);
}


/* MP3 */

.pixel-mp3 {
    position: absolute;

    top: 62px;
    right: 6px;

    width: 116px;
    height: 153px;

    padding: 8px;

    background:
        #ff99b8;

    border:
        4px solid #111;

    box-shadow:
        6px 6px 0 #111;
}


.mp3-label {
    margin-bottom:
        5px;

    text-align: center;

    color:
        #4f1026;

    font-size: 13px;

    letter-spacing: 3px;
}


.mp3-screen {
    padding:
        8px 5px;

    color:
        #ffbad0;

    background:
        #13070c;

    border:
        3px inset #91405b;

    text-align: center;
}


.screen-small {
    display: block;

    color: #b3657d;

    font-size: 9px;

    letter-spacing: 2px;
}


.screen-song {
    display: block;

    margin:
        4px 0 2px;

    font-size: 17px;
}


.screen-wave {
    display: block;

    color: #ff7ca5;

    animation:
        wave-glitch
        1.2s
        steps(3)
        infinite;
}


@keyframes wave-glitch {

    50% {
        opacity: .35;
    }

}


.mp3-buttons {
    display: flex;

    justify-content: center;

    gap: 5px;

    margin-top: 8px;
}


.mp3-buttons span {
    display: flex;

    width: 24px;
    height: 24px;

    align-items: center;
    justify-content: center;

    color: #ffdce6;

    background: #2c0b17;

    border:
        2px outset #ad607a;

    font-size: 10px;
}


/* CORD */

.cord {
    position: absolute;

    pointer-events: none;
}


.cord-main {
    right: -6px;
    top: 101px;

    width: 34px;
    height: 96px;

    border-right:
        3px solid #111;

    border-bottom:
        3px solid #111;
}


.cord-split-left {
    right: -20px;
    top: 193px;

    width: 28px;

    border-top:
        3px solid #111;

    transform:
        rotate(25deg);
}


.cord-split-right {
    right: 2px;
    top: 195px;

    width: 27px;

    border-top:
        3px solid #111;

    transform:
        rotate(-24deg);
}


.earbud {
    position: absolute;

    display: flex;

    width: 17px;
    height: 24px;

    align-items: center;
    justify-content: center;

    color: #111;

    background: #ffb7c5;

    border:
        3px solid #111;

    font-size: 9px;

    animation:
        earbud-dangle
        3s
        ease-in-out
        infinite;
}


.left-earbud {
    right: -26px;
    bottom: 7px;
}


.right-earbud {
    right: 13px;
    bottom: -5px;

    animation-delay: .5s;
}


@keyframes earbud-dangle {

    50% {
        transform:
            translateY(4px)
            rotate(4deg);
    }

}


/* ==================================================
   CHIBI TRACKS
   ================================================== */

.chibi-track {
    position: relative;

    margin-bottom:
        9px;

    padding:
        9px 10px;

    color:
        #17080e;

    background:
        #ffd7e1;

    border:
        2px solid #111;

    box-shadow:
        3px 3px 0 #b4486e;
}


.chibi-track-title {
    margin: 0;

    font-size:
        20px;
}


.chibi-track-artist {
    margin:
        1px 0;

    color:
        #9a2450;

    font-size:
        17px;
}


.chibi-track-note {
    margin:
        5px 0;

    color:
        #693044;
}


.track-bottom,
.rec-actions {
    display: flex;

    flex-wrap: wrap;

    gap:
        6px;

    margin-top:
        7px;
}


/* ==================================================
   SIDE SHRINE
   ================================================== */

.shrine-player {
    background:
        #19070e;
}


.shrine-inner {
    position: relative;

    padding:
        20px;

    color:
        #ffdbe5;
}


.ofuda {
    position: absolute;

    top: 6px;
    right: 8px;

    width: 28px;

    padding:
        6px 2px;

    color:
        #9e163e;

    background:
        #f2dfc9;

    border:
        1px solid #a88572;

    font-family: serif;

    text-align: center;

    transform:
        rotate(4deg);
}


.ofuda span {
    display: block;

    margin-top:
        4px;

    font-size: 8px;
}


.shrine-title {
    margin:
        0;

    color:
        #ffacc2;

    font-size:
        27px;

    letter-spacing:
        3px;
}


.shrine-sub {
    margin:
        0 0 14px;

    color:
        #b56a80;
}


.video-frame {
    position: relative;

    padding:
        5px;

    background:
        black;

    border:
        2px solid #be5577;
}


.camera-top {
    display: flex;

    justify-content:
        space-between;

    padding:
        2px 3px 5px;

    color:
        #ff779e;

    font-size:
        10px;

    letter-spacing:
        1px;
}


.video-frame iframe {
    display: block;

    width: 100%;
    height: 170px;

    border: 0;

    filter:
        grayscale(.28)
        contrast(1.15)
        brightness(.72);
}


.viewfinder-cross {
    position: absolute;

    top: 53%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    color:
        rgba(255,255,255,.25);

    font-size:
        34px;

    pointer-events: none;
}


.heart-meter {
    display: flex;

    justify-content: center;

    gap: 3px;

    margin:
        13px 0 4px;
}


.heart-meter span {
    color:
        #f65083;

    font-family:
        monospace;

    font-size:
        20px;

    animation:
        heartbeat
        2.4s
        steps(2)
        infinite;
}


@keyframes heartbeat {

    95% {
        transform:
            scale(1.15);
    }

}


.camera-note {
    margin: 0;

    color:
        #845367;

    text-align: center;

    font-size:
        11px;

    letter-spacing:
        2px;
}


/* ==================================================
   FORUM
   ================================================== */

.forum-window {
    background:
        #ffe6ec;
}


.forum-titlebar {
    color:
        #ffdce5;

    background:
        #9f2b53;
}


.forum-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap:
        25px;

    padding:
        24px;

    background:

        repeating-linear-gradient(
            -45deg,
            #ffc5d4,
            #ffc5d4 10px,
            #ffd3dd 10px,
            #ffd3dd 20px
        );

    border-bottom:
        3px solid #111;
}


.forum-header h2 {
    margin:
        0;

    color:
        #111;

    font-size:
        32px;

    font-weight:
        normal;

    letter-spacing:
        4px;
}


.forum-header p {
    max-width:
        690px;

    margin:
        4px 0 0;

    color:
        #692039;

    font-size:
        17px;
}


.forum-skull {
    display: flex;

    width: 63px;
    height: 63px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    color:
        #ffb7c5;

    background:
        #111;

    border:
        3px solid #111;

    box-shadow:
        4px 4px 0 #a83459;

    font-size:
        39px;

    transform:
        rotate(4deg);
}


/* ==================================================
   USER BAR
   ================================================== */

.music-user-box {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;

    gap:
        10px;

    margin:
        18px 22px 0;

    padding:
        9px 11px;

    color:
        #ffb9ca;

    background:
        #16070d;

    border:
        2px solid #111;

    font-size:
        15px;

    letter-spacing:
        2px;
}


.music-user-box a {
    color:
        #ffb7c5;

    text-decoration:
        none;
}


.music-user-box a:hover {
    color:
        white;
}


/* ==================================================
   FORUM POST FORM
   ================================================== */

.forum-form-wrapper {
    margin:
        18px 22px 25px;

    background:
        #fff6f7;

    border:
        2px solid #111;

    box-shadow:
        4px 4px 0 #d16a8b;
}


.forum-form-title {
    display: flex;

    justify-content: space-between;

    padding:
        6px 9px;

    color:
        #ffd3de;

    background:
        #2a0a15;

    border-bottom:
        2px solid #111;

    font-size:
        14px;

    letter-spacing:
        2px;
}


#music-rec-form,
.chibi-track-form {
    padding:
        14px;
}


#music-rec-form label {
    display: block;

    margin:
        5px 0 3px;

    color:
        #73223e;

    font-size:
        13px;

    letter-spacing:
        2px;
}


#music-rec-form input,
#music-rec-form textarea,
.chibi-track-form input,
.chibi-track-form textarea {
    width:
        100%;

    margin-bottom:
        9px;

    padding:
        8px;

    color:
        #111;

    background:
        #ffdce5;

    border:
        2px solid #111;

    border-radius:
        0;

    outline:
        none;

    font-family:
        "VT323",
        monospace;

    font-size:
        17px;
}


#music-rec-form input:focus,
#music-rec-form textarea:focus,
.chibi-track-form input:focus,
.chibi-track-form textarea:focus {
    background:
        white;

    box-shadow:
        3px 3px 0 #ff91b0;
}


#music-rec-form textarea,
.chibi-track-form textarea {
    min-height:
        84px;

    resize:
        vertical;
}


.recommendation-form-grid,
.track-form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        10px;
}


.music-rec-name-area {
    width:
        240px;
}


.forum-submit,
.music-action-button {
    display:
        block;

    width:
        fit-content;

    margin:
        7px auto 0;

    padding:
        7px 17px;

    color:
        #ffd7e1;

    background:
        #111;

    border:
        2px solid #111;

    border-radius:
        0;

    box-shadow:
        4px 4px 0 #df6289;

    font-family:
        "VT323",
        monospace;

    font-size:
        17px;

    letter-spacing:
        2px;

    cursor:
        pointer;
}


.forum-submit:hover,
.music-action-button:hover {
    color:
        #111;

    background:
        #ff9fba;

    transform:
        none;
}


.music-form-status {
    min-height:
        17px;

    margin:
        8px 0 0;

    color:
        #a82954;

    text-align:
        center;
}


/* ==================================================
   FORUM FEED
   ================================================== */

.forum-feed-title {
    display: flex;

    justify-content: space-between;

    margin:
        0 22px 12px;

    padding:
        7px 9px;

    color:
        #ffe1e8;

    background:
        #a42e55;

    border:
        2px solid #111;

    font-size:
        15px;

    letter-spacing:
        2px;
}


#music-rec-feed {
    padding:
        0 22px 25px;
}


/* POSTS */

.music-recommendation {
    position: relative;

    margin-bottom:
        13px;

    padding:
        12px;

    color:
        #17080e;

    background:
        #fff5f7;

    border:
        2px solid #111;

    box-shadow:
        4px 4px 0 #d1708e;
}


.music-recommendation:nth-child(even) {
    background:
        #ffdce5;
}


.music-recommendation.pinned {
    border:
        3px solid #98264d;

    box-shadow:
        5px 5px 0 #111;
}


.music-recommendation.pinned::before {
    content:
        "♡ CHIBI PINNED THIS";

    display:
        block;

    margin:
        -12px -12px 10px;

    padding:
        4px 8px;

    color:
        #ffd8e3;

    background:
        #98264d;

    font-size:
        12px;

    letter-spacing:
        2px;
}


.rec-top {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;

    gap:
        5px;

    padding-bottom:
        5px;

    border-bottom:
        1px dashed #a24d69;
}


.rec-name {
    color:
        #8f2147;

    font-size:
        18px;
}


.rec-owner {
    margin-left:
        5px;

    padding:
        1px 5px;

    color:
        #ffb7c5;

    background:
        #111;

    font-size:
        10px;
}


.rec-time {
    color:
        #9d6879;

    font-size:
        12px;
}


.rec-pin-label {
    color:
        #a02049;
}


.rec-song {
    margin:
        9px 0 0;

    color:
        #111;

    font-size:
        24px;
}


.rec-song::before {
    content:
        "♪ ";
}


.rec-artist {
    margin:
        0;

    color:
        #a52f55;

    font-size:
        18px;
}


.rec-note {
    margin:
        9px 0 0;

    padding:
        8px 10px;

    color:
        #56313e;

    background:
        #ffdce5;

    border-left:
        4px solid #ac3c61;

    font-size:
        16px;
}


/* ==================================================
   SMALL BUTTONS
   ================================================== */

.listen-link,
.admin-track-delete,
.music-admin-button {
    display:
        inline-block;

    padding:
        3px 7px;

    color:
        #ffcada;

    background:
        #111;

    border:
        1px solid #111;

    font-family:
        "VT323",
        monospace;

    font-size:
        13px;

    text-decoration:
        none;

    cursor:
        pointer;

    box-shadow:
        none;

    transform:
        none;
}


.listen-link:hover,
.music-admin-button:hover {
    color:
        #111;

    background:
        #ff9fba;
}


.admin-track-delete,
.music-admin-delete {
    color:
        #ff91ac;

    background:
        #551225;
}


.admin-track-delete:hover,
.music-admin-delete:hover {
    color:
        white;

    background:
        #a3123c;

    transform:
        none;
}


.music-admin-pin {
    color:
        #ffcfda;

    background:
        #6c2440;
}


/* ==================================================
   ADMIN FORM
   ================================================== */

.chibi-track-form {
    margin-top:
        14px;

    color:
        #111;

    background:
        #ffc9d7;

    border:
        2px dashed #111;
}


.admin-mini-title {
    margin-bottom:
        8px;

    color:
        #8e2348;

    letter-spacing:
        2px;
}


.sync-note {
    color:
        #a26075;

    font-size:
        12px;

    letter-spacing:
        2px;
}


/* ==================================================
   LOADING
   ================================================== */

.music-loading,
.music-empty {
    padding:
        12px;

    color:
        #8e4e63;

    text-align:
        center;

    font-size:
        15px;

    letter-spacing:
        2px;
}


/* ==================================================
   PETALS
   ================================================== */

.firefly {
    position: fixed;

    width:
        10px;

    height:
        7px;

    background:
        #fff0f5;

    border:
        1px solid #c9587c;

    border-radius:
        80% 15% 80% 20%;

    z-index:
        3;

    pointer-events:
        none;

    animation:
        sakura-fall
        12s
        ease-in-out
        infinite;
}


.f1 { left: 3%; top: 9%; }
.f2 { left: 10%; top: 41%; animation-delay: 2s; }
.f3 { left: 18%; top: 70%; animation-delay: 4s; }
.f4 { left: 27%; top: 17%; animation-delay: 1s; }
.f5 { left: 36%; top: 80%; animation-delay: 3s; }
.f6 { left: 45%; top: 31%; animation-delay: 5s; }
.f7 { left: 53%; top: 67%; animation-delay: 1.5s; }
.f8 { left: 61%; top: 11%; animation-delay: 4.5s; }
.f9 { left: 69%; top: 49%; animation-delay: .5s; }
.f10 { left: 76%; top: 75%; animation-delay: 3.5s; }
.f11 { left: 84%; top: 27%; animation-delay: 2.5s; }
.f12 { left: 92%; top: 58%; animation-delay: 5s; }
.f13 { left: 14%; top: 23%; animation-delay: 6s; }
.f14 { left: 88%; top: 88%; animation-delay: 1.8s; }


@keyframes sakura-fall {

    0% {
        transform:
            translate(0, -20px)
            rotate(0deg);

        opacity: .15;
    }

    30% {
        opacity: .85;
    }

    60% {
        transform:
            translate(25px, 24px)
            rotate(140deg);
    }

    100% {
        transform:
            translate(-13px, 55px)
            rotate(280deg);

        opacity: .1;
    }

}


/* ==================================================
   FOOTER
   ================================================== */

.music-footer {
    display: flex;

    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;

    gap:
        10px;

    margin-top:
        28px;

    padding:
        12px 14px;

    color:
        #ffb8cb;

    background:
        #111;

    border:
        3px solid #111;

    box-shadow:
        5px 5px 0 #a23156;

    font-size:
        13px;

    letter-spacing:
        2px;
}


.music-footer a {
    color:
        #ffb7c5;

    text-decoration:
        none;
}


.music-footer a:hover {
    color:
        white;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 800px) {

    .music-page {
        max-width:
            92%;

        padding-top:
            20px;
    }


    .music-header {
        gap:
            10px;

        padding:
            18px 8px;
    }


    .music-header h1 {
        font-size:
            39px;

        letter-spacing:
            5px;
    }


    .header-stamp {
        width:
            36px;

        height:
            53px;

        font-size:
            21px;
    }


    .header-subtitle {
        font-size:
            13px;
    }


    .music-top-grid {
        grid-template-columns:
            1fr;
    }


    .current-content {
        grid-template-columns:
            1fr;
    }


    .pixel-listener {
        margin-bottom:
            12px;
    }


    .recommendation-form-grid,
    .track-form-grid {
        grid-template-columns:
            1fr;
    }


    .music-rec-name-area {
        width:
            100%;
    }


    .forum-header h2 {
        font-size:
            24px;
    }


    .forum-skull {
        display:
            none;
    }


    .forum-feed-title {
        flex-direction:
            column;
    }


    .music-footer {
        flex-direction:
            column;

        text-align:
            center;
    }

}