.ays-ranking-field {
    width: 100%;
}

.ays-ranking-instructions {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

.ays-ranking-list,
.ays-ranking-result-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ays-ranking-item {
    margin: 0 0 12px;
    list-style: none;
}

.ays-ranking-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.ays-ranking-item .ays-ranking-value {
    display: none;
}

.ays-ranking-position,
.ays-ranking-result-position {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    font-weight: 600;
}

.ays-ranking-handle {
    flex: 0 0 auto;
    cursor: move;
    font-size: 20px;
    line-height: 1;
    opacity: 0.6;
    user-select: none;
}

.ays-ranking-answer-content {
    flex: 1 1 auto;
    min-width: 0;
}

.ays-ranking-answer-image {
    flex: 0 0 auto;
    max-width: 96px;
}

.ays-ranking-answer-image img {
    display: block;
    max-width: 96px;
    max-height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.ays-ranking-placeholder {
    min-height: 56px;
    margin-bottom: 12px;
    border: 2px dashed rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
}

.ays-ranking-touch-dragging {
    opacity: 0.7;
}

.ays-ranking-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.ays-ranking-results-column {
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.ays-ranking-results-column h5 {
    margin: 0 0 12px;
    font-size: 15px;
}

.ays-ranking-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ays-ranking-result-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ays-ranking-result-item:first-child {
    padding-top: 0;
}

.ays-ranking-result-item.correct .ays-ranking-result-label {
    font-weight: 600;
}

.ays-ranking-result-item.wrong .ays-ranking-result-label {
    opacity: 0.86;
}

.ays-ranking-list-static .ays-ranking-item-inner,
.ays-ranking-results-wrapper {
    cursor: default;
}

.ays-ranking-result-label {
    flex: 1 1 auto;
}

@media screen and (max-width: 768px) {
    .ays-ranking-item-inner {
        gap: 10px;
        min-height: 60px;
        padding: 12px;
    }

    .ays-ranking-handle {
        font-size: 22px;
    }

    .ays-ranking-results {
        grid-template-columns: 1fr;
    }
}
