/* Update your grid to use 200px minimum width */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; /* Slightly wider gap for bigger cards */
    margin-top: 15px;
}

.roster-card {
    background: #0f172a;
    border: 1px solid #4cc9f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.roster-card:hover {
    border-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 51, 51, 0.2);
}

/* Update the thumbnail box to be larger */
.roster-thumbnail {
    position: relative;
    width: 180px; /* Increased from 120px */
    height: 180px; /* Increased from 120px */
    background-color: #16213e;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer; 
}

.edit-nickname {
    background: transparent;
    border: none;
    border-bottom: 1px dashed #888;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-size: 0.9em;
    outline: none;
    transition: 0.2s;
}

.edit-nickname:focus {
    border-bottom: 1px solid #4cc9f0;
    background: #1a1a2e;
}


/* Rectangular container for the showcase */
.live-showcase-box {
    width: 100%;
    max-width: 500px;  /* Much wider rectangle */
    height: 250px;     /* Slightly shorter height */
    position: relative;
    margin: 10px auto; 
    background-color: #0f172a;
    border: none;
    overflow: hidden; 
}

/* Force layers to fill the box and frame perfectly */
.live-showcase-box .layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;  
    height: 100% !important; 
    /* DELETED THE SCALE(1.8) LINE HERE! */
    transform-origin: center center !important;
    object-fit: contain !important;
}

/* Dedicated Profile Showcase Container */
.profile-showcase-box {
    width: 100%;
    max-width: 600px;
    height: 400px;
    position: relative;
    margin: 0 auto; 
    background-color: transparent; /* Transparent to prepare for future planet backgrounds! */
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force layers to fill the box and frame perfectly */
.profile-showcase-box .layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;  
    height: 100% !important; 
    object-fit: contain !important;
    transform: scale(1.5) !important; /* Adjust this to 1.5 if the tail clips! */
    transform-origin: center center !important;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
    align-content: start; /* THIS FIXES THE WEIRD LAYOUT */
}