/* ═══════════════════════════════════════════════════════════
   EWI Market Movers
   ═══════════════════════════════════════════════════════════ */

.mm-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.mm-header {
    text-align: center;
    margin-bottom: 32px;
}

.mm-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text, #f9fafb);
    margin: 0 0 8px;
}

.mm-subtitle {
    color: var(--text-muted, #9ca3af);
    margin: 0;
    font-size: 0.95rem;
}

/* ── Loading / empty states ─────────────────────────────────────────────── */

.mm-loading,
.mm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted, #9ca3af);
    text-align: center;
}

.mm-loading[hidden],
.mm-empty[hidden] {
    display: none;
}

.mm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border, rgba(255,255,255,.08));
    border-top-color: var(--accent, #4da3ff);
    border-radius: 50%;
    animation: mm-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes mm-spin {
    to { transform: rotate(360deg); }
}

/* ── Grid layout ─────────────────────────────────────────────────────────── */

.mm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mm-col {
    background: var(--bg-alt, #111);
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 10px;
    padding: 16px;
}

.mm-col__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #f9fafb);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}

.mm-col__icon {
    font-size: 1.1rem;
}

.mm-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Rows ────────────────────────────────────────────────────────────────── */

.mm-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 6px;
    transition: background 0.12s;
}

.mm-row:hover {
    background: var(--bg-hover, #1a1a1a);
}

.mm-row__symbol {
    font-weight: 600;
    color: var(--text, #f9fafb);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-row__price {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted, #9ca3af);
    font-size: 0.8125rem;
}

.mm-row__change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mm-row__arrow {
    font-size: 0.7rem;
    line-height: 1;
}

.mm-row--up .mm-row__change {
    color: #4caf50;
}

.mm-row--down .mm-row__change {
    color: #f44336;
}

/* ── Updated stamp ───────────────────────────────────────────────────────── */

.mm-updated {
    text-align: center;
    color: var(--text-faint, #555);
    font-size: 0.75rem;
    margin: 24px 0 0;
}

/* ── Access gate ─────────────────────────────────────────────────────────── */

.mm-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 60px 20px;
}

.mm-gate__inner {
    text-align: center;
    max-width: 440px;
}

.mm-gate__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mm-gate__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text, #f9fafb);
    margin: 0 0 14px;
}

.mm-gate__desc {
    font-size: 0.95rem;
    color: var(--text-muted, #9ca3af);
    line-height: 1.6;
    margin: 0 0 28px;
}

.mm-gate__btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent, #4da3ff);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mm-gate__btn:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
    .mm-grid {
        grid-template-columns: 1fr;
    }
}
