/* ── Telão ─────────────────────────────────────────────── */
.cm-display {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 32px 24px;
    box-sizing: border-box;
}

.cm-display-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(255,255,255,.1);
}

.cm-display-logo {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 8px;
}

.cm-display-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(90deg, #f5a623, #f76b1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .02em;
}

.cm-display-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,.5);
    margin: 0;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ── Botão tela cheia ─────────────────────────────────── */
.cm-fullscreen-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
.cm-fullscreen-btn:hover { background: rgba(255,255,255,.2); }

/* ── Grid de categorias ───────────────────────────────── */
.cm-display-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .cm-display-grid { grid-template-columns: 1fr; }
}

.cm-display-cat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s;
}
.cm-display-cat:hover { transform: translateY(-2px); }

.cm-display-cat-title {
    background: linear-gradient(135deg, #f5a623, #f76b1c);
    color: #fff;
    font-weight: 800;
    font-size: clamp(.9rem, 2vw, 1.15rem);
    padding: 14px 20px;
    letter-spacing: .03em;
    text-align: center;
}

.cm-display-ranking { padding: 12px 0; }

.cm-display-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .15s;
}
.cm-display-row:last-child { border-bottom: none; }

.cm-display-1st { background: rgba(255, 215, 0, .08); }
.cm-display-2nd { background: rgba(192, 192, 192, .06); }
.cm-display-3rd { background: rgba(205, 127, 50, .06); }

.cm-display-pos {
    font-size: 1.2rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    font-weight: 700;
}

.cm-display-nome {
    flex: 1;
    font-size: clamp(.9rem, 2.2vw, 1.1rem);
    font-weight: 600;
    color: #e6edf3;
    word-break: break-word;
}

.cm-display-time {
    font-family: 'Courier New', monospace;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #f5a623;
    flex-shrink: 0;
    letter-spacing: .05em;
}

.cm-display-1st .cm-display-time { color: #ffd700; }
.cm-display-2nd .cm-display-time { color: #c0c0c0; }
.cm-display-3rd .cm-display-time { color: #cd7f32; }

.cm-display-empty {
    text-align: center;
    color: rgba(255,255,255,.3);
    font-style: italic;
    padding: 24px;
    font-size: .9rem;
}

/* ── Footer ───────────────────────────────────────────── */
.cm-display-footer {
    text-align: center;
    color: rgba(255,255,255,.25);
    font-size: .8rem;
    margin-top: 32px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Animação de entrada ──────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cm-display-cat { animation: fadeIn .4s ease both; }
.cm-display-cat:nth-child(1) { animation-delay: .05s; }
.cm-display-cat:nth-child(2) { animation-delay: .10s; }
.cm-display-cat:nth-child(3) { animation-delay: .15s; }
.cm-display-cat:nth-child(4) { animation-delay: .20s; }

/* ── Fullscreen nativo ────────────────────────────────── */
#cm-display:fullscreen,
#cm-display:-webkit-full-screen {
    overflow-y: auto;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}
