.mca-overlay {
    --mca-fundo: #161310;
    --mca-texto: #f7f4ef;
    --mca-texto-suave: rgba(247, 244, 239, 0.6);
    --mca-borda: rgba(255, 255, 255, 0.08);
    --mca-borda-forte: rgba(255, 255, 255, 0.18);
    --mca-hover: rgba(255, 255, 255, 0.06);
    --mca-trilho: rgba(247, 244, 239, 0.35);
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity .18s ease;
}

.mca-overlay.mca-claro {
    --mca-fundo: #ffffff;
    --mca-texto: #1d1b19;
    --mca-texto-suave: rgba(29, 27, 25, 0.6);
    --mca-borda: rgba(0, 0, 0, 0.08);
    --mca-borda-forte: rgba(0, 0, 0, 0.18);
    --mca-hover: rgba(0, 0, 0, 0.05);
}

.mca-overlay.mca-aberto {
    opacity: 1;
}

.mca-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 20px 22px 20px;
    border-radius: 18px;
    border: 1px solid var(--mca-borda);
    background: var(--mca-fundo);
    color: var(--mca-texto);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: scale(.96);
    transition: transform .18s ease;
}

.mca-aberto .mca-card {
    transform: scale(1);
}

.mca-fechar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--mca-texto-suave);
    font-size: 18px;
    cursor: pointer;
}

.mca-fechar:hover,
.mca-fechar:focus-visible {
    background: var(--mca-hover);
    color: var(--mca-texto);
    outline: none;
}

.mca-titulo {
    margin: 0;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--mca-texto);
}

.mca-subtitulo {
    margin: 4px 0 0;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--mca-texto-suave);
}

.mca-capa {
    position: relative;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid var(--mca-borda);
    overflow: hidden;
    background: var(--mca-hover);
}

.mca-capa img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mca-capa::after {
    content: "";
    position: absolute;
    inset: 50% 0 0 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.mca-trilho {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--mca-trilho);
    overflow: hidden;
}

.mca-progresso {
    height: 100%;
    min-width: 4px;
    border-radius: 3px;
    background: var(--botao, #f5822b);
}

.mca-tempo {
    position: absolute;
    right: 8px;
    bottom: 19px;
    z-index: 1;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(247, 244, 239, 0.85);
    font-size: 12px;
    font-weight: 600;
}

.mca-info {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--mca-texto-suave);
}

.mca-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.mca-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.mca-botao-principal {
    border: none;
    background: var(--botao, #f5822b);
    color: var(--botao-texto, #ffffff);
}

.mca-botao-principal:hover,
.mca-botao-principal:focus-visible {
    background: var(--botaohover, var(--botao, #e8620e));
    outline: none;
}

.mca-botao-secundario {
    border: 1px solid var(--mca-borda-forte);
    background: transparent;
    color: var(--mca-texto);
}

.mca-botao-secundario:hover,
.mca-botao-secundario:focus-visible {
    background: var(--mca-hover);
    outline: none;
}

body.mca-sem-rolagem {
    overflow: hidden;
}

@media (max-width: 480px) {
    .mca-overlay {
        padding: 20px;
    }

    .mca-card {
        padding: 18px 18px 18px;
    }
}
