@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Share+Tech+Mono&display=swap');

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

body {
    background-image: url(./img/wp.webp);
    background-repeat: repeat;
    background-blend-mode: color;
    background-color: navy;
    color: #fff;
    font-family: "Share Tech Mono", monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
}

#desktop-hint {
    display: none;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

#content-container {
    border: 2px solid #fff;
    border-radius: 12px;
    width: 90vw;
    max-width: 400px;
    height: 45vh;
    margin-bottom: 5%;
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: black;
}

#content-container.fullscreen {
    height: 60vh;
    margin-bottom: 0px;
}

#floating-back {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    z-index: 10;
    display: none;
    background: #000;
}

#floating-back.visible {
    display: flex;
}

/* Corrected View Specificity */
.view {
    width: 100%;
    height: 100%;
    display: none;
    padding: 15px;
}

.view.active-view {
    display: block;
}

.view.menu-grid.active-view {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    gap: 15px;
}

.selectable {
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    height: 60px;
    transition: background-color 0.1s, color 0.1s, transform 0.1s;
}

.selectable.selected {
    background-color: #fff;
    color: #000;

    img {
        filter: invert(1);
    }
}

.selectable.active {
    transform: scale(0.92);
}

.text-view {
    overflow-y: auto;
    padding-right: 25px;
}

.text-view::-webkit-scrollbar {
    width: 6px;
}

.text-view::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 4px;
}

.page-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 15px;
    padding-right: 40px;
}

.content-list {
    margin-left: 20px;
    line-height: 1.8;
}

#blog-content {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.blog-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin: 20px auto 0;
    border: 2px solid #fff;
    border-radius: 8px;
}

#mobile-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90vw;
    max-width: 400px;
    padding: 10px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
}

#mobile-controls.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.release-cover-exp {
    max-width: 80%;
    border: 2px solid #fff;
    border-radius: 12px;
}

.imgcenter {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.d-pad-middle {
    display: flex;
    gap: 55px;
}

.control-btn {
    background: black;
    color: #fff;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    font-family: "Share Tech Mono", monospace;
}

.control-btn:active {
    background: #fff;
    color: #000;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-left: 20px;
}

.round-btn {
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    #mobile-controls {
        display: none !important;
    }

    #desktop-hint {
        display: block;
    }

    #content-container {
        width: 60vw;
        height: 60vh;
        max-width: 800px;
    }

    #content-container.fullscreen {
        height: 85vh;
    }

    .view.menu-grid.active-view {
        grid-template-columns: 1fr 1fr;
    }

    .release-cover-exp {
        max-width: 50%;
    }

    #content-container {
        margin-bottom: 0;
    }
}