.rp-howto-video-frame {
    position: relative;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

.rp-howto-video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rp-step-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
}

.rp-step-strip-item {
    position: relative;
    flex: 0 0 140px;
    scroll-snap-align: start;
}

.rp-step-strip-item img {
    width: 140px;
    height: 79px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    display: block;
}

.rp-step-strip-num {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-step-strip-label {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.rp-learn-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rp-learn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.rp-learn-thumb {
    height: 140px;
    object-fit: cover;
}

.rp-learn-thumb-placeholder {
    height: 140px;
}

.rp-step-slide figcaption {
    color: #475569;
}
