.quizzy-player {
    max-width: 500px;
    margin: 2em auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.qp-step {
    padding: 2em;
    background: #f8f9fa;
    border-radius: 12px;
}

.qp-step h2 { margin-top: 0; }

.qp-desc { color: #555; margin-bottom: 1.5em; }

.qp-field { margin-bottom: 1em; }
.qp-field label { display: block; font-weight: 600; margin-bottom: 6px; }

.qp-name-input {
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    font-size: 1em;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}
.qp-name-input:focus { border-color: #2271b1; outline: none; }

.qp-error { font-size: 0.9em; margin-top: 6px; }

.qp-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2271b1;
    color: #fff;
    transition: background 0.2s;
}
.qp-btn:hover { background: #135e96; }
.qp-btn:disabled { opacity: 0.6; cursor: default; }

/* Waiting */
.qp-waiting-content { padding: 3em 0; }

.qp-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1em;
    border: 4px solid #dee2e6;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: qp-spin 0.8s linear infinite;
}
@keyframes qp-spin { to { transform: rotate(360deg); } }

.qp-waiting h3 { margin: 0 0 0.5em; }
.qp-waiting-players { color: #6c757d; }

/* Answers */
.qp-answers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}
.qp-answered-label { font-weight: 600; }
.qp-timer {
    font-size: 1.2em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.qp-photo { margin-bottom: 1em; }
.qp-photo img { max-width: 100%; border-radius: 8px; }

.qp-video { margin-bottom: 1em; }
.qp-video iframe { max-width: 100%; border-radius: 8px; }

.qp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qp-option {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1em;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
    color: #000;
}
.qp-option:hover { border-color: #2271b1; background: #f0f6fc; }
.qp-option.qp-selected { border-color: #389e0d; background: #f0fff4; font-weight: 600; }
.qp-option:disabled { cursor: default; opacity: 0.7; }

.qp-answer-sent { margin-top: 1em; }

/* Score */
.qp-score {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #6c757d;
    transition: all 0.3s;
}
.qp-score-up {
    color: #28a745;
    font-size: 1.3em;
}

/* Result */
.qp-result-content { text-align: center; }

.qp-result-box {
    margin: 1.5em 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.qp-result-label { display: block; font-size: 1em; margin-bottom: 6px; }
.qp-result-score { font-size: 2em; font-weight: 700; color: #2271b1; }
.qp-result-pct { font-size: 1.1em; color: #6c757d; margin-left: 6px; }

.qp-leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    text-align: left;
}
.qp-leaderboard th,
.qp-leaderboard td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}
.qp-leaderboard th { background: #e9ecef; font-weight: 600; }
.qp-my-row { background: #e7f3ff; font-weight: 600; }
