*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #111;
    font-family: Roboto, "Noto Sans Arabic", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.preview-participants-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    max-width: none;
    padding: 0.5rem 1rem;
}

.participants-title {
    display: none;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.participant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #111;
}

.participant-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

/* Full frame visible — no horizontal crop */
.participant-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.participant-name {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    text-align: center;
    word-break: break-word;
    color: #111;
}

.participant-card:hover .participant-name {
    color: rgb(0, 120, 0);
    font-weight: 700;
}

.participant-card:hover {
    text-decoration: none;
}
