/* 1. RESET & LAYOUT */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: #f0f2f5; color: #1c1e21; line-height: 1.5; }

/* 2. HEADER */
header {
    background: #fff; padding: 1rem 1.5rem; display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000;
}
h1 { font-size: 1.4rem; color: #2196f3; font-weight: 700; }
.controls { display: flex; gap: 10px; flex-grow: 1; justify-content: flex-end; }
#group-select, .home-btn { padding: 10px 14px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; font-size: 0.9rem; }
.home-btn { background: #2196f3; color: #fff; border: none; font-weight: 600; cursor: pointer; }

/* 3. MAIN CONTENT */
main { width: 100%; max-width: 900px; margin: 20px auto; padding: 0 15px; }

.category-box {
    background: #fff; margin-bottom: 30px; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #e1e4e8;
}
.category-box h2 {
    background: #f8f9fa; padding: 15px 20px; font-size: 1.1rem; color: #2196f3;
    border-bottom: 1px solid #eee; font-weight: 700;
}

/* 4. NOMINEE ROWS */
.nominee-row {
    padding: 20px; border-bottom: 1px solid #f0f0f0;
    display: flex; flex-direction: column; gap: 15px;
}
@media (min-width: 700px) {
    .nominee-row { flex-direction: row; justify-content: space-between; align-items: center; }
}
.nominee-row.is-winner { background: #fffdf0; border-left: 6px solid #ffc107; }
.nominee-name { font-size: 1.1rem; font-weight: 600; color: #333; flex: 1; }

/* 5. USER GALLERY & CARDS */

.user-gallery { display: flex; flex-wrap: wrap; gap: 15px; justify-content: flex-start; }

.user-card { display: flex; flex-direction: column; align-items: center; width: 70px; }

.large-avatar {
    width: 50px !important; height: 50px !important;
    border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); overflow: hidden;
    background-color: #f0f0f0; display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px; flex-shrink: 0;
}
.large-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* GENERIC LOGO STYLE */
.generic-logo { background-color: #2196f3; color: white; font-size: 22px; }

.user-label {
    font-size: 11px; font-weight: 600; color: #555; text-align: center;
    width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 6. MOBILE FIXES */
@media (max-width: 500px) {
    header h1 { width: 100%; text-align: center; }
    .controls { width: 100%; }
    .nominee-name { font-size: 1rem; }
    .large-avatar { width: 44px !important; height: 44px !important; }
}
