.xcs-viewer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.xcs-viewer-vazio {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ── Barra de círculos ── */

.xcs-circles {
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.xcs-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
    width: 132px;
    padding: 0;
}

.xcs-circle-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcs-circle-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
}

.xcs-circle-nome {
    font-size: 12px;
    color: #333;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Lightbox ── */

.xcs-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcs-lightbox[hidden] {
    display: none;
}

body.xcs-lightbox-aberto {
    overflow: hidden;
}

.xcs-lightbox-conteudo {
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 780px;
    position: relative;
}

.xcs-lightbox-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
    border-radius: 12px 12px 0 0;
}

.xcs-lightbox-autor-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.xcs-lightbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.xcs-lightbox-nome {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.xcs-lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    display: block;
}

.xcs-lightbox-fechar {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.xcs-lightbox-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
}

.xcs-lightbox-seta:hover {
    background: rgba(255, 255, 255, 0.3);
}

.xcs-seta-anterior {
    left: 16px;
}

.xcs-seta-proxima {
    right: 16px;
}

@media (max-width: 600px) {
    .xcs-lightbox-conteudo {
        max-width: 100%;
        height: 100vh;
        max-height: none;
    }

    .xcs-lightbox-video,
    .xcs-lightbox-header {
        border-radius: 0;
    }

    .xcs-lightbox-fechar {
        top: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.4);
    }

    .xcs-seta-anterior {
        left: 8px;
    }

    .xcs-seta-proxima {
        right: 8px;
    }
}