body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #000;
    font-family: 'Inter', sans-serif;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: none;
    touch-action: none;
}

#xmb-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#top-bar {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 10;
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    display: flex;
    gap: 30px;
}

#xmb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Horizontal Menu (Categories) */
#horizontal-menu {
    position: absolute;
    top: 30%;
    left: 20%;
    display: flex;
    align-items: flex-start;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.2s;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    cursor: pointer;
}

.category.selected {
    opacity: 1;
}

.category-icon {
    width: 64px;
    height: 64px;
    filter: invert(1);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category.selected .category-icon {
    transform: scale(1.15);
}

.category-label {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.category.selected .category-label {
    opacity: 1;
}

/* Vertical Menu (Items) */
#vertical-menu {
    position: absolute;
    top: calc(30% + 120px); /* Strictly below category to prevent stacking */
    left: 20%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item {
    display: flex;
    align-items: center;
    width: 500px;
    opacity: 0.3;
    transition: opacity 0.2s;
    padding-left: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    cursor: pointer;
}

.item.selected {
    opacity: 1;
}

.item-icon {
    width: 36px;
    height: 36px;
    margin-right: 25px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5)) invert(1);
    transition: transform 0.2s;
}

.item.selected .item-icon {
    transform: scale(1.15);
}

.item-label {
    font-size: 22px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Panel - Strict squares, no AI slop */
#content-panel {
    position: absolute;
    top: 10%;
    right: -100%;
    width: 90%;
    max-width: 600px;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.85);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px; /* Crisp rounded-sm */
    padding: 30px;
    padding-top: 50px;
    color: #fff;
    transition: right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 20;
    overflow-y: auto;
    box-sizing: border-box;
    touch-action: pan-y;
}

#content-panel.visible {
    right: 5%;
}

#close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 30;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #top-bar { font-size: 16px; top: 20px; right: 20px; gap: 15px; }
    #horizontal-menu { left: 10%; top: 20%; }
    #vertical-menu { left: 10%; top: calc(20% + 100px); }
    .category-icon { width: 48px; height: 48px; }
    .category-label { font-size: 14px; margin-top: 10px; }
    .item { width: 320px; padding-left: 10px; }
    .item-icon { width: 28px; height: 28px; margin-right: 15px; }
    .item-label { font-size: 18px; }
    
    #content-panel {
        top: 0;
        bottom: 0;
        height: 100dvh;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        border-left: none;
        padding: 20px;
        padding-top: 60px;
    }
    #content-panel.visible { right: 0; }
}

#content-title {
    margin-top: 0;
    font-size: 24px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#content-body {
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
}

#content-body iframe {
    width: 100%;
    height: 280px;
    border: none;
    margin-bottom: 20px;
    border-radius: 4px;
}

.content-article h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #fff;
}

.content-article p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

.veribeat-info {
    margin-top: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    color: #ccc;
}
.veribeat-info strong { color: #fff; }
