/* Quiz styling for slideshow overlay  css/quiz.css */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    width: 80%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* ===== FULLSCREEN MODE FOR EVENT SCREENS ===== */
.quiz-container.fullscreen-mode {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* FULLSCREEN LAYOUT - Hero Style */
.quiz-container.fullscreen-layout {
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quiz-hero-section {
    flex: 0 0 30vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    position: relative;
    overflow: hidden;
}

.quiz-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.quiz-hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 90%;
}

.quiz-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.quiz-hero-question {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.quiz-stats-grid {
    flex: 0 0 20vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 80px;
}

.stats-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1400px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.stat-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-card-value {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card-label {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-results-section {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 50px 80px;
    overflow-y: auto;
}

.quiz-results-content {
    max-width: 1600px;
    margin: 0 auto;
}

.quiz-container.fullscreen-mode .quiz-header {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quiz-container.fullscreen-mode .quiz-header h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.quiz-container.fullscreen-mode .quiz-question {
    font-size: 2.5rem;
    line-height: 1.4;
}

.quiz-container.fullscreen-mode .quiz-body {
    padding: 50px;
}

.quiz-container.fullscreen-mode .stat-value {
    font-size: 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-container.fullscreen-mode .stat-label {
    font-size: 1.5rem;
    margin-top: 10px;
}

.quiz-container.fullscreen-mode .chart-item {
    margin-bottom: 30px;
}

.quiz-container.fullscreen-mode .answer-label {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.quiz-container.fullscreen-mode .answer-code {
    font-size: 1.5rem;
    padding: 8px 16px;
    border-radius: 8px;
}

.quiz-container.fullscreen-mode .bar-container {
    height: 50px;
    border-radius: 8px;
}

.quiz-container.fullscreen-mode .bar-value {
    font-size: 1.8rem;
}

.quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-header h2 {
    margin: 0;
    font-size: 24px;
}

.quiz-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
}

.quiz-timer .warning {
    color: #ff3333;
    animation: blink 1s infinite;
}

.quiz-body {
    padding: 20px;
}

.quiz-description {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-code-container {
    text-align: center;
    margin-top: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: 5px solid white;
}

.qr-instructions {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

/* Results styling */
.quiz-statistics {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: #777;
}

.chart-item {
    margin-bottom: 15px;
}

.answer-label {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.answer-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    margin-right: 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.correct-answer {
    color: #4caf50;
    margin-left: 10px;
}

.bar-container {
    height: 25px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    width: 0;
    opacity: 0;
}

.bar.animated {
    opacity: 1;
}

.bar.correct {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
}

.word-cloud-container {
    height: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-responses {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Estimation results styling */
.estimation-results-container {
    margin: 20px 0;
}

.correct-answer-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.correct-answer-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.correct-answer-value {
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.estimation-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.estimation-stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.estimation-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.estimation-stat-card .stat-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.estimation-stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2d3748;
}

.top-guesses {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-guesses h3,
.top-guesses h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
    text-align: center;
}

.guesses-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.guess-item:hover {
    transform: translateX(5px);
}

.guess-item:first-child {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.guess-item:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 3px 10px rgba(192, 192, 192, 0.3);
}

.guess-item:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a95f 100%);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.guess-rank {
    font-size: 24px;
    margin-right: 15px;
}

.guess-user {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
}

.guess-value {
    font-weight: bold;
    color: #4a5568;
    margin-right: 10px;
}

.guess-deviation {
    font-size: 13px;
    color: #718096;
}

/* Estimation distribution chart */
.estimation-distribution-chart {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.estimation-distribution-chart .chart-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
    text-align: center;
}

.distribution-chart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.distribution-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.distribution-bar-label {
    min-width: 120px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-align: right;
}

.distribution-bar-label.correct-answer-marker {
    color: #667eea;
    font-weight: 700;
    font-size: 15px;
}

.distribution-bar-container {
    flex: 1;
    height: 35px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.distribution-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 1.5s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.distribution-bar-count {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .estimation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .correct-answer-value {
        font-size: 36px;
    }

    .estimation-stat-card .stat-value {
        font-size: 24px;
    }

    .distribution-bar-label {
        min-width: 90px;
        font-size: 13px;
    }

    .distribution-bar-container {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .estimation-stats-grid {
        grid-template-columns: 1fr;
    }

    .guess-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .guess-rank {
        margin-bottom: 5px;
    }

    .distribution-bar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .distribution-bar-label {
        min-width: auto;
        text-align: left;
    }

    .distribution-bar-container {
        width: 100%;
        height: 25px;
    }
}

/* ===== DRAMATIC QUIZ REVEAL ANIMATIONS ===== */

/* PHASE 1: Suspense */
.quiz-suspense-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fadeIn 0.5s ease-in;
}

.quiz-suspense-phase.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.suspense-content {
    text-align: center;
}

.suspense-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #764ba2;
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #ffd700;
    animation-delay: -1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.suspense-text {
    font-size: 32px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.suspense-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.suspense-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suspense-stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.suspense-stat-value {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.suspense-stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
}

/* PHASE 2: Bounce In Animation */
.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* PHASE 3: Winner Podium */
.quiz-winner-podium {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quiz-winner-podium.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.podium-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

/* Stagger animation for podium items */
.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.6s ease-out forwards;
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-medal {
    font-size: 64px;
    margin-bottom: 15px;
    animation: rotateBounce 0.8s ease-out;
}

@keyframes rotateBounce {
    0% {
        transform: rotate(-180deg) scale(0);
    }
    60% {
        transform: rotate(20deg) scale(1.2);
    }
    100% {
        transform: rotate(0) scale(1);
    }
}

.podium-user {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.podium-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.podium-accuracy {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 15px;
}

.podium-platform {
    width: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.podium-rank-1 .podium-platform {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 -8px 20px rgba(255, 215, 0, 0.4);
}

.podium-rank-2 .podium-platform {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 -6px 15px rgba(192, 192, 192, 0.4);
}

.podium-rank-3 .podium-platform {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a95f 100%);
    box-shadow: 0 -4px 12px rgba(205, 127, 50, 0.4);
}

.platform-rank {
    font-size: 28px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.3);
}

/* Confetti Animation */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive adjustments for dramatic reveals */
@media (max-width: 768px) {
    .suspense-text {
        font-size: 24px;
    }

    .suspense-stat-value {
        font-size: 36px;
    }

    .podium-title {
        font-size: 28px;
    }

    .podium-container {
        gap: 10px;
    }

    .podium-item {
        min-width: 100px;
    }

    .podium-medal {
        font-size: 48px;
    }

    .podium-value {
        font-size: 18px;
    }
}

/* User quiz page styling */
.rank-handle {
    cursor: move;
    color: #999;
}

.timer-display {
    font-size: 18px;
    font-weight: bold;
}

.timer-display.warning {
    color: #ff3333;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== BROADCAST STYLE LAYOUT ===== */
.quiz-container.broadcast-style {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* BROADCAST LAYOUT - Split Screen TV Style */
.quiz-container.broadcast-layout {
    width: 100vw;
    height: 100vh;
    max-width: none;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.broadcast-left-panel {
    flex: 0 0 40%;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-right: 4px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow-y: auto;
}

.broadcast-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.broadcast-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.9);
    padding: 12px 24px;
    border-radius: 30px;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.7);
    }
}

.broadcast-live-dot {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.broadcast-live-text {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.broadcast-question-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.broadcast-label {
    color: #a5b4fc;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.broadcast-question {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.broadcast-stats-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.broadcast-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.broadcast-stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.broadcast-stat-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.broadcast-stat-icon {
    font-size: 3rem;
}

.broadcast-stat-content {
    flex: 1;
}

.broadcast-stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.broadcast-stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.broadcast-right-panel {
    flex: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.broadcast-results-header {
    background: white;
    padding: 30px 50px;
    border-bottom: 3px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.broadcast-results-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.broadcast-results-content {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
}

/* Broadcast Mode - Larger Chart Items */
.broadcast-layout .bar-chart-container .chart-item {
    margin-bottom: 30px;
}

.broadcast-layout .answer-label {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.broadcast-layout .answer-code {
    font-size: 1.6rem;
    padding: 10px 20px;
    border-radius: 10px;
}

.broadcast-layout .bar-container {
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.broadcast-layout .bar {
    font-size: 1.8rem;
    padding-right: 25px;
}

.quiz-container.broadcast-style .quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 80px;
    flex-shrink: 0;
}

.quiz-container.broadcast-style .quiz-header h2 {
    font-size: 5rem;
    margin: 0 0 30px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.quiz-container.broadcast-style .quiz-question {
    font-size: 3rem;
    line-height: 1.3;
    font-weight: 600;
}

.quiz-container.broadcast-style .quiz-body {
    padding: 60px 80px;
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
}

.quiz-container.broadcast-style .quiz-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0 60px 0;
}

.quiz-container.broadcast-style .stat-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-container.broadcast-style .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.quiz-container.broadcast-style .stat-value {
    font-size: 7rem;
    margin-bottom: 15px;
    display: block;
}

.quiz-container.broadcast-style .stat-label {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.quiz-container.broadcast-style .chart-item {
    margin-bottom: 35px;
}

.quiz-container.broadcast-style .answer-label {
    font-size: 2.2rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.quiz-container.broadcast-style .answer-code {
    font-size: 1.8rem;
    padding: 10px 20px;
    margin-right: 20px;
}

.quiz-container.broadcast-style .bar-container {
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.quiz-container.broadcast-style .bar-value {
    font-size: 2rem;
    padding-right: 20px;
}

/* ===== ANIMATED COUNTER ===== */
.stat-value.counting {
    animation: pulse-glow 0.5s ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

/* ===== STAGGERED BAR ANIMATION ===== */
.bar-chart-container .chart-item {
    opacity: 0;
    transform: translateX(-30px);
}

.bar-chart-container .chart-item.animate-in {
    animation: slideInBar 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInBar {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== PARTICLE BACKGROUND ===== */
.quiz-overlay.with-particles {
    position: relative;
}

.quiz-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: floatParticle 20s infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(2n) {
    animation-duration: 25s;
    animation-delay: -5s;
    background: rgba(118, 75, 162, 0.5);
}

.particle:nth-child(3n) {
    animation-duration: 30s;
    animation-delay: -10s;
    background: rgba(255, 215, 0, 0.4);
}

/* ===== DONUT CHART ===== */
.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

.donut-chart {
    position: relative;
    width: 400px;
    height: 400px;
}

.donut-chart canvas {
    width: 100%;
    height: 100%;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
}

.donut-legend-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.donut-legend-text {
    flex: 1;
}

.donut-legend-value {
    font-weight: bold;
    font-size: 1.6rem;
}

/* ===== BAR CHART RACE FOR RANKINGS ===== */
.ranking-race-container {
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    margin: 30px 0;
}

.ranking-race-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ranking-rank {
    font-size: 2.5rem;
    font-weight: bold;
    width: 80px;
    text-align: center;
    color: #718096;
}

.ranking-item:nth-child(1) .ranking-rank {
    color: #ffd700;
    font-size: 3rem;
}

.ranking-item:nth-child(2) .ranking-rank {
    color: #c0c0c0;
    font-size: 2.8rem;
}

.ranking-item:nth-child(3) .ranking-rank {
    color: #cd7f32;
    font-size: 2.6rem;
}

.ranking-label {
    font-size: 1.8rem;
    font-weight: 600;
    min-width: 200px;
    color: #2d3748;
}

.ranking-bar-container {
    flex: 1;
    height: 50px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 20px;
}

.ranking-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.6rem;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.ranking-item:nth-child(1) .ranking-bar {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.ranking-item:nth-child(2) .ranking-bar {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

.ranking-item:nth-child(3) .ranking-bar {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a95f 100%);
    box-shadow: 0 2px 10px rgba(205, 127, 50, 0.5);
}

/* ===== LIVE UPDATE PULSE ===== */
.live-update-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(72, 187, 120, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    color: #38a169;
    font-weight: 600;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #48bb78;
    border-radius: 50%;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1400px) {
    .quiz-container.broadcast-style .quiz-header h2 {
        font-size: 4rem;
    }

    .quiz-container.broadcast-style .quiz-question {
        font-size: 2.5rem;
    }

    .quiz-container.broadcast-style .stat-value {
        font-size: 5rem;
    }
}

@media (max-width: 1024px) {
    .quiz-container.broadcast-style .quiz-statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .donut-chart-container {
        flex-direction: column;
    }
}