.rf-container {
    margin: 24px 0;
}

.rf-tagbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f7f7fa;
    border-radius: 12px;
}

.rf-tag {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1px solid #d4d4d8;
    color: #3f3f46;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rf-tag:hover {
    border-color: #6366f1;
    color: #4338ca;
}

.rf-tag.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.rf-tag-clear {
    appearance: none;
    background: transparent;
    border: 0;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    margin-left: auto;
    text-decoration: underline;
}

.rf-list {
    position: relative;
    min-height: 100px;
}

.rf-list.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

.rf-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.rf-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.rf-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.rf-card:nth-child(1) .rf-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.rf-card:nth-child(2) .rf-rank {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}
.rf-card:nth-child(3) .rf-rank {
    background: linear-gradient(135deg, #d97706, #92400e);
}

.rf-card-inner {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.rf-thumb {
    flex: 0 0 120px;
    height: 120px;
    background: #f3f4f6 center/cover no-repeat;
    border-radius: 8px;
}

.rf-thumb-empty {
    background: #f3f4f6;
}

.rf-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.rf-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.rf-card-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rf-card-tags li {
    background: #eef2ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.rf-empty-result {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .rf-card-inner {
        flex-direction: column;
    }
    .rf-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }
}
