* { box-sizing: border-box; cursor: crosshair; }

body {
    background-color: #000;
    background-image: repeating-linear-gradient(0deg, #111, #111 1px, #000 1px, #000 2px);
    color: #fff;
    font-family: "Courier New", monospace;
    margin: 0;
    padding: 20px;
}

#wrapper {
    max-width: 1200px; /* Widened the wrapper for the side-by-side modules */
    margin: 0 auto;
    border: 3px solid #333;
    background: #050505;
}

.top-banner {
    background: #0000aa;
    border-bottom: 2px solid #fff;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}

.grid-main {
    display: grid;
    /* Adjusted grid columns: left(180px), center(grows), right(200px) */
    grid-template-columns: 180px 1fr 200px;
    gap: 10px;
    padding: 10px;
}

/* BASE BOX STYLING */
.box {
    border: 1px solid #444;
    background: #000;
    padding: 10px;
    margin-bottom: 10px;
}

.box-title {
    margin: 0 0 10px 0;
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 2px 5px;
    font-size: 12px;
}

/* XP/PS1 STYLE WINDOW (RIGHT COLUMN) */
.win-window {
    border: 2px solid #dfdfdf;
    background: #c0c0c0;
    color: #000;
    box-shadow: 1px 1px 0 #000;
}

.win-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.win-content { padding: 15px; text-align: center; font-weight: bold; }

/* BUTTONS */
.menu-btn {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    margin-bottom: 5px;
    padding: 6px;
    text-align: left;
    font-family: inherit;
}

.menu-btn:hover { background: #fff; color: #000; }

.xp-btn {
    background: #e1e1e1;
    border: 1px solid #777;
    padding: 3px 10px;
    box-shadow: 1px 1px 0 #fff inset;
}

/* CENTER DISPLAY */
.col-center {
    border: 1px solid #666;
    background: #000;
}

.window-top-bar {
    background: #222;
    font-size: 11px;
    padding: 3px 8px;
    border-bottom: 1px solid #444;
    color: #aaa;
}

.main-display { padding: 15px; text-align: center; }

.glitch-title {
    font-size: 2.2rem;
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 0 10px;
    margin-bottom: 15px;
}

/* NEW NESTED GRID FOR GRAPHICS + PLAYER */
.display-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Graphics window takes available space, Player is fixed */
    gap: 15px;
    margin-bottom: 15px;
    align-items: start;
}

/* GRAPHICS MODULE (image_4.png container) */
.graphics-module {
    border: 1px solid #ff0055; /* High-contrast magenta border */
    padding: 0;
    height: 100%;
}

.module-header {
    background: #ff0055;
    color: #fff;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: left;
}

.asset-view {
    padding: 20px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-asset {
    max-width: 150px; /* Adjusted size so it fits the module well */
    height: auto;
    image-rendering: pixelated; /* Crucial for that 1-bit style */
    
    /* ADD ROTATION ANIMATION */
    animation: simple-rotate 8s linear infinite;
}

/* MUSIC PLAYER CONTAINER (Moved to side) */
.media-container {
    border: 1px solid #333;
    padding: 2px;
    background: #111;
    display: inline-block;
    justify-self: end; /* Aligns the 350px player to the right */
}

/* ANIMATIONS */
@keyframes simple-rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* MISC */
.status-text {
    font-size: 10px;
    color: #ff0055;
    margin-top: 10px;
}

p { font-size: 12px; margin: 4px 0; }