html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
}

.app-container {
    max-width: 580px;
    margin: 0 auto;
    padding: 1rem;
}

/* Voting flashcard */
.movie-card {
    text-align: center;
    padding: 0.5rem 0;
}

.movie-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0.75rem auto;
    display: block;
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.rating-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    padding: 0 !important;
    min-width: 0 !important;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.1s;
}

.rating-btn:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

.rating-btn:active {
    transform: scale(0.95);
}

/* Spectate score bars */
.score-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.score-name {
    width: 100px;
    flex-shrink: 0;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-bar-wrap {
    flex: 1;
    background: var(--mud-palette-action-disabled-background, rgba(255,255,255,0.12));
    border-radius: 4px;
    height: 22px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: var(--mud-palette-primary);
    border-radius: 4px;
    min-width: 0;
    transition: width 0.4s ease;
}

.score-pts {
    width: 44px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: right;
}

.score-thumb {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Winner podium */
.winner-group {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.rank-1 { background: rgba(249,168,37,0.15); border: 2px solid #f9a825; }
.rank-2 { background: rgba(158,158,158,0.15); border: 2px solid #9e9e9e; }
.rank-3 { background: rgba(191,54,12,0.15);  border: 2px solid #bf360c; }

.rank-label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--mud-palette-text-secondary);
}

.rank-movies {
    font-size: 1rem;
    font-weight: 500;
}

.rank-score {
    font-size: 0.85rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.15rem;
}

/* Admin table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--mud-palette-divider);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    font-weight: 600;
    background: var(--mud-palette-surface);
    font-size: 0.82rem;
    color: var(--mud-palette-text-secondary);
}

.data-table td {
    font-size: 0.88rem;
}

.btn-gap {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Modal overlay */
.mud-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
